Changeset 718074
- Timestamp:
- 05/25/2013 02:39:09 AM (13 years ago)
- Location:
- conductrics-webactions/trunk
- Files:
-
- 4 edited
-
conductrics-webactions.php (modified) (1 diff)
-
includes/wa-settings.php (modified) (1 diff)
-
js/agent-list-input.jquery.js (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
conductrics-webactions/trunk/conductrics-webactions.php
r717846 r718074 3 3 Plugin Name: Conductrics Web Actions 4 4 Description: Includes Conductrics Web Actions scripts in your pages, which makes it easy to test changes to your pages, track their success, and do dynamic targeting. 5 Version: 0.2. 65 Version: 0.2.7 6 6 Author: Conductrics 7 7 Author URI: http://conductrics.com -
conductrics-webactions/trunk/includes/wa-settings.php
r712473 r718074 116 116 'conductrics-jquery-agent-list', 117 117 'conductrics_wa_account', 118 $this->admin_get_options(true)118 array_merge(array(), $this->admin_get_options(true), array("permalink" => get_permalink())) 119 119 ); 120 120 wp_enqueue_style( -
conductrics-webactions/trunk/js/agent-list-input.jquery.js
r717846 r718074 54 54 itemLinksFn: function(val) { 55 55 return [ 56 { href: thickboxUrl(getConsoleUrl([val, 'web-actions'], true ), 800), label: 'Web Actions', class: 'thickbox' },57 { href: thickboxUrl(getConsoleUrl([val, 'reporting-testing'], true), 900), label: 'Report', class: 'thickbox ', title:'Quick Report' },56 { href: thickboxUrl(getConsoleUrl([val, 'web-actions'], true, true), 900), label: 'Web Actions', class: 'thickbox thickbox-conductrics' }, 57 { href: thickboxUrl(getConsoleUrl([val, 'reporting-testing'], true), 900), label: 'Report', class: 'thickbox thickbox-conductrics', title:'Quick Report' }, 58 58 { href: getConsoleUrl([val, 'home']), label: 'Console', target: 'conductrics-console' } 59 59 ] … … 66 66 newItemLabel: '(add new agent)' 67 67 }) 68 69 tb_position_shim() 68 70 69 71 if (callback) callback(); … … 94 96 } 95 97 96 getConsoleUrl = function(paths, embeddedstyle ) {97 var url = [options.account.adminurl, options.account.owner].concat(paths).join('/') ;98 getConsoleUrl = function(paths, embeddedstyle, withLocation) { 99 var url = [options.account.adminurl, options.account.owner].concat(paths).join('/') + '?'; 98 100 if (embeddedstyle) { 99 url += "?embeddedstyle=true"; 101 url += "&embeddedstyle=true"; 102 } 103 if (withLocation && options.account.permalink && options.account.permalink.indexOf('http') == 0) { 104 url += "&location=" + (options.account.permalink); 100 105 } 101 106 return url; … … 117 122 // Web actions were saved, close modal for that if we have one 118 123 closeThickbox(); 124 } 125 } 126 127 // Hack/workaround for bug in WordPress - http://core.trac.wordpress.org/ticket/17249 128 // See also http://binarybonsai.com/blog/using-thickbox-in-the-wordpress-admin 129 var tb_position_original = null; 130 tb_position_shim = function() { 131 if (tb_position_original == null) { 132 tb_position_original = window.tb_position; 133 window.tb_position = tb_position_wrapper; 134 } 135 } 136 tb_position_wrapper = function() { 137 var ours = $('#TB_window > iframe').attr('src').indexOf(options.account.adminurl) == 0; 138 if (!ours) { 139 return tb_position_original(arguments); 140 }; 141 // This is from the original Thickbox at http://thickbox.net/thickbox-code/thickbox.js 142 $("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'}); 143 if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6 144 $("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'}); 119 145 } 120 146 } -
conductrics-webactions/trunk/readme.txt
r717846 r718074 61 61 == Changelog == 62 62 63 = 0.2.7 = 64 * Larger space when setting up web actions for a page or post. 65 63 66 = 0.2.6 = 64 67 * Display a hint in wp-admin when Conductrics Account info has not been provided. … … 70 73 == Upgrade Notice == 71 74 75 = 0.2.7 = 76 * This version gives you more space when setting up a test with web actions. 77 72 78 = 0.2.6 = 73 79 * This version simplifies the intial setup process.
Note: See TracChangeset
for help on using the changeset viewer.