PATH:
home
/
vcomplcotr
/
www
/
wp-content
/
plugins
/
fancy-gallery
/
classes
<?php Namespace WordPress\Plugin\GalleryManager; abstract class Template { static function init(){ add_Filter('search_template', Array(static::class, 'changeSearchTemplate')); } static function changeSearchTemplate($template){ global $wp_query; if (Query::isGallerySearch($wp_query) && $search_template = locate_Template(sprintf('search-%s.php', Post_Type::post_type_name))) return $search_template; else return $template; } static function load($template_name, $vars = Array()){ extract($vars); $template_path = locate_Template("{$template_name}.php"); OB_Start(); if (!empty($template_path)) include $template_path; else include sprintf('%s/templates/%s.php', Core::$plugin_folder, $template_name); return OB_Get_Clean(); } } Template::init();
[+]
..
[-] template.php
[edit]
[-] content-filter.php
[edit]
[-] thumbnails.php
[edit]
[-] scripts.php
[edit]
[-] mocking-bird.php
[edit]
[-] ajax-requests.php
[edit]
[-] wpml.php
[edit]
[-] gallery.php
[edit]
[-] post.php
[edit]
[-] lightbox.php
[edit]
[-] i18n.php
[edit]
[-] post-type.php
[edit]
[-] wp-query-extensions.php
[edit]
[-] taxonomies.php
[edit]
[-] core.php
[edit]
[-] index.html
[edit]
[-] query.php
[edit]
[-] template-tags-fallbacks.php
[edit]
[-] styles.php
[edit]
[-] shortcode-filter.php
[edit]
[-] tiny-mce-editor.php
[edit]
[-] options.php
[edit]