New

We just released a new plugin bundle: Struninn - Elementor Plugins Bundle! We'll be having a discount price for just a few days, so hurry up and check it out!

Our Envato Profile

Documentation

Struninn – Elementor Widgets

wordpress

shortcodes

elementor

react

Schedule Plugin

Template Functions

The plugin provides template functions for the following widgets:

Channel Subscribe Button

Syntax

struninntwitch_template_channel_subscribe_button( array $args = [] )

Parameters

$args
(array) (Optional) Arguments to modify template output.

$additional_wrapper_classes
(array) (Optional) Additional classes for the wrapper.

$text
(string) (Optional) Button text.
Default value: ‘Subscribe!’

$before_text
(string) (Optional)
Content to insert before button text.

$after_text
(string) (Optional)
Content to insert after button text.

$href
(string) (Optional)
Button link URL.

$target
(string) (Optional)
Button target.
Default value: ‘_blank’

$styles
(string) (Optional)
Additional inline styles for the wrapper.

Example

$args = [
  'text'                       => __('Subscribe to my channel!', 'text_domain'),
  'additional_wrapper_classes' => ['custom-class-1', 'custom-class-2']
];

struninntwitch_template_channel_subscribe_button($args);

Channel Schedule

Syntax

struninntwitch_template_channel_schedule( array $args = [] )

Parameters

$args
(array) (Optional) Arguments to modify template output.

$additional_wrapper_classes
(array) (Optional) Additional classes for the wrapper.

$template
(string) (Optional) Schedule template to return, one of: ‘table’, ‘grid’, ‘album’.
Default value: ‘table’

$hide_more_button
(bool) (Optional)
True to hide more button.
Default value: false

$styles
(string) (Optional)
Additional inline styles for the wrapper.

Example

$args = [
  'template'         => 'grid',
  'hide_more_button' => true
];

struninntwitch_template_channel_schedule($args);