Function: get_swifty_lib_dir_url

Returns the plugin or theme url depending on the $file that is used.

Example:

$swifty_css_admin_url = get_swifty_lib_dir_url( __FILE__ ) . 'css/swifty-admin.css';

Function: LibSwiftyPluginView::lazy_load_css

Use ssd enqueue_style method when ssd is the active theme, otherwise use wp_enqueue_style
See wp_enqueue_style for description of parameters.

Example:

LibSwiftyPluginView::lazy_load_css( 'swcreator_swcreator_css' );

Function: LibSwiftyPluginView::lazy_register_css

Use ssd register_style method when ssd is the active theme, otherwise use wp_register_style
See wp_register_style for description of parameters.

Example:

global $scc_version;
LibSwiftyPluginView::lazy_register_css( 'swcreator_swcreator_css', $this->this_plugin_url . 'css/swcreator.css', false, $scc_version );

Function: LibSwiftyPluginView::lazy_load_js

Use ssd enqueue_script method when ssd is the active theme, otherwise use wp_enqueue_script
See wp_enqueue_script for description of parameters.

Example:

LibSwiftyPluginView::lazy_load_js( 'swc_lightcase_js', $lightcase_url, array( 'jquery' ) );

Function: LibSwiftyPluginView::lazy_load_js_min

Load minified version of script on non development systems and add a bust parameter to the url.
Use ssd enqueue_script method when ssd is the active theme, otherwise use wp_enqueue_script
See wp_enqueue_script for description of parameters.

Example:

LibSwiftyPluginView::lazy_load_js_min( 'slider_view_js',
  plugin_dir_url( __FILE__ ) . 'slider_view.js', array( 'jquery', 'swc_jssor_js' ), false, true );

Filter: swifty_set_area_template_style

Set area template style.
Store a json string with style information for the current page / area / areatemplate
Use the $areaTemplate as ID when $areaName is ‘page’

Example:

  do_action( 'swifty_set_area_template_style', $style, $areaName, $template );

Function: LibSwiftyPluginView::is_swifty_plugin_active

Test if $plugin_name is active.
All swifty plugins will respond to the ‘swifty_active_plugins’ filter and add it’s name to the array.

Example:

if( LibSwiftyPluginView::is_swifty_plugin_active( 'swifty-site' ) ) {
}

Function: LibSwiftyPluginView::get_autosave_version_if_newer

Find newer version of post $pid or return null if there is no newer autosave version.
This function will get the latest autosave of any user for a post and return its content when it is newer than
the latest post update.

Example:

if( LibSwiftyPluginView::is_swifty_plugin_active( 'swifty-site' ) ) {
}

Filter: swifty_get_area_template_style

Look for area template style.
Returns a json string with style information for the current page / area / areatemplate
Use the current page ID when $areaName is ‘page’

Example:

  echo apply_filters( 'swifty_get_area_template_style', '{}', $areaName, $template );

Function: LibSwiftyPluginView::wordpress_is_at_least_version

Checks if WordPress is at least at version $version
Use this when functionality is only available in certain WordPress versions and deprecated in earlier ones.

Example:

if( ! LibSwiftyPluginView::wordpress_is_at_least_version( '4.5' ) ) {
  // whatever you want to do in wordpress versions before 4.5
}