Changeset 1128:9e868a6c21c3 for inc/public/prepend.php
- Timestamp:
- 03/25/13 04:31:18 (12 years ago)
- Branch:
- twig
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/prepend.php
r921 r1128 55 55 } catch (Exception $e) {} 56 56 57 # Add public default templates path 58 $core->tpl->getLoader()->addPath(dirname(__FILE__).'/default-templates'); 59 # Set public context 60 $_ctx = new dcPublicContext($core); 61 $core->tpl->addExtension($_ctx); 62 63 /* 57 64 # Creating template context 58 65 $_ctx = new context(); … … 64 71 ,640); 65 72 } 66 73 */ 67 74 # Loading locales 68 75 $_lang = $core->blog->settings->system->lang; … … 120 127 121 128 # --BEHAVIOR-- publicPrepend 122 $core->callBehavior('publicPrepend',$core );129 $core->callBehavior('publicPrepend',$core,$_ctx); 123 130 124 131 # Prepare the HTTP cache thing … … 127 134 $mod_ts[] = $core->blog->upddt; 128 135 136 137 # Add parent theme path 138 if ($__parent_theme && is_dir($core->blog->themes_path.'/'.$__parent_theme.'/tpl')) { 139 $core->tpl->getLoader()->addPath($core->blog->themes_path.'/'.$__parent_theme.'/tpl'); 140 } 141 # Add theme path at the begining of path list 142 if (is_dir($core->blog->themes_path.'/'.$__theme.'/tpl')) { 143 $core->tpl->getLoader()->prependPath($core->blog->themes_path.'/'.$__theme.'/tpl'); 144 } 145 /* 129 146 $__theme_tpl_path = array( 130 147 $core->blog->themes_path.'/'.$__theme.'/tpl' … … 138 155 dirname(__FILE__).'/default-templates', 139 156 $core->tpl->getPath()); 140 157 */ 141 158 $core->url->mode = $core->blog->settings->system->url_scan; 142 159
Note: See TracChangeset
for help on using the changeset viewer.