Plugin Directory

Changeset 1519139


Ignore:
Timestamp:
10/21/2016 09:50:50 AM (9 years ago)
Author:
O-Zone
Message:

tagging version 0.8.1

Location:
wp-allaround
Files:
3 deleted
4 edited
17 copied

Legend:

Unmodified
Added
Removed
  • wp-allaround/tags/0.8.1/README.txt

    r1517333 r1519139  
    44Tags: telegram, bot, channel, broadcast, promote
    55Requires at least: 4.0.0
    6 Tested up to: 4.6.0
    7 Stable tag: 0.8.0
     6Tested up to: 4.6.1
     7Stable tag: 0.8.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535
    3636== Changelog ==
     37
     38= 0.8.1 =
     39* Fixed some bugs
    3740
    3841= 0.8.0 =
  • wp-allaround/tags/0.8.1/js/custom.js

    r1517333 r1519139  
    33    $("#allaround_verify_result").html('<i>Connecting...please wait !</i>');
    44
    5         $.post(ajax_object.ajax_url, {
    6         action: 'verify'
    7         },function(data) {
    8             if (data) {
    9                 $("#allaround_verify_result").html(data);
    10         }
     5    var apiKey = $("#allaround_api_key").val();
     6
     7    jQuery.ajax({
     8        method: "POST",
     9        dataType : "json",
     10        url : "https://www.allaroundsiena.com/rest/verify",
     11        data: {key: apiKey},
     12        success: function(response) {
     13        $("#allaround_verify_result").html(response.message);
     14            },
     15        error: function(request, status, error) {
     16        $("#allaround_verify_result").html('<b>Error '+error+'</b>');
    1117        }
    12         );
     18        });
    1319    });
    1420});
  • wp-allaround/tags/0.8.1/wp-allaround-admin.php

    r1517333 r1519139  
    7878        }
    7979
     80    $api_key = $_POST["allaround_api_key"];
     81
     82    update_option('allaround_api_key',$api_key);
     83
    8084    $result = 'updated';
    8185
     
    8892    global $wp_styles;
    8993
    90     wp_enqueue_script( 'ajax-script',
    91         plugins_url( '/js/jquery.validationEngine-it.js', __FILE__ ),
    92         array('jquery')
    93     );
    94 
    95     wp_enqueue_script( 'ajax-script',
    96         plugins_url( '/js/jquery.validationEngine.js', __FILE__ ),
    97         array('jquery')
    98     );
    99 
    100     wp_enqueue_script( 'ajax-script',
    101         plugins_url( '/js/custom.js', __FILE__ ),
    102         array('jquery')
    103     );
     94    wp_register_script( 'validation-locale', plugins_url( '/js/jquery.validationEngine-it.js', __FILE__ ));
     95    wp_register_script( 'validation-engine', plugins_url( '/js/jquery.validationEngine.js', __FILE__ ));
     96    wp_register_script( 'custom-js', plugins_url( '/js/custom.js', __FILE__ ));
    10497
    10598    wp_localize_script( 'ajax-script', 'ajax_object', array(
     
    107100    ));
    108101     
    109     // Load stylesheets
    110     wp_enqueue_style( 'wp-allaround', plugins_url( '/css/validationEngine.jquery.css', __FILE__ ));
    111     wp_enqueue_style( 'wp-allaround', plugins_url( '/css/wp-allaround.css', __FILE__ ));
     102    wp_register_style( 'validation-css', plugins_url( '/css/validationEngine.jquery.css', __FILE__ ));
     103    wp_register_style( 'custom-css', plugins_url( '/css/wp-allaround.css', __FILE__ ));
     104
     105    wp_enqueue_script('validation-locale');
     106    wp_enqueue_script('validation-engine');
     107    wp_enqueue_script('custom-js');
     108    wp_enqueue_style('validation-css');
     109    wp_enqueue_style('custom-css');
    112110}
    113111
     
    241239                <?php _e('Admin e-mail','wp-allaround');?>:
    242240            </td><td>
    243                 <input type="text" name="allaround_blog_admin" id="allaround_blog_admin"  class="validate[required,custom[email]]" value="<?php echo get_bloginfo('admin_email'); ?>">
     241                <input type="text" name="allaround_admin_email" id="allaround_admin_email"  class="validate[required,custom[email]]" value="<?php echo get_bloginfo('admin_email'); ?>">
    244242            </td>
    245243            </tr><tr>
     
    273271        <div id="post-body-content">
    274272            <table class="form-table">
    275                 <tr valign="top">
    276                 <th scope="row"><?php _e('Your AllAround BOT Api Key', 'wp-allaround' ); ?></th>
     273<tr>
    277274                <td>
    278                     <input type="text" name="allaround_api_key" id="allaround_api_key" value="<?php echo $option_api_key; ?>" readonly>
    279                     <br/>
    280                     <label class="description" for="allaround_api_key"><?php _e('This is the unique API key for your blog. Please, keep it safe.'); ?></label>
    281                 </td>
    282             </tr><tr>
    283                 <td>
    284                     <button class="btn btn-large" id="allaround_verify"><?php _e('Verify connection', 'wp-allaround'); ?></button><span id="allaround_verify_result">&nbsp;</span>
     275                    <button class="btn btn-large" id="allaround_verify"><?php _e('Verify connection', 'wp-allaround'); ?></button> <span id="allaround_verify_result">&nbsp;</span>
    285276                </td>
    286277            </tr>
     
    290281                <input type="hidden" name="action" value="update">
    291282                <table class="form-table">
    292                 <tr>
     283                    <tr valign="top">
     284                <th scope="row"><?php _e('Your AllAround BOT Api Key', 'wp-allaround' ); ?></th>
     285                <td>
     286                        <input type="text" name="allaround_api_key" id="allaround_api_key" value="<?php echo $option_api_key; ?>">
     287                        <br/>
     288                        <label class="description" for="allaround_api_key"><?php _e('This is the unique API key for your blog. Please, keep it safe and do not change if not needed.'); ?></label>
     289                </td>
     290                </tr><tr>
    293291                <th scope="row"><?php _e('Default is to publish new articles', 'wp-allaround' ); ?></th>
    294292                <td>
  • wp-allaround/tags/0.8.1/wp-allaround.php

    r1517333 r1519139  
    44Plugin URI:     http://www.allaroundsiena.com/plugin
    55Description:    This plugin let you to connect a Telegram Bot with your blog
    6 Version:    0.8.0
     6Version:    0.8.1
    77Author:     Michele Pinassi
    88Author URI: http://www.zerozone.it
  • wp-allaround/trunk/README.txt

    r1517333 r1519139  
    44Tags: telegram, bot, channel, broadcast, promote
    55Requires at least: 4.0.0
    6 Tested up to: 4.6.0
    7 Stable tag: 0.8.0
     6Tested up to: 4.6.1
     7Stable tag: 0.8.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535
    3636== Changelog ==
     37
     38= 0.8.1 =
     39* Fixed some bugs
    3740
    3841= 0.8.0 =
  • wp-allaround/trunk/js/custom.js

    r1517333 r1519139  
    33    $("#allaround_verify_result").html('<i>Connecting...please wait !</i>');
    44
    5         $.post(ajax_object.ajax_url, {
    6         action: 'verify'
    7         },function(data) {
    8             if (data) {
    9                 $("#allaround_verify_result").html(data);
    10         }
     5    var apiKey = $("#allaround_api_key").val();
     6
     7    jQuery.ajax({
     8        method: "POST",
     9        dataType : "json",
     10        url : "https://www.allaroundsiena.com/rest/verify",
     11        data: {key: apiKey},
     12        success: function(response) {
     13        $("#allaround_verify_result").html(response.message);
     14            },
     15        error: function(request, status, error) {
     16        $("#allaround_verify_result").html('<b>Error '+error+'</b>');
    1117        }
    12         );
     18        });
    1319    });
    1420});
  • wp-allaround/trunk/wp-allaround-admin.php

    r1517333 r1519139  
    7878        }
    7979
     80    $api_key = $_POST["allaround_api_key"];
     81
     82    update_option('allaround_api_key',$api_key);
     83
    8084    $result = 'updated';
    8185
     
    8892    global $wp_styles;
    8993
    90     wp_enqueue_script( 'ajax-script',
    91         plugins_url( '/js/jquery.validationEngine-it.js', __FILE__ ),
    92         array('jquery')
    93     );
    94 
    95     wp_enqueue_script( 'ajax-script',
    96         plugins_url( '/js/jquery.validationEngine.js', __FILE__ ),
    97         array('jquery')
    98     );
    99 
    100     wp_enqueue_script( 'ajax-script',
    101         plugins_url( '/js/custom.js', __FILE__ ),
    102         array('jquery')
    103     );
     94    wp_register_script( 'validation-locale', plugins_url( '/js/jquery.validationEngine-it.js', __FILE__ ));
     95    wp_register_script( 'validation-engine', plugins_url( '/js/jquery.validationEngine.js', __FILE__ ));
     96    wp_register_script( 'custom-js', plugins_url( '/js/custom.js', __FILE__ ));
    10497
    10598    wp_localize_script( 'ajax-script', 'ajax_object', array(
     
    107100    ));
    108101     
    109     // Load stylesheets
    110     wp_enqueue_style( 'wp-allaround', plugins_url( '/css/validationEngine.jquery.css', __FILE__ ));
    111     wp_enqueue_style( 'wp-allaround', plugins_url( '/css/wp-allaround.css', __FILE__ ));
     102    wp_register_style( 'validation-css', plugins_url( '/css/validationEngine.jquery.css', __FILE__ ));
     103    wp_register_style( 'custom-css', plugins_url( '/css/wp-allaround.css', __FILE__ ));
     104
     105    wp_enqueue_script('validation-locale');
     106    wp_enqueue_script('validation-engine');
     107    wp_enqueue_script('custom-js');
     108    wp_enqueue_style('validation-css');
     109    wp_enqueue_style('custom-css');
    112110}
    113111
     
    241239                <?php _e('Admin e-mail','wp-allaround');?>:
    242240            </td><td>
    243                 <input type="text" name="allaround_blog_admin" id="allaround_blog_admin"  class="validate[required,custom[email]]" value="<?php echo get_bloginfo('admin_email'); ?>">
     241                <input type="text" name="allaround_admin_email" id="allaround_admin_email"  class="validate[required,custom[email]]" value="<?php echo get_bloginfo('admin_email'); ?>">
    244242            </td>
    245243            </tr><tr>
     
    273271        <div id="post-body-content">
    274272            <table class="form-table">
    275                 <tr valign="top">
    276                 <th scope="row"><?php _e('Your AllAround BOT Api Key', 'wp-allaround' ); ?></th>
     273<tr>
    277274                <td>
    278                     <input type="text" name="allaround_api_key" id="allaround_api_key" value="<?php echo $option_api_key; ?>" readonly>
    279                     <br/>
    280                     <label class="description" for="allaround_api_key"><?php _e('This is the unique API key for your blog. Please, keep it safe.'); ?></label>
    281                 </td>
    282             </tr><tr>
    283                 <td>
    284                     <button class="btn btn-large" id="allaround_verify"><?php _e('Verify connection', 'wp-allaround'); ?></button><span id="allaround_verify_result">&nbsp;</span>
     275                    <button class="btn btn-large" id="allaround_verify"><?php _e('Verify connection', 'wp-allaround'); ?></button> <span id="allaround_verify_result">&nbsp;</span>
    285276                </td>
    286277            </tr>
     
    290281                <input type="hidden" name="action" value="update">
    291282                <table class="form-table">
    292                 <tr>
     283                    <tr valign="top">
     284                <th scope="row"><?php _e('Your AllAround BOT Api Key', 'wp-allaround' ); ?></th>
     285                <td>
     286                        <input type="text" name="allaround_api_key" id="allaround_api_key" value="<?php echo $option_api_key; ?>">
     287                        <br/>
     288                        <label class="description" for="allaround_api_key"><?php _e('This is the unique API key for your blog. Please, keep it safe and do not change if not needed.'); ?></label>
     289                </td>
     290                </tr><tr>
    293291                <th scope="row"><?php _e('Default is to publish new articles', 'wp-allaround' ); ?></th>
    294292                <td>
  • wp-allaround/trunk/wp-allaround.php

    r1517333 r1519139  
    44Plugin URI:     http://www.allaroundsiena.com/plugin
    55Description:    This plugin let you to connect a Telegram Bot with your blog
    6 Version:    0.8.0
     6Version:    0.8.1
    77Author:     Michele Pinassi
    88Author URI: http://www.zerozone.it
Note: See TracChangeset for help on using the changeset viewer.