Changeset 714458
- Timestamp:
- 05/17/2013 04:12:53 PM (13 years ago)
- Location:
- admangler
- Files:
-
- 3 edited
- 11 copied
-
tags/0.1.4 (copied) (copied from admangler/trunk)
-
tags/0.1.4/adMangler.class.php (copied) (copied from admangler/trunk/adMangler.class.php) (4 diffs)
-
tags/0.1.4/adMangler.php (copied) (copied from admangler/trunk/adMangler.php) (2 diffs)
-
tags/0.1.4/adManglerWidget.class.php (copied) (copied from admangler/trunk/adManglerWidget.class.php)
-
tags/0.1.4/classes (copied) (copied from admangler/trunk/classes)
-
tags/0.1.4/classes/webapi.php (copied) (copied from admangler/trunk/classes/webapi.php)
-
tags/0.1.4/forms/banners.php (copied) (copied from admangler/trunk/forms/banners.php)
-
tags/0.1.4/forms/dashboard.php (copied) (copied from admangler/trunk/forms/dashboard.php)
-
tags/0.1.4/js/shortcode.js (copied) (copied from admangler/trunk/js/shortcode.js)
-
tags/0.1.4/readme.txt (copied) (copied from admangler/trunk/readme.txt) (2 diffs)
-
tags/0.1.4/shortcode.php (copied) (copied from admangler/trunk/shortcode.php)
-
trunk/adMangler.class.php (modified) (4 diffs)
-
trunk/adMangler.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
admangler/tags/0.1.4/adMangler.class.php
r714099 r714458 23 23 $this->positionsTable = $wpdb->prefix."AdMangler_positions"; 24 24 25 add_action( 'init', function () { 25 26 function enqueue_scripts() { 26 27 wp_enqueue_script("jquery"); 27 28 //wp_enqueue_script('jquery.validate', '/' . PLUGINDIR . '/admangler/js/jquery.validate.min.js'); 28 }); 29 } 30 add_action( 'init', 'enqueue_scripts'); 29 31 30 32 // Generate the Admin Menu … … 37 39 38 40 // init process for registering our button 39 add_action('init', function() {41 function register_button() { 40 42 41 43 //Abort early if the user will never see TinyMCE … … 45 47 //Add a callback to regiser our tinymce plugin 46 48 //This callback registers our plug-in 47 add_filter("mce_external_plugins", function($plugin_array) {49 function filter_plugin($plugin_array) { 48 50 global $PLUGINDIR; 49 51 $plugin_array['wpse72394_button'] = '/' . PLUGINDIR . '/admangler/js/shortcode.js'; 50 52 return $plugin_array; 51 }); 53 } 54 add_filter("mce_external_plugins", "filter_plugin"); 52 55 53 56 // Add a callback to add our button to the TinyMCE toolbar 54 57 //This callback adds our button to the toolbar 55 add_filter('mce_buttons', function($buttons) {58 function filter_button($buttons) { 56 59 //Add the button ID to the $button array 57 60 $buttons[] = "wpse72394_button"; 58 61 return $buttons; 59 }); 60 }); 62 } 63 add_filter('mce_buttons', 'filter_button'); 64 } 65 add_action('init', 'register_button'); 61 66 } 62 67 … … 542 547 function send_statistics($action) 543 548 { 544 545 try { 546 $api = new WebAPI('publicapi', 'publicapi'); 547 548 $phone = new SimpleXMLElement('<request></request>'); 549 $phone->addChild('action', 'stats'); 550 $phone->addChild('application', 'AdMangler'); 551 $phone->addChild('version', $this->codeVersion); 552 $phone->addChild('database', $this->dbVersion); 553 $phone->addChild('status', $action); 554 $phone->addChild('domain', urlencode($_SERVER['SERVER_NAME'])); 555 $api->add_request($phone); 556 $api->request(); 557 } catch (Exception $e) { /* Fail quitely */ } 549 try { 550 $api = new WebAPI('publicapi', 'publicapi'); 551 552 $phone = new SimpleXMLElement('<request></request>'); 553 $phone->addChild('action', 'stats'); 554 $phone->addChild('application', 'AdMangler'); 555 $phone->addChild('version', $this->codeVersion); 556 $phone->addChild('database', $this->dbVersion); 557 $phone->addChild('status', $action); 558 $phone->addChild('domain', urlencode($_SERVER['SERVER_NAME'])); 559 $api->add_request($phone); 560 $api->request(); 561 } catch (Exception $e) { /* Fail quitely */ } 558 562 } 559 563 -
admangler/tags/0.1.4/adMangler.php
r714097 r714458 4 4 Plugin URI: http://www.webternals.com/projects/admangler/ 5 5 Description: AdMangler (Beta) Display, sell, and manage ad space on your Wordpress powered site. 6 Version: 0.1. 26 Version: 0.1.4 7 7 Author: Webternals, LLC - Allen Sanford 8 8 Author URI: http://www.webternals.com/ … … 16 16 17 17 18 $codeVersion = '0.1. 2';18 $codeVersion = '0.1.4'; 19 19 $dbVersion = '0.0.9'; 20 20 -
admangler/tags/0.1.4/readme.txt
r714099 r714458 5 5 Requires at least: 2.8.2 6 6 Tested up to: 3.5.1 7 Stable Tag: 0.1. 37 Stable Tag: 0.1.4 8 8 9 9 AdMangler (Beta) Display, sell, and manage ad space on your Wordpress powered site. … … 61 61 62 62 == Changelog == 63 64 = 0.1.4 = 65 * Fixed anonymous function use. Anonymous function are only full supported in PHP 5.3 and above. Shame on me! 66 67 = 0.1.3 = 68 * Version mismatch 63 69 64 70 = 0.1.2 = -
admangler/trunk/adMangler.class.php
r714099 r714458 23 23 $this->positionsTable = $wpdb->prefix."AdMangler_positions"; 24 24 25 add_action( 'init', function () { 25 26 function enqueue_scripts() { 26 27 wp_enqueue_script("jquery"); 27 28 //wp_enqueue_script('jquery.validate', '/' . PLUGINDIR . '/admangler/js/jquery.validate.min.js'); 28 }); 29 } 30 add_action( 'init', 'enqueue_scripts'); 29 31 30 32 // Generate the Admin Menu … … 37 39 38 40 // init process for registering our button 39 add_action('init', function() {41 function register_button() { 40 42 41 43 //Abort early if the user will never see TinyMCE … … 45 47 //Add a callback to regiser our tinymce plugin 46 48 //This callback registers our plug-in 47 add_filter("mce_external_plugins", function($plugin_array) {49 function filter_plugin($plugin_array) { 48 50 global $PLUGINDIR; 49 51 $plugin_array['wpse72394_button'] = '/' . PLUGINDIR . '/admangler/js/shortcode.js'; 50 52 return $plugin_array; 51 }); 53 } 54 add_filter("mce_external_plugins", "filter_plugin"); 52 55 53 56 // Add a callback to add our button to the TinyMCE toolbar 54 57 //This callback adds our button to the toolbar 55 add_filter('mce_buttons', function($buttons) {58 function filter_button($buttons) { 56 59 //Add the button ID to the $button array 57 60 $buttons[] = "wpse72394_button"; 58 61 return $buttons; 59 }); 60 }); 62 } 63 add_filter('mce_buttons', 'filter_button'); 64 } 65 add_action('init', 'register_button'); 61 66 } 62 67 … … 542 547 function send_statistics($action) 543 548 { 544 545 try { 546 $api = new WebAPI('publicapi', 'publicapi'); 547 548 $phone = new SimpleXMLElement('<request></request>'); 549 $phone->addChild('action', 'stats'); 550 $phone->addChild('application', 'AdMangler'); 551 $phone->addChild('version', $this->codeVersion); 552 $phone->addChild('database', $this->dbVersion); 553 $phone->addChild('status', $action); 554 $phone->addChild('domain', urlencode($_SERVER['SERVER_NAME'])); 555 $api->add_request($phone); 556 $api->request(); 557 } catch (Exception $e) { /* Fail quitely */ } 549 try { 550 $api = new WebAPI('publicapi', 'publicapi'); 551 552 $phone = new SimpleXMLElement('<request></request>'); 553 $phone->addChild('action', 'stats'); 554 $phone->addChild('application', 'AdMangler'); 555 $phone->addChild('version', $this->codeVersion); 556 $phone->addChild('database', $this->dbVersion); 557 $phone->addChild('status', $action); 558 $phone->addChild('domain', urlencode($_SERVER['SERVER_NAME'])); 559 $api->add_request($phone); 560 $api->request(); 561 } catch (Exception $e) { /* Fail quitely */ } 558 562 } 559 563 -
admangler/trunk/adMangler.php
r714097 r714458 4 4 Plugin URI: http://www.webternals.com/projects/admangler/ 5 5 Description: AdMangler (Beta) Display, sell, and manage ad space on your Wordpress powered site. 6 Version: 0.1. 26 Version: 0.1.4 7 7 Author: Webternals, LLC - Allen Sanford 8 8 Author URI: http://www.webternals.com/ … … 16 16 17 17 18 $codeVersion = '0.1. 2';18 $codeVersion = '0.1.4'; 19 19 $dbVersion = '0.0.9'; 20 20 -
admangler/trunk/readme.txt
r714099 r714458 5 5 Requires at least: 2.8.2 6 6 Tested up to: 3.5.1 7 Stable Tag: 0.1. 37 Stable Tag: 0.1.4 8 8 9 9 AdMangler (Beta) Display, sell, and manage ad space on your Wordpress powered site. … … 61 61 62 62 == Changelog == 63 64 = 0.1.4 = 65 * Fixed anonymous function use. Anonymous function are only full supported in PHP 5.3 and above. Shame on me! 66 67 = 0.1.3 = 68 * Version mismatch 63 69 64 70 = 0.1.2 =
Note: See TracChangeset
for help on using the changeset viewer.