Changeset 2056082
- Timestamp:
- 03/23/2019 11:42:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xo-for-angular/trunk/Includes/Filters/External/PostTemplates.class.php
r2056075 r2056082 19 19 } 20 20 21 function Init() {21 protected function Init() { 22 22 add_filter('template_include', array($this, 'TemplateInclude'), 1, 1); 23 23 add_filter('default_page_template_title', array($this, 'DefaultPageTemplateTitle'), 10, 2); … … 25 25 } 26 26 27 function TemplateInclude($template) {27 public function TemplateInclude($template) { 28 28 if (($this->Xo->Services->Options->GetOption('xo_index_redirect_mode') == 'live') 29 29 && ($file = $this->Xo->GetFile('Includes/Theme/ThemeIndex.php'))) … … 33 33 } 34 34 35 function ThemeTemplates($templates, WP_Theme $theme, $post, $post_type) { 36 echo 'theme templates'; 35 public function ThemeTemplates($templates, WP_Theme $theme, $post, $post_type) { 37 36 $annotatedTemplates = $this->Xo->Services->TemplateReader->GetAnnotatedTemplates(); 38 37
Note: See TracChangeset
for help on using the changeset viewer.