开发者 | AndyGi |
---|---|
更新时间 | 2021年2月20日 00:33 |
捐献地址: | 去捐款 |
PHP版本: | 5.6.32 及以上 |
WordPress版本: | 5.6 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/
directory and unzipThere are three ways by your needs:
1. By control panel
By default the button will be add before the post/page content.
That means you will se the button in the post/page list and into the post/page itself.
You can anable/disable this function from the control panel.
In the admin area go to "Settings/GD Mylist".
2. By Shortcode
if you needs a single button in a page or post or product sheet, just write
[show_gd_mylist_btn]
in the content
3. By code into theme
if you needs to put the buttom in themes code, just write
<?php $arg = array ( 'echo' => true ); do_action('gd_mylist_btn',$arg); ?>
where do you want that button will show it
yuo can show MyList list by shortcode, just create a page (eg: myList) and put into the content the shortcode
[show_gd_mylist_list]
to disable share button
[show_gd_mylist_list share_list='no']
to disable count items
[show_gd_mylist_list show_count='no']
Go to the setting panel (Settings/GD Mylist) and check Yes in case you whant allow the anonymous user.
Note
In case has anonymous user, the user's id data will be storage in a cookie by GD-Mylist.
Cookie name is: gb_mylist_guest
, the expiration date is 30 days, and store only the Guest ID in order the create the list.
Yes, I use Handlebars Js as template. Here you can find the official documentation. The files are in template folder:
I use Font Awesome as icon framework Font Awesome. You can change the class name from Control Panel (Settings/GD Mylist).
Yes you can, you need to change the relative translation. As example, if you want to change add My List text for French you need to change it in the gd-mylist-fr_FR.po and .mo file as well. Please note: keep a copy of this file because it will be overwritten in case of new release.