Changeset 2477845
- Timestamp:
- 02/19/2021 04:33:09 PM (5 years ago)
- Location:
- gd-mylist
- Files:
-
- 60 added
- 6 edited
-
tags/1.1.1 (added)
-
tags/1.1.1/css (added)
-
tags/1.1.1/css/all.min.css (added)
-
tags/1.1.1/css/app.css (added)
-
tags/1.1.1/gd-mylist.php (added)
-
tags/1.1.1/include (added)
-
tags/1.1.1/include/gd_add_mylist.php (added)
-
tags/1.1.1/include/gd_admin_panel.php (added)
-
tags/1.1.1/include/gd_dbquery.php (added)
-
tags/1.1.1/include/gd_mylist_asset.php (added)
-
tags/1.1.1/include/gd_remove_mylist.php (added)
-
tags/1.1.1/include/gd_setcookie.php (added)
-
tags/1.1.1/include/gd_show_gd_mylist_list.php (added)
-
tags/1.1.1/include/gd_show_mylist_btn.php (added)
-
tags/1.1.1/js (added)
-
tags/1.1.1/js/gd-script.js (added)
-
tags/1.1.1/lang (added)
-
tags/1.1.1/lang/gd-mylist-de_DE.mo (added)
-
tags/1.1.1/lang/gd-mylist-de_DE.po (added)
-
tags/1.1.1/lang/gd-mylist-en_GB.mo (added)
-
tags/1.1.1/lang/gd-mylist-en_GB.po (added)
-
tags/1.1.1/lang/gd-mylist-en_US.mo (added)
-
tags/1.1.1/lang/gd-mylist-en_US.po (added)
-
tags/1.1.1/lang/gd-mylist-es_ES.mo (added)
-
tags/1.1.1/lang/gd-mylist-es_ES.po (added)
-
tags/1.1.1/lang/gd-mylist-fr_FR.mo (added)
-
tags/1.1.1/lang/gd-mylist-fr_FR.po (added)
-
tags/1.1.1/lang/gd-mylist-it_IT.mo (added)
-
tags/1.1.1/lang/gd-mylist-it_IT.po (added)
-
tags/1.1.1/lang/gd-mylist-ja.mo (added)
-
tags/1.1.1/lang/gd-mylist-ja.po (added)
-
tags/1.1.1/lang/gd-mylist-nl_NL.mo (added)
-
tags/1.1.1/lang/gd-mylist-nl_NL.po (added)
-
tags/1.1.1/lang/template.mo (added)
-
tags/1.1.1/lang/template.po (added)
-
tags/1.1.1/lib (added)
-
tags/1.1.1/lib/drop-tables.php (added)
-
tags/1.1.1/lib/handlebars.min.js (added)
-
tags/1.1.1/lib/install-data.php (added)
-
tags/1.1.1/lib/uninstall.php (added)
-
tags/1.1.1/readme.txt (added)
-
tags/1.1.1/template (added)
-
tags/1.1.1/template/box-list.html (added)
-
tags/1.1.1/template/button.html (added)
-
tags/1.1.1/webfonts (added)
-
tags/1.1.1/webfonts/fa-brands-400.eot (added)
-
tags/1.1.1/webfonts/fa-brands-400.svg (added)
-
tags/1.1.1/webfonts/fa-brands-400.ttf (added)
-
tags/1.1.1/webfonts/fa-brands-400.woff (added)
-
tags/1.1.1/webfonts/fa-brands-400.woff2 (added)
-
tags/1.1.1/webfonts/fa-regular-400.eot (added)
-
tags/1.1.1/webfonts/fa-regular-400.svg (added)
-
tags/1.1.1/webfonts/fa-regular-400.ttf (added)
-
tags/1.1.1/webfonts/fa-regular-400.woff (added)
-
tags/1.1.1/webfonts/fa-regular-400.woff2 (added)
-
tags/1.1.1/webfonts/fa-solid-900.eot (added)
-
tags/1.1.1/webfonts/fa-solid-900.svg (added)
-
tags/1.1.1/webfonts/fa-solid-900.ttf (added)
-
tags/1.1.1/webfonts/fa-solid-900.woff (added)
-
tags/1.1.1/webfonts/fa-solid-900.woff2 (added)
-
trunk/gd-mylist.php (modified) (2 diffs)
-
trunk/include/gd_admin_panel.php (modified) (1 diff)
-
trunk/include/gd_show_mylist_btn.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/template/box-list.html (modified) (3 diffs)
-
trunk/template/button.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gd-mylist/trunk/gd-mylist.php
r2470347 r2477845 4 4 Plugin URI: https://wordpress.org/plugins/gd-mylist/ 5 5 Description: Create mylist items of posts and pages 6 Version: 1.1 6 Version: 1.1.1 7 7 Author: Andy Greco 8 8 Author URI: http://www.gekode.co.uk … … 67 67 new gd_show_gd_mylist_list(); 68 68 new gd_show_mylist_btn(); 69 69 70 70 new gd_mylist_admin(); 71 71 } 72 72 73 73 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/' ); 75 75 } 76 76 -
gd-mylist/trunk/include/gd_admin_panel.php
r2470347 r2477845 7 7 { 8 8 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')); 10 10 add_action('admin_menu', array($this, 'gd_admin_panel')); 11 11 add_action('admin_init', array($this, 'setup_sections')); -
gd-mylist/trunk/include/gd_show_mylist_btn.php
r2470347 r2477845 7 7 public function __construct() 8 8 { 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); 10 10 add_shortcode('show_gd_mylist_btn', array($this, 'gd_show_mylist_btn'), 11, 2); 11 11 // Hook button to the content … … 85 85 public function hook_button($content) 86 86 { 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; 101 95 } else { 102 self::$counter = 0;96 $fullcontent = $content; 103 97 } 98 return $fullcontent; 104 99 } 105 100 -
gd-mylist/trunk/readme.txt
r2470347 r2477845 5 5 Requires at least: 3.9.0 6 6 Tested up to: 5.6 7 Stable tag: 1.1 7 Stable tag: 1.1.1 8 8 Requires PHP: 5.6.32 9 9 License: GPLv2 or later … … 39 39 1. Upload plugin .zip file to the `/wp-content/plugins/` directory and unzip 40 40 2. 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)41 3. Use the control panel or shortcode in your posts and pages to display your **button** or **MyList** (more info in FAQ) 42 42 4. You can chouse if the user have to login or not, **the plugin not request to be login by default** 43 43 … … 131 131 == Changelog == 132 132 133 = 1.1.1 = 134 - extend theme compability 135 - add accessibility tag to button and list template 136 133 137 = 1.1 = 134 138 - perfoming improvement -
gd-mylist/trunk/template/box-list.html
r2028424 r2477845 3 3 <div class="col-sm-12 ml-share-bar"> 4 4 {{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"> 6 6 <i class="fab fa-twitter-square"></i> 7 7 </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"> 9 9 <i class="fab fa-whatsapp-square"></i> 10 10 </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"> 12 12 <i class="fab fa-facebook-square"></i> 13 13 </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"> 15 15 <i class="fas fa-envelope-square"></i> 16 16 </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"> 18 18 <i class="fas fa-share-square"></i> 19 19 </a> … … 31 31 <div class="thumbnail gd-mylist-box"> 32 32 {{#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> 34 36 {{/if}} 35 37 <div class="caption"> … … 42 44 data-postid="{{showRemove.itemid}}" 43 45 data-styletarget="{{showRemove.styletarget}}" 44 data-userid="{{showRemove.userid}}" > 46 data-userid="{{showRemove.userid}}" 47 aria-label="{{showRemove.label}}" title="{{showRemove.label}}" > 45 48 <i class="{{showRemove.icon}}"></i> {{showRemove.label}} 46 49 </a> -
gd-mylist/trunk/template/button.html
r2028424 r2477845 5 5 data-postid="{{showAdd.itemid}}" 6 6 data-styletarget="{{showAdd.styletarget}}" 7 data-userid="{{showAdd.userid}}" > 7 data-userid="{{showAdd.userid}}" 8 aria-label="{{showAdd.label}}" title="{{showAdd.label}}" > 8 9 <i class="{{showAdd.icon}}"></i> {{showAdd.label}} 9 10 </a> … … 16 17 data-postid="{{showRemove.itemid}}" 17 18 data-styletarget="{{showRemove.styletarget}}" 18 data-userid="{{showRemove.userid}}" > 19 data-userid="{{showRemove.userid}}" 20 aria-label="{{showRemove.label}}" title="{{showRemove.label}}" > 19 21 <i class="{{showRemove.icon}}"></i> {{showRemove.label}} 20 22 </a> … … 22 24 23 25 {{#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}}" > 25 28 <i class="{{showLogin.icon}}"></i> {{showLogin.label}} 26 29 </a>
Note: See TracChangeset
for help on using the changeset viewer.