/** * Layerslider API */ function evolve_layerslider_ready() { if (class_exists('LS_Sources')) { LS_Sources::addSkins(get_template_directory() . '/library/plugins/ls-skins'); } }
/** * Layerslider API */ function avada_layerslider_ready() { if (class_exists('LS_Sources')) { LS_Sources::addSkins(get_template_directory() . '/includes/ls-skins'); } if (defined('LS_PLUGIN_BASE')) { remove_action('after_plugin_row_' . LS_PLUGIN_BASE, 'layerslider_plugins_purchase_notice', 10, 3); } }
if (!defined('TAB')) { define("TAB", "\t"); } // Shared include LS_ROOT_PATH . '/wp/scripts.php'; include LS_ROOT_PATH . '/wp/menus.php'; include LS_ROOT_PATH . '/wp/hooks.php'; include LS_ROOT_PATH . '/wp/widgets.php'; include LS_ROOT_PATH . '/wp/compatibility.php'; include LS_ROOT_PATH . '/wp/shortcodes.php'; include LS_ROOT_PATH . '/classes/class.ls.posts.php'; include LS_ROOT_PATH . '/classes/class.ls.sliders.php'; include LS_ROOT_PATH . '/classes/class.ls.sources.php'; // Add demo sliders and skins LS_Sources::addDemoSlider(LS_ROOT_PATH . '/demos/'); LS_Sources::addSkins(LS_ROOT_PATH . '/static/skins/'); LS_Sources::removeSkin('preview'); // Back-end only if (is_admin()) { include LS_ROOT_PATH . '/wp/activation.php'; include LS_ROOT_PATH . '/wp/tinymce.php'; include LS_ROOT_PATH . '/wp/help.php'; include LS_ROOT_PATH . '/wp/notices.php'; include LS_ROOT_PATH . '/wp/actions.php'; // Front-end only } else { } // Auto update if (!class_exists('KM_PluginUpdatesV3')) { require_once LS_ROOT_PATH . '/classes/class.km.autoupdate.plugins.v3.php'; }
} } foreach ($fonts as $key => $font) { if (!$font['font_name']) { unset($fonts[$key]); } } update_option('scalia_additionals_fonts', $fonts); } wp_redirect(admin_url('themes.php?page=fonts-manager')); } } } /* LAYERSLIDER SKIN */ if (scalia_is_plugin_active('LayerSlider/layerslider.php') && class_exists('LS_Sources')) { LS_Sources::addSkins(get_template_directory() . '/ls_skin/'); } function scalia_theme_rewrite_flush() { flush_rewrite_rules(); } add_action('after_switch_theme', 'scalia_theme_rewrite_flush'); /* ------------------------------------------------------------------- PERSONALIZED FUNCTIONS ---------------------------------------------------------------------- */ /** * Check to see if the current page has a parent or if the page itsel is a parent. * If current is a parent page, then it displays the child pages associated with it. * If current is a child page, then it displays all other child pages of its parent page. */ function list_child_pages()