\com\bmj\jnp\plugins\jnp_widgets\careersCareers_Jobs_Widget

JNP Careers Widget class

Summary

Methods
Properties
Constants
widget()
customize_register()
cusomtize_validate_xml_url()
ajax()
do_ajax()
__construct()
getExpandCollapse()
No public properties found
No constants found
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

widget()

widget(array  $args, array  $instance) 

Render the widget

Parameters

array $args

Display arguments including 'before_title', 'after_title', 'before_widget', and 'after_widget'.

array $instance

The settings for the particular instance of the widget.

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

cusomtize_validate_xml_url()

cusomtize_validate_xml_url(  $validity,   $value) 

Ugly hack: Hijacked validate call for XML URL

Reset last fetch time

Cause: Madgex's refusal to add CORS header

Parameters

$validity
$value

ajax()

ajax() 

Ugly hack

Cause: Madgex's refusal to add CORS header

do_ajax()

do_ajax() 

Ugly hack

Cause: Madgex's refusal to add CORS header

__construct()

__construct() 

getExpandCollapse()

getExpandCollapse(boolean  $collapse = true) 

Expand/Collapse SVGs

Parameters

boolean $collapse

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