\com\bmj\jnp\plugins\jnp_widgets\articlesPopular_Articles_Widget

JNP Popular Articles Widget class

Summary

Methods
Properties
Constants
customize_register()
widget()
__construct()
getExpandCollapse()
No public properties found
No constants found
processUrl()
openWidget()
closeWidget()
$defaults
N/A
No private methods found
No private properties found
N/A

Properties

$defaults

$defaults : array

Type

array — Default values for customizer controls

Methods

customize_register()

customize_register(\WP_Customize_Manager  $wp_customize, array  $params = array()) 

Register customizer controls

Parameters

\WP_Customize_Manager $wp_customize

Instance of WP_Customize_Manager passed to 'customize_register' action

array $params

Params for standard widget

widget()

widget(  $args,   $instance) 

Parameters

$args
$instance

__construct()

__construct() 

getExpandCollapse()

getExpandCollapse(boolean  $collapse = true) 

Expand/Collapse SVGs

Parameters

boolean $collapse

processUrl()

processUrl(string  $url) : string

Process the HighWire URL

Transform a link to the HighWire API to a link to the live article

Parameters

string $url

HighWire URL

Returns

string —

$url

openWidget()

openWidget(array  $instance, array|string  $classes = array(), string  $extra = '') 

Open standard widget

Parameters

array $instance
array|string $classes
string $extra

closeWidget()

closeWidget() 

Close standard widget