Changeset 2035722
- Timestamp:
- 02/21/2019 09:05:56 AM (7 years ago)
- Location:
- gd-mylist
- Files:
-
- 44 added
- 3 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/README.md (added)
-
tags/1.0.1/css (added)
-
tags/1.0.1/css/all.min.css (added)
-
tags/1.0.1/css/app.css (added)
-
tags/1.0.1/gd-mylist.php (added)
-
tags/1.0.1/js (added)
-
tags/1.0.1/js/gd-script.js (added)
-
tags/1.0.1/lang (added)
-
tags/1.0.1/lang/gd-mylist-it_IT.mo (added)
-
tags/1.0.1/lang/gd-mylist-it_IT.po (added)
-
tags/1.0.1/lang/gd-mylist-nl_NL.mo (added)
-
tags/1.0.1/lang/gd-mylist-nl_NL.po (added)
-
tags/1.0.1/lang/template.mo (added)
-
tags/1.0.1/lang/template.pot (added)
-
tags/1.0.1/lib (added)
-
tags/1.0.1/lib/drop-tables.php (added)
-
tags/1.0.1/lib/gettext.php (added)
-
tags/1.0.1/lib/handlebars.min.js (added)
-
tags/1.0.1/lib/install-data.php (added)
-
tags/1.0.1/lib/streams.php (added)
-
tags/1.0.1/lib/translate_tool.php (added)
-
tags/1.0.1/lib/uninstall.php (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/template (added)
-
tags/1.0.1/template/box-list.html (added)
-
tags/1.0.1/template/button.html (added)
-
tags/1.0.1/webfonts (added)
-
tags/1.0.1/webfonts/fa-brands-400.eot (added)
-
tags/1.0.1/webfonts/fa-brands-400.svg (added)
-
tags/1.0.1/webfonts/fa-brands-400.ttf (added)
-
tags/1.0.1/webfonts/fa-brands-400.woff (added)
-
tags/1.0.1/webfonts/fa-brands-400.woff2 (added)
-
tags/1.0.1/webfonts/fa-regular-400.eot (added)
-
tags/1.0.1/webfonts/fa-regular-400.svg (added)
-
tags/1.0.1/webfonts/fa-regular-400.ttf (added)
-
tags/1.0.1/webfonts/fa-regular-400.woff (added)
-
tags/1.0.1/webfonts/fa-regular-400.woff2 (added)
-
tags/1.0.1/webfonts/fa-solid-900.eot (added)
-
tags/1.0.1/webfonts/fa-solid-900.svg (added)
-
tags/1.0.1/webfonts/fa-solid-900.ttf (added)
-
tags/1.0.1/webfonts/fa-solid-900.woff (added)
-
tags/1.0.1/webfonts/fa-solid-900.woff2 (added)
-
trunk/README.md (modified) (9 diffs)
-
trunk/gd-mylist.php (modified) (2 diffs)
-
trunk/lib/uninstall.php (added)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gd-mylist/trunk/README.md
r2028424 r2035722 1 === My Wish List === 2 Contributors: AndyGi 3 Donate link: http://www.gekode.co.uk 4 Tags: item lists, wish list, wishlist, posts and pages bookmark 5 Requires at least: 3.9.0 6 Tested up to: 5.0.3 7 Requires PHP: 5.6.32 8 Stable tag: 1 9 License: GPLv2 or later 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 1 # My Wish List # 11 2 12 3 You can create a favorite list of pages or posts in easy and faster way. 13 4 14 == Description == 5 ## Description ## 15 6 This plugin allows you to create wish lists or bookmark for your website pages, posts or product sheet, and display them on any post or page with simple shortcode or code into your theme as well. 16 7 It add items by AJAX system and it's check if user is login or not, you can add or remove list only as login user. 17 8 GD MyList use Handlebars Js as template framework, and Fontawesome (v5.0 free) as icons. 18 9 19 = Features = 10 ### Features ### 20 11 21 * [ new] create setting control panel (find it in Settings/GD Mylist) with the cabality to control: user login, use font awesome icon, hook button to content directly22 * [ new] refactoring template files with Handlebars Js. Now are only two files23 * [ new] add the GD MyList button directly24 * [ new] update Fontawesome library with v5.0 free25 * [ new] performing improvement12 * [v1.0] create setting control panel (find it in Settings/GD Mylist) with the cabality to control: user login, use font awesome icon, hook button to content directly 13 * [v1.0] refactoring template files with Handlebars Js. Now are only two files 14 * [v1.0] add the GD MyList button directly 15 * [v1.0] update Fontawesome library with v5.0 free 16 * [v1.0] performing improvement 26 17 * [v0.4] **items counter**, active or not (active by default) 27 18 * [v0.4] improve share component with: **Twitter**, **Email** and **Whatsapp** (please read note) … … 35 26 36 27 37 = Development = 28 ### Development ### 38 29 * [https://github.com/andygi/gd-mylist](https://github.com/andygi/gd-mylist "https://github.com/andygi/gd-mylist") 39 30 40 == Installation == 31 ## Installation ## 41 32 42 33 1. Upload plugin .zip file to the `/wp-content/plugins/` directory and unzip … … 45 36 4. You can chouse if the user have to login or not, **the plugin not request to be login by default** 46 37 47 == Frequently Asked Questions == 38 ## Frequently Asked Questions ## 48 39 49 = How call myList's button? = 40 ### How call myList's button? ### 50 41 51 42 There are three ways by your needs: … … 67 58 if you needs to put the buttom in themes code, just write 68 59 69 `<?php 60 ``` 61 <?php 70 62 $arg = array ( 71 63 'echo' => true 72 64 ); 73 65 do_action('gd_mylist_btn',$arg); 74 ?>` 66 ?> 67 ``` 75 68 76 69 where do you want that button will show it 77 70 78 = How call myList's list? = 71 ### How call myList's list? ### 79 72 80 73 yuo can show MyList list by shortcode, just create a page (eg: myList) and put into the content the shortcode … … 94 87 ` 95 88 96 = How change login permission? = 89 ### How change login permission? ### 97 90 98 Go to the setting panel (Settings/GD Mylist) and check Yes in case you whant allow the anon imous user.91 Go to the setting panel (Settings/GD Mylist) and check Yes in case you whant allow the anonymous user. 99 92 100 93 101 94 *Note* 102 95 103 In case has anon imous user, the user's id data will be storage in a cookie by GD-Mylist.96 In case has anonymous user, the user's id data will be storage in a cookie by GD-Mylist. 104 97 Cookie name is: `gb_mylist_guest`, the expiration date is 30 days, and store only the Guest ID in order the create the list. 105 98 106 = Can I Template customization? = 99 ### Can I Template customization? ### 107 100 108 101 Yes, I use Handlebars Js as template. … … 113 106 - button.html 114 107 115 = Icon customization = 108 ### Icon customization ### 116 109 117 110 I use **Font Awesome** as icon framework [Font Awesome](https://fontawesome.com/icons). 118 111 You can change the class name from Control Panel (Settings/GD Mylist). 119 112 120 == Screenshots == 113 ## Screenshots ## 121 114 122 115 1. Frontend - MyList Log Bottom Add MyList … … 125 118 3. Control Panel 126 119 127 == Changelog == 120 ## Changelog ## 128 121 129 = 1.0 = 122 ### 1.0.1 ### 123 * bugfix: allways appear login alert in case of anonymous user function is disable 124 125 ### 1.0 ### 130 126 * create setting control panel (find it in Settings/GD Mylist) with the cabality to control: user login, fontawesome icon, hook button to content 131 127 * refactoring template files with Handlebars Js … … 134 130 * performing improvement 135 131 136 = 0.4 = 132 ### 0.4 ### 137 133 * add wish items counter 138 134 * add Twitter, Whatsapp and Email as share method 139 135 * fix share link 140 136 141 = 0.3.2 = 137 ### 0.3.2 ### 142 138 * fix post title not appare on the list on not Multilingual sites (thank’s ‘svenol’) 143 139 144 = 0.3.2 beta = 140 ### 0.3.2 beta ### 145 141 * Multilingual support (English, Italian) with template .pot file 146 142 * Support **mqtranslate** and **qtranslate-x** … … 148 144 * Fix call code into template (thank’s ‘nabjoern’) 149 145 150 = 0.2.1 = 146 ### 0.2.1 ### 151 147 * Fix view problems on wishlist’s list page 152 148 153 = 0.2 = 149 ### 0.2 ### 154 150 * Add login/no login case 155 151 * Now you can put the button into the content 156 152 157 = 0.1 = 153 ### 0.1 ### 158 154 * Initial release 159 155 160 == Upgrade Notice == 156 ## Upgrade Notice ## 161 157 162 = 1.0 =158 ### 1.0 ### 163 159 new functions and fix 164 160 165 = 0.4 = 161 ### 0.4 ### 166 162 new functions and fix 167 163 168 = 0.3 = 164 ### 0.3 ### 169 165 new functions 170 166 171 = 0.2 = 167 ### 0.2 ### 172 168 second release 173 169 174 = 0.1 = 170 ### 0.1 ### 175 171 first release -
gd-mylist/trunk/gd-mylist.php
r2028424 r2035722 98 98 public function gd_setcookie() 99 99 { 100 if ($this->stored_setting()['is_anonymous_allowed'] === 'true' ) {100 if ($this->stored_setting()['is_anonymous_allowed'] === 'true' && !is_user_logged_in()) { 101 101 if (!isset($_COOKIE['gb_mylist_guest'])) { 102 102 $id_guest = $this->var_setting['guest_user']; … … 226 226 $gd_query = $wpdb->get_results($gd_sql); 227 227 228 if ( $this->stored_setting()['is_anonymous_allowed'] === 'true') {228 if (($this->stored_setting()['is_anonymous_allowed'] === 'true') || is_user_logged_in()) { 229 229 if ($gd_query != null) { 230 230 //in mylist -
gd-mylist/trunk/readme.txt
r2028425 r2035722 6 6 Tested up to: 5.0.3 7 7 Requires PHP: 5.6.32 8 Stable tag: 1.0 8 Stable tag: 1.0.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 19 19 = Features = 20 20 21 * [ new] create setting control panel (find it in Settings/GD Mylist) with the cabality to control: user login, use font awesome icon, hook button to content directly22 * [ new] refactoring template files with Handlebars Js. Now are only two files23 * [ new] add the GD MyList button directly24 * [ new] update Fontawesome library with v5.0 free25 * [ new] performing improvement21 * [v1.0] create setting control panel (find it in Settings/GD Mylist) with the cabality to control: user login, use font awesome icon, hook button to content directly 22 * [v1.0] refactoring template files with Handlebars Js. Now are only two files 23 * [v1.0] add the GD MyList button directly 24 * [v1.0] update Fontawesome library with v5.0 free 25 * [v1.0] performing improvement 26 26 * [v0.4] **items counter**, active or not (active by default) 27 27 * [v0.4] improve share component with: **Twitter**, **Email** and **Whatsapp** (please read note) … … 96 96 = How change login permission? = 97 97 98 Go to the setting panel (Settings/GD Mylist) and check Yes in case you whant allow the anon imous user.98 Go to the setting panel (Settings/GD Mylist) and check Yes in case you whant allow the anonymous user. 99 99 100 100 101 101 *Note* 102 102 103 In case has anon imous user, the user's id data will be storage in a cookie by GD-Mylist.103 In case has anonymous user, the user's id data will be storage in a cookie by GD-Mylist. 104 104 Cookie name is: `gb_mylist_guest`, the expiration date is 30 days, and store only the Guest ID in order the create the list. 105 105 … … 126 126 127 127 == Changelog == 128 129 = 1.0.1 = 130 * bugfix: allways appear login alert in case of anonymous user function is disable 128 131 129 132 = 1.0 =
Note: See TracChangeset
for help on using the changeset viewer.