Plugin Directory

Changeset 2477845


Ignore:
Timestamp:
02/19/2021 04:33:09 PM (5 years ago)
Author:
andygi
Message:

update version 1.1.1

Location:
gd-mylist
Files:
60 added
6 edited

Legend:

Unmodified
Added
Removed
  • gd-mylist/trunk/gd-mylist.php

    r2470347 r2477845  
    44Plugin URI: https://wordpress.org/plugins/gd-mylist/
    55Description: Create mylist items of posts and pages
    6 Version: 1.1
     6Version: 1.1.1
    77Author: Andy Greco
    88Author URI: http://www.gekode.co.uk
     
    6767        new gd_show_gd_mylist_list();
    6868        new gd_show_mylist_btn();
    69        
     69
    7070        new gd_mylist_admin();
    7171    }
    7272
    7373    function gd_mylist_load_plugin_textdomain() {
    74         load_plugin_textdomain( 'gd-mylist', FALSE, basename( dirname( __FILE__ ) ) . '/lang/' );
     74        load_plugin_textdomain( 'gd-mylist', FALSE, GDMYLIST_PLUGIN_NAME . '/lang/' );
    7575    }
    7676
  • gd-mylist/trunk/include/gd_admin_panel.php

    r2470347 r2477845  
    77    {
    88        if (is_admin()) {
    9             add_filter('plugin_action_links_' . plugin_basename(__FILE__), array($this, 'settings_link'));
     9            add_filter('plugin_action_links_' . GDMYLIST_PLUGIN_BASENAME, array($this, 'settings_link'));
    1010            add_action('admin_menu', array($this, 'gd_admin_panel'));
    1111            add_action('admin_init', array($this, 'setup_sections'));
  • gd-mylist/trunk/include/gd_show_mylist_btn.php

    r2470347 r2477845  
    77    public function __construct()
    88    {
    9         // add_action('gd_mylist_btn', array($this, 'gd_show_mylist_btn'), 11, 2);
     9        add_action('gd_mylist_btn', array($this, 'gd_show_mylist_btn'), 11, 2);
    1010        add_shortcode('show_gd_mylist_btn', array($this, 'gd_show_mylist_btn'), 11, 2);
    1111        // Hook button to the content
     
    8585    public function hook_button($content)
    8686    {
    87         if (self::$counter === 0) {
    88             self::$counter++;
    89             if (is_page() != 1 && $this->stored_setting()['is_add_btn'] === 'true') {
    90                 // prepend button before the content
    91                 $atts = array(
    92                     'styletarget' => null, //default
    93                     'item_id' => null,
    94                     'echo' => false,
    95                 );
    96                 $fullcontent = $this->gd_show_mylist_btn($atts) . $content;
    97             } else {
    98                 $fullcontent = $content;
    99             }
    100             return $fullcontent;
     87        if (is_page() != 1 && $this->stored_setting()['is_add_btn'] === 'true') {
     88            // prepend button before the content
     89            $atts = array(
     90                'styletarget' => null, //default
     91                'item_id' => null,
     92                'echo' => false,
     93            );
     94            $fullcontent = $this->gd_show_mylist_btn($atts) . $content;
    10195        } else {
    102             self::$counter = 0;
     96            $fullcontent = $content;
    10397        }
     98        return $fullcontent;
    10499    }
    105100
  • gd-mylist/trunk/readme.txt

    r2470347 r2477845  
    55Requires at least: 3.9.0
    66Tested up to: 5.6
    7 Stable tag: 1.1
     7Stable tag: 1.1.1
    88Requires PHP: 5.6.32
    99License: GPLv2 or later
     
    39391. Upload plugin .zip file to the `/wp-content/plugins/` directory and unzip
    40402. Activate the plugin through the 'Plugins' menu in WordPress
    41 3. Use the shortcode in your posts and pages to display your **button** or **MyList** (more info in FAQ)
     413. Use the control panel or shortcode in your posts and pages to display your **button** or **MyList** (more info in FAQ)
    42424. You can chouse if the user have to login or not, **the plugin not request to be login by default**
    4343
     
    131131== Changelog ==
    132132
     133= 1.1.1 =
     134- extend theme compability
     135- add accessibility tag to button and list template
     136
    133137= 1.1 =
    134138- perfoming improvement
  • gd-mylist/trunk/template/box-list.html

    r2028424 r2477845  
    33    <div class="col-sm-12 ml-share-bar">
    44        {{share.share_label}}
    5         <a href="https://twitter.com/share?url={{share.pageid}}wish={{share.userid}}" target="_blank">
     5        <a href="https://twitter.com/share?url={{share.pageid}}wish={{share.userid}}" aria-label="{{share.share_label}} twitter" title="{{share.share_label}} twitter" target="_blank">
    66            <i class="fab fa-twitter-square"></i>
    77        </a>
    8         <a href="whatsapp://send?text={{share.pageid}}wish_{{share.userid}}" data-action="share/whatsapp/share" class="ml-mobile">
     8        <a href="whatsapp://send?text={{share.pageid}}wish_{{share.userid}}" data-action="share/whatsapp/share" aria-label="{{share.share_label}} whatsapp" title="{{share.share_label}} whatsapp" target="_blank">
    99            <i class="fab fa-whatsapp-square"></i>
    1010        </a>
    11         <a href="https://www.facebook.com/sharer/sharer.php?u={{share.pageid}}wish={{share.userid}}" target="_blank">
     11        <a href="https://www.facebook.com/sharer/sharer.php?u={{share.pageid}}wish={{share.userid}}" aria-label="{{share.share_label}} facebook" title="{{share.share_label}} facebook" target="_blank">
    1212            <i class="fab fa-facebook-square"></i>
    1313        </a>
    14         <a href="mailto:?body={{share.pageid}}wish={{share.userid}}" target="_blank">
     14        <a href="mailto:?body={{share.pageid}}wish={{share.userid}}" aria-label="{{share.share_label}} email" title="{{share.share_label}} email" target="_blank">
    1515            <i class="fas fa-envelope-square"></i>
    1616        </a>
    17         <a href="{{share.pageid}}wish={{share.userid}}" target="_blank">
     17        <a href="{{share.pageid}}wish={{share.userid}}" aria-label="{{share.share_label}} link" title="{{share.share_label}} link" target="_blank">
    1818            <i class="fas fa-share-square"></i>
    1919        </a>
     
    3131        <div class="thumbnail gd-mylist-box">
    3232            {{#if postimage}}
    33             <a href="{{posturl}}"><img src="{{postimage}}" class="img-book img-responsive"></a>
     33            <a href="{{posturl}}" aria-label="{{posttitle}}" title="{{posttitle}}">
     34                <img src="{{postimage}}" class="img-book img-responsive" alt="{{posttitle}}">
     35            </a>
    3436            {{/if}}
    3537            <div class="caption">
     
    4244                            data-postid="{{showRemove.itemid}}"
    4345                            data-styletarget="{{showRemove.styletarget}}"
    44                             data-userid="{{showRemove.userid}}" >
     46                            data-userid="{{showRemove.userid}}"
     47                            aria-label="{{showRemove.label}}" title="{{showRemove.label}}" >
    4548                            <i class="{{showRemove.icon}}"></i> {{showRemove.label}}
    4649                    </a>
  • gd-mylist/trunk/template/button.html

    r2028424 r2477845  
    55    data-postid="{{showAdd.itemid}}"
    66    data-styletarget="{{showAdd.styletarget}}"
    7     data-userid="{{showAdd.userid}}" >
     7    data-userid="{{showAdd.userid}}"
     8    aria-label="{{showAdd.label}}" title="{{showAdd.label}}" >
    89    <i class="{{showAdd.icon}}"></i> {{showAdd.label}}
    910</a>
     
    1617        data-postid="{{showRemove.itemid}}"
    1718        data-styletarget="{{showRemove.styletarget}}"
    18         data-userid="{{showRemove.userid}}" >
     19        data-userid="{{showRemove.userid}}"
     20        aria-label="{{showRemove.label}}" title="{{showRemove.label}}" >
    1921        <i class="{{showRemove.icon}}"></i> {{showRemove.label}}
    2022</a>
     
    2224
    2325{{#if showLogin}}
    24 <a href="javascript:void();" class="btn btn-default" onclick="javascritp:alert('{{showLogin.message}}')">
     26<a href="javascript:void();" class="btn btn-default" onclick="javascritp:alert('{{showLogin.message}}')"
     27    aria-label="{{showLogin.label}}" title="{{showLogin.label}}" >
    2528    <i class="{{showLogin.icon}}"></i> {{showLogin.label}}
    2629</a>
Note: See TracChangeset for help on using the changeset viewer.