Plugin Directory

Changeset 1300701


Ignore:
Timestamp:
12/04/2015 04:24:42 PM (10 years ago)
Author:
bradaddthis.com
Message:

Release 1.0.11

Location:
addthis-smart-layers/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • addthis-smart-layers/trunk/addthis-smart_layers.php

    r904754 r1300701  
    22/*
    33 * 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.10
     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.11
    66 * Author: The AddThis Team
    77 * Author URI: http://www.addthis.com/blog
     
    1010*/
    1111
    12 define('ADDTHIS_SMART_LAYER_PRODUCT_CODE', 'wpp-1.0.10');
     12define('ADDTHIS_SMART_LAYER_PRODUCT_CODE', 'wpp-1.0.11');
    1313define('ADDTHIS_SMART_LAYER_AT_VERSION', 300);
    1414
     
    6666        wp_enqueue_script('smart_layer_modal_script', plugins_url( '', basename(dirname(__FILE__)) ) . '/addthis-smart-layers/js/smart_layer_modal.js');
    6767        wp_enqueue_script('prettify', 'https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js');
    68        
     68
    6969        wp_enqueue_style('bootstrap_style', plugins_url( '', basename(dirname(__FILE__)) ) . '/addthis-smart-layers/css/bootstrap.css');
    7070        wp_enqueue_style('wp-jquery-ui-dialog');
     
    7474        wp_enqueue_style('gtc_smart_layer_style', plugins_url( '', basename(dirname(__FILE__)) ) . '/addthis-smart-layers/css/gtc.smart-layers.css');
    7575        wp_enqueue_style('smart_layer_style', plugins_url( '', basename(dirname(__FILE__)) ) . '/addthis-smart-layers/css/addthis-smart_layer.css');
    76        
     76
    7777        wp_localize_script( 'gtc_smart_layer_script', 'smart_layer_params', array('wp_ajax_url'=> admin_url('admin-ajax.php'), 'img_base' => $imgLocationBase) );
    7878        wp_localize_script( 'smart_layer_modal_script', 'smartlayer_param', array('ajax_url'=> admin_url('admin-ajax.php')) );
     
    8787}
    8888
    89 add_action('admin_menu', 'smart_layer_admin_actions'); 
     89add_action('admin_menu', 'smart_layer_admin_actions');
    9090
    9191add_action("wp_ajax_save_smart_layer_settings", "save_smart_layer_settings");
     
    124124function save_custom_layer_settings($value, $id) {
    125125    $value = strip_if_needed($value);
    126     if (!at_smart_layer_is_pro_user($id)) { 
     126    if (!at_smart_layer_is_pro_user($id)) {
    127127        if ( !$value ) {
    128128            update_option('smart_layer_settings', "{}");
     
    143143    if($_POST['action'] == 'save_smart_layer_settings') {
    144144        save_smart_layer_settings($_POST['value']);
    145     } 
    146 }
    147 
    148 if (isset($_POST['save_my_smart_layer'])) { 
     145    }
     146}
     147
     148if (isset($_POST['save_my_smart_layer'])) {
    149149    if($_POST['save_my_smart_layer'] == 'save_my_smart_layer') {
    150150        $value = $_POST['smart_layer_settings'];
     
    191191        if (is_array($array) && array_key_exists('_default', $array)){
    192192            if ($smart_layer_pro) {
    193                 // update pro user settings 
     193                // update pro user settings
    194194                update_option('smart_layer_pro', true);
    195195                update_option('smart_layer_pro_setting', $server_output);
    196196            } else {
    197                 // add pro user settings 
     197                // add pro user settings
    198198                add_option('smart_layer_pro', true);
    199199                add_option('smart_layer_pro_setting', $server_output);
     
    202202        } else {
    203203            if ($smart_layer_pro) {
    204                 // update pro user settings 
     204                // update pro user settings
    205205                delete_option('smart_layer_pro');
    206206                delete_option('smart_layer_pro_setting');
     
    212212}
    213213
     214function 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
    214219?>
  • addthis-smart-layers/trunk/readme.txt

    r921515 r1300701  
    1 === Smart Layers by AddThis === 
     1=== Smart Layers by AddThis ===
    22Contributors: srijith.v, solchea, _mjk_, addthis_paul
    33Tags: 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
    44Requires at least: 3.3
    55Tested up to: 3.8.1
    6 Stable tag: 1.0.10
     6Stable tag: 1.0.11
    77
    88Increase traffic, content engagement, and revenue by showing the right social tools and best content. Make your site smarter with Smart Layers.
     
    1010== Description ==
    1111
    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. 
     12Give 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.
    1313
    1414Here are some tips for maximizing and streamlining content engagement with our newest plugin:
     
    4040== Screenshots ==
    4141
    42 1. Easy configuration option with preview for various screen sizes. 
     421. Easy configuration option with preview for various screen sizes.
    43432. Advanced option for power users to customize using AddThis Smart Layers API
    4444
     
    7272= Is JavaScript required? =
    7373
    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. 
     74All 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.
    7575
    7676= Why use AddThis? =
     
    9494
    9595== Changelog ==
     96
     97= 1.0.11 =
     98* Adding AddThis EULA
     99
    96100= 1.0.10 =
    97101* Minor Bug fix
     102
    98103= 1.0.9 =
    99104* Resolved conflict with WP-Supercache plugin
    100105* Fix for servers without CURL support
    101106
    102 = 1.0.8 = 
     107= 1.0.8 =
    103108* Resolved conflict with another plugin
    104109
    105 = 1.0.7 = 
     110= 1.0.7 =
    106111* Minor update
    107112
    108 = 1.0.6 = 
     113= 1.0.6 =
    109114* Minor update
    110115
    111 = 1.0.5 = 
     116= 1.0.5 =
    112117* Better compatibility with other Wordpress plugins from AddThis
    113118
    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.
    116121
    117 = 1.0.3 = 
     122= 1.0.3 =
    118123* Bug fix.
    119124
    120 = 1.0.2 = 
     125= 1.0.2 =
    121126* Security fix.
    122127
     
    127132
    128133== Upgrade Notice ==
     134
     135= 1.0.11 =
     136EULA
     137
    129138= 1.0.10 =
    130139Minor bug fix
     
    133142Resolved conflict with WP-Supercache plugin and support for servers without CURL
    134143
    135 = 1.0.8 = 
     144= 1.0.8 =
    136145Minor bug fix
    137146
    138 = 1.0.7 = 
     147= 1.0.7 =
    139148Minor update
    140149
    141 = 1.0.6 = 
     150= 1.0.6 =
    142151Minor update
    143152
    144 = 1.0.5 = 
     153= 1.0.5 =
    145154Better compatibility with other Wordpress plugins from AddThis
    146155
    147 = 1.0.4 = 
    148 Better compatibility for servers with Magic Qoutes / ASP Style short tags enabled. 
     156= 1.0.4 =
     157Better compatibility for servers with Magic Qoutes / ASP Style short tags enabled.
    149158
    150 = 1.0.3 = 
     159= 1.0.3 =
    151160Bug fix.
    152161
    153 = 1.0.2 = 
    154 Security fix. 
     162= 1.0.2 =
     163Security fix.
    155164
    156 = 1.0.1 = 
    157 Minor bug fixes. 
     165= 1.0.1 =
     166Minor bug fixes.
  • addthis-smart-layers/trunk/uninstall.php

    r875437 r1300701  
    99    delete_option('smart_layer_settings_advanced');
    1010    delete_option('smart_layer_profile');
    11 } 
     11}
  • addthis-smart-layers/trunk/views/includes/addthis_addjs.php

    r864696 r1300701  
    1919//        'AddThis Trending Content Widget' => array('http://wordpress.org/extend/plugins/addthis-trending', 'Trending' ),
    2020        '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'),
    2222    );
    2323    private $_atInstalled = array();
    2424
    2525    var $pubid;
    26    
     26
    2727    var $jsToAdd;
    2828
     
    4040    public function __construct ($options){
    4141        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 );
    4343        }
    4444
     
    4949
    5050        $this->_options = $options;
    51        
     51
    5252        // Version of AddThis code to use
    5353        $this->atversion = ADDTHIS_SMART_LAYER_AT_VERSION;
    54        
     54
    5555        // set the cuid
    5656        $base = get_option('home');
    57         $cuid = hash_hmac('md5', $base, 'addthis'); 
     57        $cuid = hash_hmac('md5', $base, 'addthis');
    5858        $this->_cuid = $cuid;
    5959
     
    6969        add_action('switch_theme', array($this, 'switch_theme'),15);
    7070
    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
    7272        add_action('init', array($this, 'maybe_add_footer_comment'));
    7373
     
    8585        $footer = $this->check_for_footer();
    8686        $this->_options['wpfooter'] = $footer;
    87         update_option( 'addthis_settings', $this->_options); 
     87        update_option( 'addthis_settings', $this->_options);
    8888    }
    8989
     
    9898            $this->_js_added = true;
    9999            $this->jsToAdd = false;
    100         } else {           
     100        } else {
    101101             $this->addAfterToJs();
    102102             echo $this->jsToAdd;
     
    127127        $options = $this->_options;
    128128        $options['wpfooter'] = $footer;
    129         update_option( 'addthis_settings', $options); 
     129        update_option( 'addthis_settings', $options);
    130130        $this->_options = $options;
    131131    }
     
    136136        $code = (int) wp_remote_retrieve_response_code( $response );
    137137            if ( $code == 200 ) {
    138                 $html = preg_replace( '/[   
     138                $html = preg_replace( '/[
    139139                s]/', '', wp_remote_retrieve_body( $response ) );
    140140                return (bool)( strstr( $html, '<!--wp_footer-->' ) );
    141141            }
    142142    }
    143    
     143
    144144    function maybe_add_footer_comment(){
    145145            add_action( 'wp_footer', array($this, 'test_footer' ), 99999 ); // Some obscene priority, make sure we run last
     
    149149        echo '<!--wp_footer-->';
    150150    }
    151    
     151
    152152    /* END testing for wp_footer in a theme stuff */
    153153    function addToScript($newData){
    154154        $this->jsToAdd .= $newData;
    155155    }
    156    
     156
    157157    function addAfterScript($newData){
    158158        if ( $this->_js_added != true )
     
    189189    function setUsername($username){
    190190        $this->_options['username'] = sanitize_text_field($username);
    191         update_option( 'addthis_settings', $options); 
     191        update_option( 'addthis_settings', $options);
    192192    }
    193193
     
    198198    function setProfileId($profile){
    199199        $this->_options['profile'] = sanitize_text_field($profile);
    200         update_option( 'addthis_settings', $this->_options); 
    201     }   
     200        update_option( 'addthis_settings', $this->_options);
     201    }
    202202
    203203    function getPassword(){
     
    207207    function setPassword($password){
    208208        $this->_options['password'] = sanitize_text_field($password);
    209         update_option( 'addthis_settings', $options); 
     209        update_option( 'addthis_settings', $options);
    210210    }
    211211
     
    242242            }  else {
    243243                $string . __('plugins for ');
    244                
     244
    245245                for ($i = 0; $i < $count; $i++) {
    246246                    $string .= __( sprintf('<strong><a href="%s" target="_blank" >' .$this->_atPlugins[$uninstalled[$i]][1] .'</a></strong>', $this->_atPlugins[$uninstalled[$i]][0]), 'addthis');
     
    250250                        $string .= ' and ';
    251251                    else if ($i == ($count -1))
    252                         $string .= ' plugins available.';                   
     252                        $string .= ' plugins available.';
    253253                }
    254254            }
  • addthis-smart-layers/trunk/views/includes/addthis_addjs_extender.php

    r781839 r1300701  
    3737            }  else {
    3838                $string . __('plugins for ');
    39                
     39
    4040                for ($i = 0; $i < $count; $i++) {
    4141                    $string .= __( sprintf('<strong><a href="%s" target="_blank" >' .$this->_atPlugins[$uninstalled[$i]][1] .'</a></strong>', $this->_atPlugins[$uninstalled[$i]][0]), 'addthis');
     
    4646                    else if ($i == ($count -1))
    4747                        $string .= ' plugins available.';
    48                    
     48
    4949                }
    5050
     
    5353
    5454            return '<p class="addthis_more_promo">' .$string . '</p>';
    55            
     55
    5656
    5757
  • addthis-smart-layers/trunk/views/includes/static_assets.php

    r781839 r1300701  
    2727        wp_enqueue_script('at-gtc-wombat', $addthis_welcome_bar_js_base .'gtc-wombat.js' , false, '1.0.0' );
    2828    }
    29    
     29
    3030$activated = get_option('addthis_bar_activated');
    3131
  • addthis-smart-layers/trunk/views/smart_layer_admin.php

    r875437 r1300701  
    1 <?php 
     1<?php
    22$advanced = get_option('smart_layer_settings_advanced');
    33?>
    44
    5 <?php 
     5<?php
    66$smart_layer_pro = get_option('smart_layer_pro');
    77if ($smart_layer_pro) {
     
    2121
    2222<?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" >
    2424    <p><strong>Settings saved.</strong></p>
    2525</div>
     
    2828<?php if($smart_layer_pro) { ?>
    2929    <!-- <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>
    3232        </p>
    3333    </div> -->
    3434<?php } else {?>
    3535    <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,
    3939            advanced customization options and priority support.
    4040        </p>
     
    4747    <span class="smart-layer-title">AddThis</span> <span class="smart-layer-name">Smart Layers</span>
    4848</p>
    49 <?php 
     49<?php
    5050            if (get_option('smart_layer_profile') != "") {
    5151                $smart_layer_id = get_option('smart_layer_profile');
     
    5858            ?>
    5959 <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>
    6161        <p style="margin: 0; font-weight: bold; margin: 5px; width: 130px; float: left;"><?php _e("AddThis Profile ID:", 'addthis_trans_domain' ); ?></p>
    6262        <input id="addthis_profile" type="text" name="addthis_profile" value="<?php echo $smart_layer_id;?>" autofill='off' autocomplete='off' />
     
    7373            <h3>Make your site smarter. Increase traffic, engagement and revenue by instantly showing the right social tools and content to every visitor.</h3>
    7474        <?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
    7676            <a href="https://www.addthis.com/dashboard#gallery" target="_blank">AddThis Pro Tool Gallery</a>.
    7777            </p>
     
    395395    <input type="hidden" name="saved_settings" value="<?php get_option('smart_layer_settings');?>"/>
    396396    <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
    397403    </form>
    398404</div>
     
    406412        <?php $options = get_option('smart_layer_settings_advanced'); ?>
    407413        <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" />
    409415    </form>
    410416    <button id="smart-layer-dialog-cancel" class="button" value="Cancel" />
     
    418424
    419425    $ = jQuery;
    420     $('.ml5').change(function() { 
     426    $('.ml5').change(function() {
    421427        changes = true;
    422428    });
  • addthis-smart-layers/trunk/views/smart_layer_advanced.php

    r855464 r1300701  
    11<?php
    22if (isset($_POST['save_my_smart_layer'])) { ?>
    3 <div class="updated settings-error" id="ettings_updated" > 
     3<div class="updated settings-error" id="ettings_updated" >
    44    <p><strong>Settings saved.</strong></p>
    55</div>
    66<?php } ?>
    77<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,
    1111        advanced customization options and priority support.
    1212    </p>
     
    1818    <span class="smart-layer-title">AddThis</span> <span class="smart-layer-name">Smart Layers</span>
    1919</p>
    20 <?php 
     20<?php
    2121            if (get_option('smart_layer_profile') != "") {
    2222                $smart_layer_id = get_option('smart_layer_profile');
     
    2929            ?>
    3030<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>
    3232        <p style="margin: 0; font-weight: bold; margin: 5px; width: 130px; float: left;"><?php _e("AddThis Profile ID:", 'addthis_trans_domain' ); ?></p>
    3333        <input id="addthis_profile" type="text" name="addthis_profile" value="<?php echo $smart_layer_id;?>" autofill='off' autocomplete='off' />
     
    3535    </span>
    3636<div class="smart-layer-container">
    37     <div>   
     37    <div>
    3838    <div class="lwrOpt ml10">
    3939        <div class="wbcHdr">
     
    5555    </div>
    5656    <div class="copyCode">
    57        
     57
    5858            <?php //settings_fields('smart_layer_settings'); ?>
    59             <?php $options = get_option('smart_layer_settings'); ?>     
     59            <?php $options = get_option('smart_layer_settings'); ?>
    6060            <textarea id="wbCode" name="smart_layer_settings" style="resize:both;height:400px;background:#fff;"><?php echo $options; ?></textarea>
    6161            <div class="clear"></div><div class="clear"></div><div class="clear"></div>
    6262            <input type="hidden" name="save_my_smart_layer" value="save_my_smart_layer" />
    6363            <?php if(current_user_can('unfiltered_html')) {
    64                 submit_button();
    65             } ?> 
     64                submit_button(__('Save Changes'));
     65            } ?>
    6666        </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
    6874        <div class="clear"></div><div class="clear"></div><div class="clear"></div><div class="clear"></div>
    6975        <div class="clear"></div><div class="clear"></div><div class="clear"></div><div class="clear"></div>
    7076    </div>
    71    
     77
    7278    <div class="copyCode">
    7379        <pre class="prettyprint" style="margin-top:10px">
     
    117123        <?php $options = get_option('smart_layer_settings_advanced'); ?>
    118124        <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" />
    120126    </form>
    121127    <button id="smart-layer-dialog-cancel" class="button" value="Cancel" />
Note: See TracChangeset for help on using the changeset viewer.