I used the footnote stuff to make something similar, but of course this is not nearly usable code.
1. need to set the dropdown ‘tooltip’ or ‘tooltip and link’.
2. need to use the pro versioon
3. need to set the extra-footer to ‘link’ (if you set to excerpt, something breaks.. ?!??!?!)
4. to be done: figure out how to show these in categories. It just list them all like the footer stuff, but it still shows the tooltip (what we want) AND a list of words at te bottom of the page (shoud also have excerpts).
In /usr/share/wordpress/wp-content/plugins/glossary-by-codeat-premium/frontend/Core/Term_Injector.php at line 109
$this->regex_match();
$this->replace_with_utf_8();
$this->regex_match();
$this->replace_with_utf_8();
//Ace
$type = new Type\TermsList;
$type->initialize();
$this->text .= $type->append_content( $this->terms_to_inject );
// end Ace
if ( \gt_fs()->is_plan__premium_only( 'professional' ) ) {
So this code is always on, not what you want, but okay for is.
A new file in /usr/share/wordpress/wp-content/plugins/glossary-by-codeat-premium/frontend/Core/Type/ just a copy of Footnote.php, the file named Termslist.php,
with these changes:
class TermsList extends Engine\Base {
*** instead of Footer
public function html( array $atts ) {
return;
// array( 'before' => '', 'value' => $atts[ 'replace' ] . '', 'after' => '' );
}
*** don’t add anything to the word it self (it already has a tooltip and/or link)
/* if ( !\is_type_inject_set_as( 'footnote' ) ) {
return '';
}
*/
*** removed this to make it work
that was it.
So the TermsList thing is always included (which is okay for us but not for others of course) and it makes a list of words (like footnotes) while not touching the tooltips or links. It would be nice to get the excerpts working, and then of course to get the categories working, and that would be great at the end of the page, even better if they could move to the side somehow (maybe with css or so).
I realize this is a mess but I hope you understand what we need and want.