public static function instance() { if (is_null(self::$instance)) { self::$instance = new self(); } return self::$instance; }
*/ add_filter('ngg_render_template', 'gallery_filter', 10, 2); /** * * @TODO document * */ function gallery_filter($a, $template_name) { if ($template_name == 'gallery-plcarousel') { return sprintf('%s/carousel/gallery-plcarousel.php', PL_SECTIONS); } else { return $a; } } PageLinesRenderCSS::instance(); add_action('template_redirect', 'pl_check_integrations'); add_action('comment_form_before', 'pl_comment_form_js'); function pl_comment_form_js() { if (get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } } add_action('wp_enqueue_scripts', 'pagelines_register_js'); function pagelines_register_js() { wp_register_script('pagelines-bootstrap-all', PL_JS . '/script.bootstrap.min.js', array('jquery'), '2.3.1', true); wp_register_script('pagelines-blocks', PL_JS . '/script.blocks.js', array('jquery'), '1.0.1', true); wp_register_script('pagelines-supersize', PL_JS . '/script.supersize.js', array('jquery'), '3.1.3', false); wp_register_script('pagelines-viewport', PL_JS . '/script.viewport.js', array('jquery'), PL_CORE_VERSION, true);