Changeset 1300701
- Timestamp:
- 12/04/2015 04:24:42 PM (10 years ago)
- Location:
- addthis-smart-layers/trunk
- Files:
-
- 8 edited
-
addthis-smart_layers.php (modified) (10 diffs)
-
readme.txt (modified) (7 diffs)
-
uninstall.php (modified) (1 diff)
-
views/includes/addthis_addjs.php (modified) (14 diffs)
-
views/includes/addthis_addjs_extender.php (modified) (3 diffs)
-
views/includes/static_assets.php (modified) (1 diff)
-
views/smart_layer_admin.php (modified) (9 diffs)
-
views/smart_layer_advanced.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
addthis-smart-layers/trunk/addthis-smart_layers.php
r904754 r1300701 2 2 /* 3 3 * Plugin Name: AddThis Smart Layers 4 * Description: AddThis Smart Layers. Make your site smarter. Increase traffic, engagement and revenue by instantly showing the right social tools and content to every visitor. 5 * Version: 1.0.1 04 * Description: AddThis Smart Layers. Make your site smarter. Increase traffic, engagement and revenue by instantly showing the right social tools and content to every visitor. 5 * Version: 1.0.11 6 6 * Author: The AddThis Team 7 7 * Author URI: http://www.addthis.com/blog … … 10 10 */ 11 11 12 define('ADDTHIS_SMART_LAYER_PRODUCT_CODE', 'wpp-1.0.1 0');12 define('ADDTHIS_SMART_LAYER_PRODUCT_CODE', 'wpp-1.0.11'); 13 13 define('ADDTHIS_SMART_LAYER_AT_VERSION', 300); 14 14 … … 66 66 wp_enqueue_script('smart_layer_modal_script', plugins_url( '', basename(dirname(__FILE__)) ) . '/addthis-smart-layers/js/smart_layer_modal.js'); 67 67 wp_enqueue_script('prettify', 'https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js'); 68 68 69 69 wp_enqueue_style('bootstrap_style', plugins_url( '', basename(dirname(__FILE__)) ) . '/addthis-smart-layers/css/bootstrap.css'); 70 70 wp_enqueue_style('wp-jquery-ui-dialog'); … … 74 74 wp_enqueue_style('gtc_smart_layer_style', plugins_url( '', basename(dirname(__FILE__)) ) . '/addthis-smart-layers/css/gtc.smart-layers.css'); 75 75 wp_enqueue_style('smart_layer_style', plugins_url( '', basename(dirname(__FILE__)) ) . '/addthis-smart-layers/css/addthis-smart_layer.css'); 76 76 77 77 wp_localize_script( 'gtc_smart_layer_script', 'smart_layer_params', array('wp_ajax_url'=> admin_url('admin-ajax.php'), 'img_base' => $imgLocationBase) ); 78 78 wp_localize_script( 'smart_layer_modal_script', 'smartlayer_param', array('ajax_url'=> admin_url('admin-ajax.php')) ); … … 87 87 } 88 88 89 add_action('admin_menu', 'smart_layer_admin_actions'); 89 add_action('admin_menu', 'smart_layer_admin_actions'); 90 90 91 91 add_action("wp_ajax_save_smart_layer_settings", "save_smart_layer_settings"); … … 124 124 function save_custom_layer_settings($value, $id) { 125 125 $value = strip_if_needed($value); 126 if (!at_smart_layer_is_pro_user($id)) { 126 if (!at_smart_layer_is_pro_user($id)) { 127 127 if ( !$value ) { 128 128 update_option('smart_layer_settings', "{}"); … … 143 143 if($_POST['action'] == 'save_smart_layer_settings') { 144 144 save_smart_layer_settings($_POST['value']); 145 } 146 } 147 148 if (isset($_POST['save_my_smart_layer'])) { 145 } 146 } 147 148 if (isset($_POST['save_my_smart_layer'])) { 149 149 if($_POST['save_my_smart_layer'] == 'save_my_smart_layer') { 150 150 $value = $_POST['smart_layer_settings']; … … 191 191 if (is_array($array) && array_key_exists('_default', $array)){ 192 192 if ($smart_layer_pro) { 193 // update pro user settings 193 // update pro user settings 194 194 update_option('smart_layer_pro', true); 195 195 update_option('smart_layer_pro_setting', $server_output); 196 196 } else { 197 // add pro user settings 197 // add pro user settings 198 198 add_option('smart_layer_pro', true); 199 199 add_option('smart_layer_pro_setting', $server_output); … … 202 202 } else { 203 203 if ($smart_layer_pro) { 204 // update pro user settings 204 // update pro user settings 205 205 delete_option('smart_layer_pro'); 206 206 delete_option('smart_layer_pro_setting'); … … 212 212 } 213 213 214 function AddThisSmartLayersEulaText($buttonName = 'Save') { 215 $eula = 'By clicking "'.$buttonName.'", you certify that you are at least 13 years old, and agree to the AddThis <a href="http://www.addthis.com/privacy/privacy-policy">Privacy Policy</a> and <a href="http://www.addthis.com/tos">Terms of Service</a>.'; 216 return $eula; 217 } 218 214 219 ?> -
addthis-smart-layers/trunk/readme.txt
r921515 r1300701 1 === Smart Layers by AddThis === 1 === Smart Layers by AddThis === 2 2 Contributors: srijith.v, solchea, _mjk_, addthis_paul 3 3 Tags: smart layers, mobile, follow, share, addthis, social, bookmark, sharing, bookmarking, widget, AddThis, addtoany, aim, bookmark, buzz, del.icio.us, Digg, e-mail, email, Facebook, google bookmarks, google buzz, myspace, network, NewsVine, Reddit, share this, sharethis, social, socialize, stumbleupon, twitter, windows live, yahoo buzz, pinterest, google+, recommended content, content recommendation, toaster 4 4 Requires at least: 3.3 5 5 Tested up to: 3.8.1 6 Stable tag: 1.0.1 06 Stable tag: 1.0.11 7 7 8 8 Increase traffic, content engagement, and revenue by showing the right social tools and best content. Make your site smarter with Smart Layers. … … 10 10 == Description == 11 11 12 Give your site’s visitors easy-to-use buttons to engage with your content. These social sharing buttons work as layers that overlay your site so not to disrupt your design. 12 Give your site’s visitors easy-to-use buttons to engage with your content. These social sharing buttons work as layers that overlay your site so not to disrupt your design. 13 13 14 14 Here are some tips for maximizing and streamlining content engagement with our newest plugin: … … 40 40 == Screenshots == 41 41 42 1. Easy configuration option with preview for various screen sizes. 42 1. Easy configuration option with preview for various screen sizes. 43 43 2. Advanced option for power users to customize using AddThis Smart Layers API 44 44 … … 72 72 = Is JavaScript required? = 73 73 74 All of the options required through this plugin require javascript. JavaScript must be enabled. We load the actual interface via JavaScript at run-time, which allows us to upgrade the core functionality of the menu itself automatically everywhere. 74 All of the options required through this plugin require javascript. JavaScript must be enabled. We load the actual interface via JavaScript at run-time, which allows us to upgrade the core functionality of the menu itself automatically everywhere. 75 75 76 76 = Why use AddThis? = … … 94 94 95 95 == Changelog == 96 97 = 1.0.11 = 98 * Adding AddThis EULA 99 96 100 = 1.0.10 = 97 101 * Minor Bug fix 102 98 103 = 1.0.9 = 99 104 * Resolved conflict with WP-Supercache plugin 100 105 * Fix for servers without CURL support 101 106 102 = 1.0.8 = 107 = 1.0.8 = 103 108 * Resolved conflict with another plugin 104 109 105 = 1.0.7 = 110 = 1.0.7 = 106 111 * Minor update 107 112 108 = 1.0.6 = 113 = 1.0.6 = 109 114 * Minor update 110 115 111 = 1.0.5 = 116 = 1.0.5 = 112 117 * Better compatibility with other Wordpress plugins from AddThis 113 118 114 = 1.0.4 = 115 * Better compatibility for servers with Magic Qoutes and ASP style short tags. 119 = 1.0.4 = 120 * Better compatibility for servers with Magic Qoutes and ASP style short tags. 116 121 117 = 1.0.3 = 122 = 1.0.3 = 118 123 * Bug fix. 119 124 120 = 1.0.2 = 125 = 1.0.2 = 121 126 * Security fix. 122 127 … … 127 132 128 133 == Upgrade Notice == 134 135 = 1.0.11 = 136 EULA 137 129 138 = 1.0.10 = 130 139 Minor bug fix … … 133 142 Resolved conflict with WP-Supercache plugin and support for servers without CURL 134 143 135 = 1.0.8 = 144 = 1.0.8 = 136 145 Minor bug fix 137 146 138 = 1.0.7 = 147 = 1.0.7 = 139 148 Minor update 140 149 141 = 1.0.6 = 150 = 1.0.6 = 142 151 Minor update 143 152 144 = 1.0.5 = 153 = 1.0.5 = 145 154 Better compatibility with other Wordpress plugins from AddThis 146 155 147 = 1.0.4 = 148 Better compatibility for servers with Magic Qoutes / ASP Style short tags enabled. 156 = 1.0.4 = 157 Better compatibility for servers with Magic Qoutes / ASP Style short tags enabled. 149 158 150 = 1.0.3 = 159 = 1.0.3 = 151 160 Bug fix. 152 161 153 = 1.0.2 = 154 Security fix. 162 = 1.0.2 = 163 Security fix. 155 164 156 = 1.0.1 = 157 Minor bug fixes. 165 = 1.0.1 = 166 Minor bug fixes. -
addthis-smart-layers/trunk/uninstall.php
r875437 r1300701 9 9 delete_option('smart_layer_settings_advanced'); 10 10 delete_option('smart_layer_profile'); 11 } 11 } -
addthis-smart-layers/trunk/views/includes/addthis_addjs.php
r864696 r1300701 19 19 // 'AddThis Trending Content Widget' => array('http://wordpress.org/extend/plugins/addthis-trending', 'Trending' ), 20 20 'AddThis Welcome Bar' => array('http://wordpress.org/extend/plugins/addthis-welcome/', 'Welcome'), 21 'AddThis Social Sign In' => array('http://wordpress.org/extend/plugins/addthis-social-sign-in/', 'SSI'), 21 'AddThis Social Sign In' => array('http://wordpress.org/extend/plugins/addthis-social-sign-in/', 'SSI'), 22 22 ); 23 23 private $_atInstalled = array(); 24 24 25 25 var $pubid; 26 26 27 27 var $jsToAdd; 28 28 … … 40 40 public function __construct ($options){ 41 41 if ( did_action('addthis_addjs_created') !== 0){ 42 _doing_it_wrong( 'addthis_addjs', 'Only one instance of this class should be initialized. Look for the $addthis_addjs global first',1 ); 42 _doing_it_wrong( 'addthis_addjs', 'Only one instance of this class should be initialized. Look for the $addthis_addjs global first',1 ); 43 43 } 44 44 … … 49 49 50 50 $this->_options = $options; 51 51 52 52 // Version of AddThis code to use 53 53 $this->atversion = ADDTHIS_SMART_LAYER_AT_VERSION; 54 54 55 55 // set the cuid 56 56 $base = get_option('home'); 57 $cuid = hash_hmac('md5', $base, 'addthis'); 57 $cuid = hash_hmac('md5', $base, 'addthis'); 58 58 $this->_cuid = $cuid; 59 59 … … 69 69 add_action('switch_theme', array($this, 'switch_theme'),15); 70 70 71 // In order for our wp_footer magic to work, we need to sometimes add our stuff 71 // In order for our wp_footer magic to work, we need to sometimes add our stuff 72 72 add_action('init', array($this, 'maybe_add_footer_comment')); 73 73 … … 85 85 $footer = $this->check_for_footer(); 86 86 $this->_options['wpfooter'] = $footer; 87 update_option( 'addthis_settings', $this->_options); 87 update_option( 'addthis_settings', $this->_options); 88 88 } 89 89 … … 98 98 $this->_js_added = true; 99 99 $this->jsToAdd = false; 100 } else { 100 } else { 101 101 $this->addAfterToJs(); 102 102 echo $this->jsToAdd; … … 127 127 $options = $this->_options; 128 128 $options['wpfooter'] = $footer; 129 update_option( 'addthis_settings', $options); 129 update_option( 'addthis_settings', $options); 130 130 $this->_options = $options; 131 131 } … … 136 136 $code = (int) wp_remote_retrieve_response_code( $response ); 137 137 if ( $code == 200 ) { 138 $html = preg_replace( '/[ 138 $html = preg_replace( '/[ 139 139 s]/', '', wp_remote_retrieve_body( $response ) ); 140 140 return (bool)( strstr( $html, '<!--wp_footer-->' ) ); 141 141 } 142 142 } 143 143 144 144 function maybe_add_footer_comment(){ 145 145 add_action( 'wp_footer', array($this, 'test_footer' ), 99999 ); // Some obscene priority, make sure we run last … … 149 149 echo '<!--wp_footer-->'; 150 150 } 151 151 152 152 /* END testing for wp_footer in a theme stuff */ 153 153 function addToScript($newData){ 154 154 $this->jsToAdd .= $newData; 155 155 } 156 156 157 157 function addAfterScript($newData){ 158 158 if ( $this->_js_added != true ) … … 189 189 function setUsername($username){ 190 190 $this->_options['username'] = sanitize_text_field($username); 191 update_option( 'addthis_settings', $options); 191 update_option( 'addthis_settings', $options); 192 192 } 193 193 … … 198 198 function setProfileId($profile){ 199 199 $this->_options['profile'] = sanitize_text_field($profile); 200 update_option( 'addthis_settings', $this->_options); 201 } 200 update_option( 'addthis_settings', $this->_options); 201 } 202 202 203 203 function getPassword(){ … … 207 207 function setPassword($password){ 208 208 $this->_options['password'] = sanitize_text_field($password); 209 update_option( 'addthis_settings', $options); 209 update_option( 'addthis_settings', $options); 210 210 } 211 211 … … 242 242 } else { 243 243 $string . __('plugins for '); 244 244 245 245 for ($i = 0; $i < $count; $i++) { 246 246 $string .= __( sprintf('<strong><a href="%s" target="_blank" >' .$this->_atPlugins[$uninstalled[$i]][1] .'</a></strong>', $this->_atPlugins[$uninstalled[$i]][0]), 'addthis'); … … 250 250 $string .= ' and '; 251 251 else if ($i == ($count -1)) 252 $string .= ' plugins available.'; 252 $string .= ' plugins available.'; 253 253 } 254 254 } -
addthis-smart-layers/trunk/views/includes/addthis_addjs_extender.php
r781839 r1300701 37 37 } else { 38 38 $string . __('plugins for '); 39 39 40 40 for ($i = 0; $i < $count; $i++) { 41 41 $string .= __( sprintf('<strong><a href="%s" target="_blank" >' .$this->_atPlugins[$uninstalled[$i]][1] .'</a></strong>', $this->_atPlugins[$uninstalled[$i]][0]), 'addthis'); … … 46 46 else if ($i == ($count -1)) 47 47 $string .= ' plugins available.'; 48 48 49 49 } 50 50 … … 53 53 54 54 return '<p class="addthis_more_promo">' .$string . '</p>'; 55 55 56 56 57 57 -
addthis-smart-layers/trunk/views/includes/static_assets.php
r781839 r1300701 27 27 wp_enqueue_script('at-gtc-wombat', $addthis_welcome_bar_js_base .'gtc-wombat.js' , false, '1.0.0' ); 28 28 } 29 29 30 30 $activated = get_option('addthis_bar_activated'); 31 31 -
addthis-smart-layers/trunk/views/smart_layer_admin.php
r875437 r1300701 1 <?php 1 <?php 2 2 $advanced = get_option('smart_layer_settings_advanced'); 3 3 ?> 4 4 5 <?php 5 <?php 6 6 $smart_layer_pro = get_option('smart_layer_pro'); 7 7 if ($smart_layer_pro) { … … 21 21 22 22 <?php if (isset($_POST['save_smart_layer'])) { ?> 23 <div class="updated settings-error" id="ettings_updated" > 23 <div class="updated settings-error" id="ettings_updated" > 24 24 <p><strong>Settings saved.</strong></p> 25 25 </div> … … 28 28 <?php if($smart_layer_pro) { ?> 29 29 <!-- <div class="updated addthis_setup_nag"> 30 <p>Since you are an AddThis Pro user, your configuration options can be managed from 31 <a href="https://www.addthis.com/dashboard#gallery" target="_blank">AddThis Pro Tool Gallery</a>.<br> 30 <p>Since you are an AddThis Pro user, your configuration options can be managed from 31 <a href="https://www.addthis.com/dashboard#gallery" target="_blank">AddThis Pro Tool Gallery</a>.<br> 32 32 </p> 33 33 </div> --> 34 34 <?php } else {?> 35 35 <div class="updated addthis_setup_nag"> 36 <p>AddThis Pro now available - start your trial at 37 <a href="http://www.addthis.com" target="_blank">www.addthis.com</a> 38 and get premium widgets, personalized content recommendations, 36 <p>AddThis Pro now available - start your trial at 37 <a href="http://www.addthis.com" target="_blank">www.addthis.com</a> 38 and get premium widgets, personalized content recommendations, 39 39 advanced customization options and priority support. 40 40 </p> … … 47 47 <span class="smart-layer-title">AddThis</span> <span class="smart-layer-name">Smart Layers</span> 48 48 </p> 49 <?php 49 <?php 50 50 if (get_option('smart_layer_profile') != "") { 51 51 $smart_layer_id = get_option('smart_layer_profile'); … … 58 58 ?> 59 59 <form method="post" action="#" id="smartlayers-getthecode" class="smartlayers-section addthis-tab active"> 60 <span id="profile_id" style="float: left;border: none;padding-right: 0px;font-size: 12px;width: 30%;" data-content="By specifying your AddThis Profile ID, you will have access to analytics measuring your shares, follows and clicks. You can find your AddThis Profile ID in the <a href='https://www.addthis.com/settings/user' target='_blank'>Settings</a> section of <a href='www.addthis.com' target='_blank'>www.addthis.com"</a> 60 <span id="profile_id" style="float: left;border: none;padding-right: 0px;font-size: 12px;width: 30%;" data-content="By specifying your AddThis Profile ID, you will have access to analytics measuring your shares, follows and clicks. You can find your AddThis Profile ID in the <a href='https://www.addthis.com/settings/user' target='_blank'>Settings</a> section of <a href='www.addthis.com' target='_blank'>www.addthis.com"</a> 61 61 <p style="margin: 0; font-weight: bold; margin: 5px; width: 130px; float: left;"><?php _e("AddThis Profile ID:", 'addthis_trans_domain' ); ?></p> 62 62 <input id="addthis_profile" type="text" name="addthis_profile" value="<?php echo $smart_layer_id;?>" autofill='off' autocomplete='off' /> … … 73 73 <h3>Make your site smarter. Increase traffic, engagement and revenue by instantly showing the right social tools and content to every visitor.</h3> 74 74 <?php if($smart_layer_pro) { ?> 75 <p>Since you are an AddThis Pro user, your configuration options can be managed from 75 <p>Since you are an AddThis Pro user, your configuration options can be managed from 76 76 <a href="https://www.addthis.com/dashboard#gallery" target="_blank">AddThis Pro Tool Gallery</a>. 77 77 </p> … … 395 395 <input type="hidden" name="saved_settings" value="<?php get_option('smart_layer_settings');?>"/> 396 396 <input type="button" name="Submit" value="<?php _e('Save Changes') ?>" class="save-profile button-primary button" style="float:left; clear:both;"/> 397 <p style="float:left; clear:both;"> 398 <small> 399 <?php echo AddThisSmartLayersEulaText(esc_html__('Save Changes')); ?> 400 </small> 401 </p> 402 397 403 </form> 398 404 </div> … … 406 412 <?php $options = get_option('smart_layer_settings_advanced'); ?> 407 413 <input type="hidden" name="smart_layer_settings_advanced" value = "<?php if( get_option('smart_layer_settings_advanced') != '0') { echo '0';} else { echo '1';} ?>" /> 408 <input id="smart-layer-dialog-ok" class="button button-highlighted" type="submit" value="OK" /> 414 <input id="smart-layer-dialog-ok" class="button button-highlighted" type="submit" value="OK" /> 409 415 </form> 410 416 <button id="smart-layer-dialog-cancel" class="button" value="Cancel" /> … … 418 424 419 425 $ = jQuery; 420 $('.ml5').change(function() { 426 $('.ml5').change(function() { 421 427 changes = true; 422 428 }); -
addthis-smart-layers/trunk/views/smart_layer_advanced.php
r855464 r1300701 1 1 <?php 2 2 if (isset($_POST['save_my_smart_layer'])) { ?> 3 <div class="updated settings-error" id="ettings_updated" > 3 <div class="updated settings-error" id="ettings_updated" > 4 4 <p><strong>Settings saved.</strong></p> 5 5 </div> 6 6 <?php } ?> 7 7 <div class="updated addthis_setup_nag"> 8 <p>AddThis Pro now available - start your trial at 9 <a href="http://www.addthis.com" target="_blank">www.addthis.com</a> 10 and get premium widgets, personalized content recommendations, 8 <p>AddThis Pro now available - start your trial at 9 <a href="http://www.addthis.com" target="_blank">www.addthis.com</a> 10 and get premium widgets, personalized content recommendations, 11 11 advanced customization options and priority support. 12 12 </p> … … 18 18 <span class="smart-layer-title">AddThis</span> <span class="smart-layer-name">Smart Layers</span> 19 19 </p> 20 <?php 20 <?php 21 21 if (get_option('smart_layer_profile') != "") { 22 22 $smart_layer_id = get_option('smart_layer_profile'); … … 29 29 ?> 30 30 <form action="#" method="post"> 31 <span id="profile_id" style="float: left;border: none;padding-right: 0px;font-size: 12px;width: 100%;" data-content="By specifying your AddThis Profile ID, you will have access to analytics measuring your shares, follows and clicks. You can find your AddThis Profile ID in the <a href='https://www.addthis.com/settings/user' target='_blank'>Settings</a> section of <a href='www.addthis.com' target='_blank'>www.addthis.com"</a> 31 <span id="profile_id" style="float: left;border: none;padding-right: 0px;font-size: 12px;width: 100%;" data-content="By specifying your AddThis Profile ID, you will have access to analytics measuring your shares, follows and clicks. You can find your AddThis Profile ID in the <a href='https://www.addthis.com/settings/user' target='_blank'>Settings</a> section of <a href='www.addthis.com' target='_blank'>www.addthis.com"</a> 32 32 <p style="margin: 0; font-weight: bold; margin: 5px; width: 130px; float: left;"><?php _e("AddThis Profile ID:", 'addthis_trans_domain' ); ?></p> 33 33 <input id="addthis_profile" type="text" name="addthis_profile" value="<?php echo $smart_layer_id;?>" autofill='off' autocomplete='off' /> … … 35 35 </span> 36 36 <div class="smart-layer-container"> 37 <div> 37 <div> 38 38 <div class="lwrOpt ml10"> 39 39 <div class="wbcHdr"> … … 55 55 </div> 56 56 <div class="copyCode"> 57 57 58 58 <?php //settings_fields('smart_layer_settings'); ?> 59 <?php $options = get_option('smart_layer_settings'); ?> 59 <?php $options = get_option('smart_layer_settings'); ?> 60 60 <textarea id="wbCode" name="smart_layer_settings" style="resize:both;height:400px;background:#fff;"><?php echo $options; ?></textarea> 61 61 <div class="clear"></div><div class="clear"></div><div class="clear"></div> 62 62 <input type="hidden" name="save_my_smart_layer" value="save_my_smart_layer" /> 63 63 <?php if(current_user_can('unfiltered_html')) { 64 submit_button( );65 } ?> 64 submit_button(__('Save Changes')); 65 } ?> 66 66 </form> 67 <span class="legal">By publishing this code, you are accepting our <a href="http://www.addthis.com/tos" target="_blank">Terms of Service</a></span> 67 <p style="float:left; clear:both;"> 68 <small> 69 <?php echo AddThisSmartLayersEulaText(esc_html__('Save Changes')); ?> 70 </small> 71 </p> 72 73 68 74 <div class="clear"></div><div class="clear"></div><div class="clear"></div><div class="clear"></div> 69 75 <div class="clear"></div><div class="clear"></div><div class="clear"></div><div class="clear"></div> 70 76 </div> 71 77 72 78 <div class="copyCode"> 73 79 <pre class="prettyprint" style="margin-top:10px"> … … 117 123 <?php $options = get_option('smart_layer_settings_advanced'); ?> 118 124 <input type="hidden" name="smart_layer_settings_advanced" value = "<?php if( get_option('smart_layer_settings_advanced') != '0') { echo '0';} else { echo '1';} ?>" /> 119 <input id="smart-layer-dialog-ok" class="button button-highlighted" type="submit" value="OK" /> 125 <input id="smart-layer-dialog-ok" class="button button-highlighted" type="submit" value="OK" /> 120 126 </form> 121 127 <button id="smart-layer-dialog-cancel" class="button" value="Cancel" />
Note: See TracChangeset
for help on using the changeset viewer.