PluginProbe
Social Share Buttons / 1.19
Social Share Buttons v1.19
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 +7 -21 trunk1.19 View file →
@@ -351,24 +351,8 @@
351 351 $result["title"] = __("Error : Block was not there","maxbuttons");
352 352 return $result;
353 353 }
354 354
355 - public function endAjaxRequest($args = array())
356 - {
357 - $defaults = array(
358 - "error" => true, // can have errors and still result true on success
359 - "result" => true,
360 - "body" => "",
361 - "title" => "",
362 - "data" => array(),
363 - );
364 -
365 - $args = wp_parse_args($args, $defaults);
366 -
367 - echo json_encode($args);
368 - die();
369 - }
370 -
371 355 /** Save the collection post data to the database. This will invoke the save functions of the blocks itself to gather, verify and manipulate data */
372 356 public function save($post)
373 357 {
374 358 $data = array();
@@ -775,9 +759,9 @@
775 759 }
776 760
777 761 }
778 762
779 - public function displayJS($js, $args = array() )
763 + public function displayJS($js, $args = array() ) // $echo = true, $style_tag = true)
780 764 {
781 765 $default = array(
782 766 "echo" => true,
783 767 "js_tag" => true,
@@ -808,9 +792,11 @@
808 792 }
809 793
810 794 if ($args["js_tag"])
811 795 {
812 - $output .= "
796 + $output .= " // }
797 + // }
798 + // window.onload = MBcollection" . $this->collection_id . "();
813 799 </script> ";
814 800 }
815 801
816 802
@@ -843,9 +829,9 @@
843 829 $collectionObj = new simple_html_dom();
844 830 $collection_id = $this->collection_id;
845 831
846 832 $styleObj = $this->styleObj;
847 - $style_class = '';
833 + $style_class = ''; //$styleObj->class;
848 834 $style_class = $this->orientation;
849 835
850 836 // create container
851 837 if (self::$count > 1)
@@ -851,9 +837,9 @@
851 837 if (self::$count > 1)
852 838 {
853 839 $style_class .= ' doc-' . self::$count;
854 840 }
855 - $node = "<div class='maxsocial maxsocial-" . esc_attr($collection_id) . " $style_class ' data-collection='" . $collection_id . "' data-nonce='" . wp_create_nonce('maxsocial_ajax_action-' . $collection_id) . "''>
841 + $node = "<div class='maxsocial maxsocial-" . $collection_id . " $style_class ' data-collection='" . $collection_id . "'>
856 842 </div>";
857 843 $node = apply_filters("maxbuttons/social/basic-container",$node);
858 844
859 845 $collectionObj->load($node);
@@ -891,9 +877,9 @@
891 877 }
892 878 $w->tell('display/parse/network', $network);
893 879
894 880 $button_args = array('link' => $network->get_url(),
895 - 'preview' => $is_preview,
881 + 'preview' => $is_preview,
896 882 'index' => $index,
897 883 'name' => $network->get('network'),
898 884 'data' => $this->data,
899 885 'collection_count' => self::$count,