Properties

$plugin_name

$plugin_name : string

The ID of this plugin.

Type

string — The ID of this plugin.

$version

$version : string

The version of this plugin.

Type

string — The current version of this plugin.

Methods

__construct()

__construct(string  $plugin_name, string  $version) 

Initialize the class and set its properties.

Parameters

string $plugin_name

The name of the plugin.

string $version

The version of this plugin.

enqueue_styles()

enqueue_styles() 

Register the stylesheets for the public-facing side of the site.

enqueue_scripts()

enqueue_scripts() 

Register the JavaScript for the public-facing side of the site.

add_open_graph_meta_tags_for_social_media()

add_open_graph_meta_tags_for_social_media() 

Add opne graph (OG) meta tags describing the respective page. This data is used by social networks to generate excerpts for sharing.

enable_mathjax()

enable_mathjax() 

Enable MathJax on all public pages.

fix_custom_logo_html()

fix_custom_logo_html() 

Fix some invalid html generated by WordPress as part of the logo.

To be added to the 'get_custom_logo' filter.

extended_search_and_navigation_at_loop_start()

extended_search_and_navigation_at_loop_start(string  $query) 

Add search based extended navigation to the main page.

Add a search interface, some statistics about the number of publications and volumes, and links to the respective volume pand publication type pages to the main page just before the loop starts.

To be added to the 'loop_start' action.

Parameters

string $query

Query that lead to the current loop.

search_form_at_loop_start_on_search_page()

search_form_at_loop_start_on_search_page(string  $query) 

Add a search form above the search results just before the loop starts.

To be added to the 'loop_start' action.

Parameters

string $query

Query that lead to the current loop.

clean_newline_and_protect_from_search_string()

clean_newline_and_protect_from_search_string(\WP_Query  $query_object) 

Clean \newline and \protect from search queries to fix the title click feature for authors using those in their title

To be added to the 'parse_query' action.

Parameters

\WP_Query $query_object

Query that lead to the current search.

secondary_journal_help_text()

secondary_journal_help_text(string  $query) 

Add a help text for listing pages showing posts from the secondary journal just before the loop starts.

Parameters

string $query

Query that lead to the current loop.