Plugin Directory

Changeset 2824582


Ignore:
Timestamp:
11/26/2022 02:41:04 PM (3 years ago)
Author:
website366
Message:

Cap nhat phien ban moi

Location:
do-shortcode-widget-everywhere-wpshare247/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • do-shortcode-widget-everywhere-wpshare247/trunk/do-shortcode-widget-everywhere-wpshare247.php

    r2824438 r2824582  
    44 * Plugin URI: https://wpshare247.com/
    55 * Description: Do shortcode widget everywhere you want, in  post, page constent, in content editor classic or Gutenberg hoac template wordpress as header.php, footer.php....
    6  * Version: 1.0.0
     6 * Version: 1.0.1
    77 * Author: Wpshare247.com
    88 * Author URI: https://wpshare247.com
  • do-shortcode-widget-everywhere-wpshare247/trunk/inc/wpshare247_pro_shortcode.php

    r2824438 r2824582  
    4343                                );
    4444            $instance = wp_parse_args((array)$instance, $defaults);
     45           
     46            $number = $wg_obj->number;
     47           
     48            if($number=='__i__'){
    4549            ?>
    46            
    47             <strong>Shortcode</strong><br/>
    48             <small>(<?php esc_html_e('Click on below code to copy shortcode and insert to post content', 'ws247-dswew');?>)</small><br/>
    49             <?php
    50             $wg_shortcode = '[wpshare247_pro_widget_html widget_id="'.$wg_obj->id.'"]';
     50                <p style="color:#f00;"><?php esc_html_e('You need to update first to receive shortcode', 'ws247-dswew');?></p>
     51            <?php
     52            }else{
    5153            ?>
    52             <p onClick="wpshare247_copy_shortcode(this);" title="<?php esc_html_e('Click me to copy shortcode', 'ws247-dswew');?>" class="wp-pro-bg" style="display:inline-block; border:1px solid #ccc; padding: 5px; cursor: copy; background: #ff9800 !important;color: #fff !important;"><?php echo esc_attr($wg_shortcode);?></p>
    53             <br/>
    54             <small>(<?php esc_html_e('Or click on below code to copy shortcode and insert php template: header.php hoặc footer.php ...etc', 'ws247-dswew');?>)</small><br/>
    55             <pre onClick="wpshare247_copy_shortcode(this);" title="<?php esc_html_e('Click me to copy shortcode', 'ws247-dswew');?>" class="wp-pro-bg" style="display:inline-block; border:1px solid #ccc; padding: 5px; cursor: copy; background: #ff9800 !important;color: #fff !important;white-space: pre-wrap;white-space: -moz-pre-wrap;white-space: -pre-wrap;white-space: -o-pre-wrap; word-wrap: break-word; display:block;">&lt;?php echo do_shortcode('[wpshare247_pro_widget_html id="<?php echo esc_attr($wg_obj->id); ?>"]'); ?&gt;</pre>
     54                <strong>Shortcode</strong><br/>
     55                <small>(<?php esc_html_e('Click on below code to copy shortcode and insert to post content', 'ws247-dswew');?>)</small><br/>
     56                <?php
     57                $wg_shortcode = '[wpshare247_pro_widget_html widget_id="'.$wg_obj->id.'"]';
     58                ?>
     59                <p onClick="wpshare247_copy_shortcode(this);" title="<?php esc_html_e('Click me to copy shortcode', 'ws247-dswew');?>" class="wp-pro-bg" style="display:inline-block; border:1px solid #ccc; padding: 5px; cursor: copy; background: #ff9800 !important;color: #fff !important;"><?php echo esc_attr($wg_shortcode);?></p>
     60                <br/>
     61                <small>(<?php esc_html_e('Or click on below code to copy shortcode and insert php template: header.php hoặc footer.php ...etc', 'ws247-dswew');?>)</small><br/>
     62                <pre onClick="wpshare247_copy_shortcode(this);" title="<?php esc_html_e('Click me to copy shortcode', 'ws247-dswew');?>" class="wp-pro-bg" style="display:inline-block; border:1px solid #ccc; padding: 5px; cursor: copy; background: #ff9800 !important;color: #fff !important;white-space: pre-wrap;white-space: -moz-pre-wrap;white-space: -pre-wrap;white-space: -o-pre-wrap; word-wrap: break-word; display:block;">&lt;?php echo do_shortcode('[wpshare247_pro_widget_html id="<?php echo esc_attr($wg_obj->id); ?>"]'); ?&gt;</pre>
    5663            <?php
     64            }
    5765            $retrun = null;
    5866            return array($wg_obj, $return, $instance);
  • do-shortcode-widget-everywhere-wpshare247/trunk/languages/language.pot

    r2824438 r2824582  
    3030msgid "To copy shortcode, your website must install SSL (https)"
    3131msgstr ""
     32
     33msgid "You need to update first to receive shortcode"
     34msgstr ""
  • do-shortcode-widget-everywhere-wpshare247/trunk/languages/ws247-dswew-vi.po

    r2824438 r2824582  
    33"Project-Id-Version: \n"
    44"POT-Creation-Date: 2020-12-11 10:34+0700\n"
    5 "PO-Revision-Date: 2022-11-25 08:23+0700\n"
     5"PO-Revision-Date: 2022-11-26 21:36+0700\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    3030msgid "To copy shortcode, your website must install SSL (https)"
    3131msgstr "Để copy được, Website bạn cần cài đặt https"
     32
     33msgid "You need to update first to receive shortcode"
     34msgstr "Bạn cần cập nhật Widget trước để thấy shortcode"
  • do-shortcode-widget-everywhere-wpshare247/trunk/readme.txt

    r2824438 r2824582  
    66Tested up to: 6.1.1
    77Requires PHP: 5.6
    8 Stable tag: 1.0.0
     8Stable tag: 1.0.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4040== Changelog ==
    4141
    42 = 1.0 =
     42= 1.0.0 =
    4343
    4444* Publishing plugin
    4545
     46= 1.0.1 =
     47
     48* Fix bug widget added first time
     49
    4650== Upgrade Notice ==
    4751
Note: See TracChangeset for help on using the changeset viewer.