PluginProbe
Social Share Buttons / 1.5
Social Share Buttons v1.5
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 +2 -16 1.81.5 View file →
@@ -59,9 +59,9 @@
59 59 $block = collections::getBlock($block_name);
60 60 if ($block)
61 61 {
62 62 $block->setCollection($this);
63 - $default_data = $block->save_fields($default_data, array() ); // force the fields to set a default pos.
63 + $default_data = $block->save_fields($default_data, null ); // force the fields to set a default pos.
64 64
65 65 $this->blocks[$block_name] = $block;
66 66
67 67 }
@@ -296,21 +296,8 @@
296 296 elseif (isset($meta['general']['active']) && $is_old_active === 0) // backward for 0.9.5 . Can go at some point
297 297 $this->is_showable = false;
298 298 }
299 299
300 - if ( Install::isPRO() ) {
301 - $show_mobile = (isset($data['display']['show_mobile']) && $data['display']['show_mobile'] == 0) ? false: true;
302 - $show_desktop = (isset($data['display']['show_desktop']) && $data['display']['show_desktop'] == 0) ? false: true;
303 -
304 - if ($this->is_mobile && ! $show_mobile)
305 - {
306 - $this->is_showable = false;
307 - }
308 - if ($this->is_desktop && ! $show_desktop)
309 - {
310 - $this->is_showable = false;
311 - }
312 - }
313 300 // new method of getting data around
314 301 $w->tell('display/env/hook', $hook);
315 302 $w->tell('display/env/post_id', $this->post_id);
316 303 $w->tell('display/env/is_static', $this->is_static );
@@ -623,14 +610,13 @@
623 610 if (! $this->is_showable)
624 611 return;
625 612
626 613
627 - /* 1.8 Deprecated. Not included in MB() anymore, using svg method.
628 614 if (method_exists(MB(), 'load_library'))
629 615 {
630 616 MB()->load_library('fontawesome'); // always load lib since change is about 100% this includes FA.
631 617 }
632 - */
618 +
633 619 maxUtils::startTime('collection-display-' . self::$count);
634 620
635 621 $w = MBSocial()->whistle();
636 622