PluginProbe
Social Share Buttons / 1.2
Social Share Buttons v1.2
trunk 0.9 1.0 1.1 1.1.1 1.1.2 1.10 1.11 1.12 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.3 1.30 1.4 1.5 1.6 1.7 1.8 1.9
← All changes | classes/class-collection.php +3 -14 1.41.2 View file →
@@ -31,10 +31,8 @@
31 31 public $is_static = false;
32 32 public $is_post = false; // embedded in a post situation
33 33 public $is_mobile = false;
34 34 public $is_tablet = false;
35 - public $is_desktop = false;
36 -
37 35 public $orientation = 'horizontal';
38 36 public $display_mode = 'hidden';
39 37 public $post_id;
40 38
@@ -80,9 +78,9 @@
80 78 }
81 79
82 80 if ($collection_id > 0)
83 81 {
84 - $this->set($collection_id); // set function loads the block values
82 + $this->set($collection_id);
85 83 }
86 84 }
87 85 /* Get all buttons that are currently loaded */
88 86 /*public function getLoadedButtons()
@@ -244,9 +242,8 @@
244 242 // check if on some mobile
245 243 $mobileDetect = new Mobile_Detect;
246 244 $this->is_mobile = $mobileDetect->isMobile();
247 245 $this->is_tablet = $mobileDetect->isTablet();
248 - $this->is_desktop = ($this->is_mobile) ? false : true;
249 246
250 247 $options = isset($data['display'][$hook . '_options']) ? $data['display'][$hook . '_options'] : array();
251 248
252 249 $orientation = isset($options['orientation']) ? $options['orientation'] : 'auto';
@@ -610,12 +607,12 @@
610 607 if (! $this->is_showable)
611 608 return;
612 609
613 610
614 - if (method_exists(MB(), 'load_library'))
611 + /*if (method_exists(MB(), 'load_library'))
615 612 {
616 613 MB()->load_library('fontawesome'); // always load lib since change is about 100% this includes FA.
617 - }
614 + } */
618 615
619 616 maxUtils::startTime('collection-display-' . self::$count);
620 617
621 618 $w = MBSocial()->whistle();
@@ -807,9 +804,8 @@
807 804
808 805 $collectionObj->load($node);
809 806
810 807 $active = ( isset($this->data['network']['network_active']) && is_array($this->data['network']['network_active']) ) ? $this->data['network']['network_active'] : array();
811 -
812 808 if (count($active) == 0 && $args['preview'] == true)
813 809 {
814 810 $networks = $admin->get_default_networks();
815 811 $use_networks = $networks['unselected'];
@@ -829,15 +825,8 @@
829 825 {
830 826 if (! is_object($network))
831 827 {
832 828 continue;
833 - }
834 - if (! $is_preview)
835 - {
836 - if ( ($this->is_mobile && ! $network->forMobile() ) || $this->is_desktop && ! $network->forDesktop() )
837 - {
838 - continue;
839 - }
840 829 }
841 830 $w->tell('display/parse/network', $network);
842 831
843 832 $button_args = array('link' => $network->get_url(),