From 2df263a2b24bd5efcbcec23956cb092e74046da5 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 5 Aug 2016 18:13:55 -0700 Subject: [PATCH] Some mobile-specific social stuff for the future. --- e107_plugins/social/e_shortcode.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e107_plugins/social/e_shortcode.php b/e107_plugins/social/e_shortcode.php index 54867ef4c..dfdfb1f11 100644 --- a/e107_plugins/social/e_shortcode.php +++ b/e107_plugins/social/e_shortcode.php @@ -42,6 +42,9 @@ class social_shortcodes extends e_shortcode 'wordpress' => array('icon' => 'e-social-wordpress', 'title'=> $tp->lanVars(LAN_SOCIAL_000, "Wordpress"), 'url' => "http://wordpress.com/press-this.php?u=[u]&t=[t]&s=[t]"), 'pinboard' => array('icon' => 'e-social-pinboard', 'title'=> $tp->lanVars(LAN_SOCIAL_004, "Pinboard"), 'url' => "https://pinboard.in/popup_login/?url=[u]&title=[t]&description=[t]"), + // 'whatsapp' =>array('icon' => 'e-social-whatsapp', 'mobile'=>true, 'title'=> $tp->lanVars(LAN_SOCIAL_000, "WhatsApp"), 'url'=> "whatsapp://send?text=[u]", 'data-action' =>"share/whatsapp/share"), + // 'sms' => array('icon' => 'e-social-sms', 'mobile'=>true, 'title'=>'sms', 'url'=> "sms://&body=[u]"), + // 'viber' => array('icon' => 'e-social-viber', 'mobile'=>true, 'title'=>'viber', 'url'=>"viber://forward?text=[u]") ); return $providers; @@ -294,7 +297,10 @@ class social_shortcodes extends e_shortcode } - + if(!empty($val['mobile'])) + { + $btnClass .= ' social-share-mobile'; + } $opt[$k] = "".$tp->toIcon($val["icon"], array('fw'=>1)).""; }