Pjade error: Error, while eval template. «Undefined offset: 1» [Undefined offset: 1]
template: page_template
Generated HTML
0 <!DOCTYPE html>
1 <html xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml" itemscope="itemscope" itemtype="http://schema.org/Product">
2 <head>
3 <meta charset="utf-8"/>
4 <title>Агентства г. Оскемен</title><meta name="og:title" content="Агентства г. Оскемен"/>
5 <meta name="og:type" content="product"/>
6 <meta name="og:image" content="http://kompastour.uz/public/images/site/social/share_img.png"/>
7 <meta name="og:url" content="http://kompastour.uz/content_article/view/184"/>
8 <meta name="og:site_name" content="Touroperator Kompas"/>
9 <meta name="vk:app_id" content="5068049"/>
10 <meta name="fb:app_id" content="1054275477940183"/>
11 <meta name="keywords" content="Туры, Туризм, Путёвки, Билеты, Бронь, Отдых, Путешествия, Индия, Турция, Таиланд, Испания, Сингапур, Вьетнам, Египет, Малайзия, Шри-Ланка, Финляндия, Индонезия, Иссык-Куль, Казахстан, Авиабилеты, Гоа, Шарм Эль Шейх"/>
12 <meta name="description" content="ОСКЕМЕН-ТУР+7 (7232) 52 64 73ул. Кабанбай Батыра 142, оф. 414MARCO POLO TRAVEL+7 (7232) 26-54-13ул. М.Горького 21, офис 313VIVA BUSINESS+7 (7232) 705-015ул. М.Горького"/>
13 <style> .js_include { display: none; }
14 </style> <link media="screen" rel="stylesheet" type="text/css" href="/public/css/main.css?1507013346"/>
15 <script type="text/javascript"> window.site_url=location.protocol+'//'+location.host+'/';window.classes={msg:{}};
16 </script><script type="text/javascript"> window.included={};
17 window.__js_version={"admin\/access_moderate.js":1443981837,"admin\/autocomplete.js":1443981837,"admin\/banner_moderate.js":1444412725,"admin\/comment_moderate.js":1443981837,"admin\/configurator_moderate.js":1443981837,"admin\/content_moderate.js":1443981837,"admin\/editor.js":1443981837,"admin\/feedback_moderate.js":1443981837,"admin\/feedback_page.js":1443981837,"admin\/gallery_moderate.js":1443981837,"admin\/gallery_page.js":1443981837,"admin\/image_list.js":1443981837,"admin\/ko.js":1449409867,"admin\/log_moderate.js":1443981837,"admin\/menu_moderate.js":1443981837,"admin\/tape_moderate.js":1443981837,"admin\/tree.js":1443981837,"admin\/unionjs_moderate.js":1443981837,"admin\/ckeditor\/ckeditor.js":1450012103,"admin\/ckeditor\/config.js":1449408882,"admin\/ckeditor\/gallery.js":1443981837,"admin\/ckeditor\/imap.js":1443981837,"admin\/ckeditor\/injection.js":1443981837,"admin\/ckeditor\/mediacode.js":1443981837,"admin\/ckeditor\/misc.js":1444406542,"admin\/ckeditor\/preview.js":1443981837,"lib\/bx_chat_selector.js":1574972275,"lib\/jquery_datetimepicker.js":1443981837,"lib\/jquery_dynatree.js":1443981837,"lib\/jquery.js":1443981837,"lib\/jquery_multiselect.js":1443981837,"lib\/jquery_pnotify.js":1443981837,"lib\/jquery_scrollpane.js":1443981837,"lib\/jquery_ui.js":1443981837,"lib\/knockout.js":1443981837,"lib\/lodash.js":1443981837,"lib\/moment.js":1443981837,"lib\/respond.js":1443981837,"lib\/select2.js":1449408882,"lib\/selectordie.js":1443981837,"misc\/class.js":1458498717,"misc\/form_observer.js":1443981837,"misc\/ko.js":1444235944,"misc\/layout_form.js":1443981837,"misc\/main.js":1443981837,"misc\/notification.js":1443981837,"misc\/preview.js":1443981837,"misc\/social.js":1571830543,"misc\/templates.js":1443981837,"misc\/union_field.js":1443981837,"misc\/ymap.js":1443981837,"modules\/access.js":1443981837,"modules\/article.js":1449408882,"modules\/comment.js":1443981837,"modules\/feedback.js":1443981837,"modules\/gallery.js":1443981837,"modules\/search.js":1450012103,"site\/engine.js":1444406542,"site\/homepage.js":1486735101};window.include=function(name,callback){if(!window.included[name]){window.included[name]=true;var path=window.include.js_path+name+".js?"+__js_version[name+".js"];if(!window.__ready)document.write(unescape('%3Cscript src="'+path+'"%3E%3C/script%3E'))}};window.include.js_path='/public/js/';
18 </script> <link rel="icon" type="image/x-icon" href="/favicon_dev.ico"/>
19 </head><body class="unknown unknown_unknown"><script type="text/javascript"> include( 'lib/jquery' );
20 include( 'misc/main' );
21 </script><div class="js_include" data-mode="engine">misc/class</div>
22 <div class="js_include">
23 <div class="js_name">lib/jquery_pnotify,
24 lib/moment,
25 lib/lodash,
26 lib/selectordie,
27 lib/jquery_datetimepicker,
28 misc/notification,
29 site/engine,
30 misc/social</div>
31 <div class="js_callback">if( $.browser.msie && $.browser.version <= 8 ) include('lib/respond');
32 $._social.__cfg = {"init":[{"service":"basic"},{"fb_app_id":"1054275477940183","service":"fb"},{"vk_app_id":"5068049","service":"vk"},{"service":"twi"}],"like":[{"service":"fb"},{"service":"vk"},{"via":"","channel":"","hash_tag":"","service":"twi"}]};
33 window._SiteEngine = new classes.SiteEngine(
34 {
35 user_id: 0,
36 controller: 'content_article',
37 action: 'view',
38 content_css_version: '1449408882',
39 social_enabled: 1} );</div>
40 </div><script>
41 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
42 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
43 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
44 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
45
46 ga('create', 'UA-57006364-2', 'auto');
47 ga('send', 'pageview');
48
49 </script>
50 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
51 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
52 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
53 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
54 })(window,document,'script','dataLayer','GTM-TPQWG6Z');</script> <div id="body">
55 <header>
56 <div class="sh_line">
57 <div class="site_center">
58 <div class="sh_curr">
Generated PHP
0 <?php $pjade_fn = array(); ?><?php $pjade_fn["site_search"]=function()use(&$pjade_fn){ ?>
1 <div id="site_search">
2 <input type="text" name="search" placeholder="<?php echo htmlspecialchars(___('msg.search')); ?>"/>
3 <div class="ss_submit" title="<?php echo htmlspecialchars(___('action.search')); ?>"></div>
4 </div>
5 <?php } ?>
6 <?php $pjade_fn["button"]=function($mixin_data=array())use(&$pjade_fn){$pjade_data=array_merge(array('class'=>'','data'=>'','title'=>'','name'=>'','id'=>'','type'=>'button','action'=>'','disabled'=>htmlspecialchars(false),'file'=>'','hint'=>''),$mixin_data);extract($pjade_data);unSet($pjade_data); ?>
7 <?php $title = $title ?: ___('action.submit') ?><div <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('tmp_button')); $__pjade_attr['id'][]=htmlspecialchars($id); ?><?php if( $file ): ?><?php $__pjade_attr['class'][]=htmlspecialchars(trim('tmp_file')); ?><?php endif; ?><?php ?><?php if( $disabled ): ?><?php $__pjade_attr['class'][]=htmlspecialchars(trim('tmp_disabled')); ?><?php endif; ?><?php ?><?php if( $class ): ?><?php $__pjade_attr['class'][]=htmlspecialchars($class); ?><?php endif; ?><?php ?><?php if( $action ): ?><?php $__pjade_attr['data-action']=array(htmlspecialchars($action)); ?><?php endif; ?><?php ?><?php if( $hint ): ?><?php $__pjade_attr['title']=array(htmlspecialchars($hint)); ?><?php endif; ?><?php ?><?php if( $data ): ?><?php $__pjade_attr['data-data']=array(htmlspecialchars($data)); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>> <div class="tmp_right">
8 <div class="tmp_center">
9 <div class="tmp_label"><?php echo htmlspecialchars($title); ?></div>
10 <button <?php $__pjade_attr = array(); $__pjade_attr['type'][]=htmlspecialchars($type); ?><?php if( $name && ! $file ): ?><?php $__pjade_attr['name']=array(htmlspecialchars($name)); ?><?php endif; ?><?php ?><?php if( $disabled ): ?><?php $__pjade_attr['disabled']=array(htmlspecialchars(trim('disabled'))); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>></button>
11 </div>
12 </div><?php if( $file ): ?> <input type="file" name="<?php echo htmlspecialchars($name); ?>"/>
13 <?php endif; ?></div>
14 <?php } ?>
15 <?php $pjade_fn["input"]=function($mixin_data=array())use(&$pjade_fn){$pjade_data=array_merge(array('class'=>'','title'=>'','name'=>'','id'=>'','type'=>'text','autocomplete'=>htmlspecialchars(false),'value'=>'','tabindex'=>''),$mixin_data);extract($pjade_data);unSet($pjade_data); ?>
16 <div <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('tmp_input')); ?><?php if( $class ): ?><?php $__pjade_attr['class'][]=htmlspecialchars($class); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>> <div class="tmp_wrapper">
17 <input <?php $__pjade_attr = array(); $__pjade_attr['type'][]=htmlspecialchars($type); $__pjade_attr['name'][]=htmlspecialchars($name); $__pjade_attr['placeholder'][]=htmlspecialchars($title); $__pjade_attr['value'][]=htmlspecialchars($value); ?><?php if( $tabindex ): ?><?php $__pjade_attr['tabindex']=array(htmlspecialchars($tabindex)); ?><?php endif; ?><?php ?><?php if( $autocomplete ): ?><?php $__pjade_attr['autocomplete']=array(htmlspecialchars(trim('true'))); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>/>
18 </div>
19 </div>
20 <?php } ?>
21 <?php $pjade_fn["textarea"]=function($mixin_data=array())use(&$pjade_fn){$pjade_data=array_merge(array('class'=>'','title'=>'','name'=>'','id'=>'','autocomplete'=>htmlspecialchars(false),'value'=>''),$mixin_data);extract($pjade_data);unSet($pjade_data); ?>
22 <div <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('tmp_textarea')); ?><?php if( $class ): ?><?php $__pjade_attr['class'][]=htmlspecialchars($class); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>> <div class="tmp_wrapper">
23 <textarea <?php $__pjade_attr = array(); $__pjade_attr['name'][]=htmlspecialchars($name); $__pjade_attr['placeholder'][]=htmlspecialchars($title); $__pjade_attr['value'][]=htmlspecialchars($value); ?><?php if( $autocomplete ): ?><?php $__pjade_attr['autocomplete']=array(htmlspecialchars(trim('true'))); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>></textarea>
24 </div>
25 </div>
26 <?php } ?>
27 <?php $pjade_fn["check_box"]=function($mixin_data=array())use(&$pjade_fn){$pjade_data=array_merge(array('checked'=>'','class'=>'','title'=>'','name'=>'','id'=>'','value'=>''),$mixin_data);extract($pjade_data);unSet($pjade_data); ?>
28 <label <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('tmp_checkbox')); $__pjade_attr['id'][]=htmlspecialchars($id); ?><?php if( $class ): ?><?php $__pjade_attr['class'][]=htmlspecialchars($class); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>> <input <?php $__pjade_attr = array(); $__pjade_attr['type'][]=htmlspecialchars(trim('checkbox')); $__pjade_attr['name'][]=htmlspecialchars($name); $__pjade_attr['value'][]=htmlspecialchars(trim('true')); ?><?php if( $value ): ?><?php $__pjade_attr['checked']=array(htmlspecialchars(trim('checked'))); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>/>
29 <span class="tmp_title"><?php echo htmlspecialchars($title); ?></span>
30 </label>
31 <?php } ?>
32 <?php $pjade_fn["check_box_v2"]=function($mixin_data=array())use(&$pjade_fn){$pjade_data=array_merge(array('checked'=>'','class'=>'','name'=>'','title'=>'','id'=>'','value'=>''),$mixin_data);extract($pjade_data);unSet($pjade_data); ?>
33 <div class="tmp_checkbox tmp_checkbox_v2 <?php echo htmlspecialchars($class); ?>" <?php if($__attr=htmlspecialchars($id))echo 'id="'.$__attr.'"';?>><?php $cb_id = 'tmp_cb_v2_'.uniqid(); ?> <input <?php $__pjade_attr = array(); $__pjade_attr['type'][]=htmlspecialchars(trim('checkbox')); $__pjade_attr['name'][]=htmlspecialchars($name); $__pjade_attr['value'][]=htmlspecialchars(trim('true')); $__pjade_attr['id'][]=htmlspecialchars($cb_id); ?><?php if( $value ): ?><?php $__pjade_attr['checked']=array(htmlspecialchars(trim('checked'))); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>/>
34 <label for="<?php echo htmlspecialchars($cb_id); ?>"><?php echo htmlspecialchars($title); ?></label>
35 </div>
36 <?php } ?>
37 <?php $pjade_fn["select"]=function($mixin_data=array())use(&$pjade_fn){$pjade_data=array_merge(array('name'=>'','class'=>'','id'=>'','content'=>''),$mixin_data);extract($pjade_data);unSet($pjade_data); ?>
38 <div <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('tmp_select')); $__pjade_attr['id'][]=htmlspecialchars($id); ?><?php if( $class ): ?><?php $__pjade_attr['class'][]=htmlspecialchars($class); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>> <select name="<?php echo htmlspecialchars($name); ?>"><?php if( $content ): ?><?php echo $content; ?><?php endif; ?></select>
39 </div>
40 <?php } ?>
41 <?php $pjade_fn["radio_button"]=function($mixin_data=array())use(&$pjade_fn){$pjade_data=array_merge(array('checked'=>'','class'=>'','title'=>'','name'=>'','id'=>'','value'=>''),$mixin_data);extract($pjade_data);unSet($pjade_data); ?>
42 <?php $cb_id = 'tmp_rb_'.uniqid() ?><div class="tmp_radio <?php echo htmlspecialchars($class); ?>" <?php if($__attr=htmlspecialchars($id))echo 'id="'.$__attr.'"';?>>
43 <input <?php $__pjade_attr = array(); $__pjade_attr['id'][]=htmlspecialchars($cb_id); $__pjade_attr['type'][]=htmlspecialchars(trim('radio')); $__pjade_attr['name'][]=htmlspecialchars($name); $__pjade_attr['value'][]=htmlspecialchars($value); ?><?php if( $checked ): ?><?php $__pjade_attr['checked']=array(htmlspecialchars(trim('checked'))); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>/>
44 <label for="<?php echo htmlspecialchars($cb_id); ?>"><?php echo $title; ?></label>
45 </div>
46 <?php } ?>
47 <?php $pjade_fn["info_panel_prop"]=function($mixin_data=array())use(&$pjade_fn){$pjade_data=array_merge(array('label'=>'','value'=>''),$mixin_data);extract($pjade_data);unSet($pjade_data); ?>
48 <div class="af_prop">
49 <div class="if_label"><?php echo htmlspecialchars($label.':'); ?></div>
50 <div class="if_value"><?php echo $value; ?></div>
51 </div>
52 <?php } ?>
53 <?php $pjade_fn["layout"]=function($mixin_data=array())use(&$pjade_fn){$pjade_data=array_merge(array('id'=>'','title'=>'','content'=>'','class'=>''),$mixin_data);extract($pjade_data);unSet($pjade_data); ?>
54 <div <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('tmp_layout')); $__pjade_attr['style'][]=htmlspecialchars(trim('display: none')); ?><?php if( $id ): ?><?php $__pjade_attr['data-id']=array(htmlspecialchars($id)); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>> <div class="tl_dark_screen"></div>
55 <div class="tl_form <?php echo htmlspecialchars($class); ?>" id="<?php echo htmlspecialchars($id); ?>">
56 <div class="tl_close" title="<?php echo htmlspecialchars(___('action.close')); ?>"></div><?php if( $title ): ?> <div class="tl_title"><?php echo $title; ?></div>
57 <?php endif; ?> <div class="tl_content"><?php echo $content; ?></div>
58 </div>
59 </div>
60 <?php } ?>
61 <?php $pjade_fn["layout_form"]=function($mixin_data=array())use(&$pjade_fn){$pjade_data=array_merge(array('id'=>'','title'=>'','content'=>'','class'=>'','action'=>'#','method'=>'POST','file'=>htmlspecialchars(false)),$mixin_data);extract($pjade_data);unSet($pjade_data); ?>
62 <div <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('tmp_layout')); $__pjade_attr['style'][]=htmlspecialchars(trim('display: none')); ?><?php if( $id ): ?><?php $__pjade_attr['data-id']=array(htmlspecialchars($id)); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>> <div class="tl_dark_screen"></div>
63 <form <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('tl_form')); $__pjade_attr['class'][]=htmlspecialchars($class); $__pjade_attr['id'][]=htmlspecialchars($id); $__pjade_attr['action'][]=htmlspecialchars($action); $__pjade_attr['method'][]=htmlspecialchars($method); ?><?php if( $file ): ?><?php $__pjade_attr['enctype']=array(htmlspecialchars(trim('multipart/form-data'))); ?><?php $__pjade_attr['target']=array(htmlspecialchars(trim(htmlspecialchars( $id ).'_iframe'))); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>><?php if( $file ): ?> <iframe style="display: none" name="<?php echo htmlspecialchars($id.'_iframe'); ?>" id="<?php echo htmlspecialchars($id.'_iframe'); ?>"></iframe>
64 <?php endif; ?> <div class="tl_close" title="<?php echo htmlspecialchars(___('action.close')); ?>"></div>
65 <div class="tl_title"><?php echo $title; ?></div>
66 <div class="tl_content"><?php echo $content; ?></div>
67 </form>
68 </div>
69 <?php } ?>
70 <?php $pjade_fn["pagination_simple"]=function($pag, $url, $query = 'page')use(&$pjade_fn){ ?>
71 <?php $btns = Controller_Common::prepare_pagination( $pag, $url, $query ) ?><?php if( !($btns) ): ?><?php return; ?><?php endif; ?><div class="site_pagination"><?php foreach( $btns as $b ): ?><?php if( $b['active'] ): ?> <span class="sp_btn sp_active"><?php echo htmlspecialchars($b['text']); ?></span>
72 <?php else: ?> <a <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('sp_btn')); $__pjade_attr['href'][]=htmlspecialchars($b['href']); $__pjade_attr['data-page'][]=htmlspecialchars($b['page']); ?><?php if( $b['cls'] ): ?><?php $__pjade_attr['class'][]=htmlspecialchars($b['cls']); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>><?php if( $b['text'] ): ?><?php echo htmlspecialchars($b['text']); ?><?php endif; ?></a>
73 <?php endif; ?><?php endforeach; ?></div>
74 <?php } ?>
75 <?php $pjade_fn["block_region"]=function($mixin_data=array())use(&$pjade_fn){$pjade_data=array_merge(array('block'=>''),$mixin_data);extract($pjade_data);unSet($pjade_data); ?>
76 <?php foreach( $block as $index => $item ): ?><?php $count = count( $block ); ?><div <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('site_block')); $__pjade_attr['id'][]=htmlspecialchars('block_'.$item['name']); ?><?php if( $index < 2 ): ?><?php $__pjade_attr['class'][]=htmlspecialchars(trim('item_first')); ?><?php endif; ?><?php ?><?php if( $index == $count - 1 ): ?><?php $__pjade_attr['class'][]=htmlspecialchars(trim('item_last')); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>><?php if( !(empty( $item['title'] )) ): ?><?php if( !(empty( $item['link'] )) ): ?> <h3 class="sb_title">
77 <a href="<?php echo htmlspecialchars($item['link']); ?>"><?php echo htmlspecialchars($item['title']); ?></a>
78 </h3>
79 <?php else: ?> <h3 class="sb_title"><?php echo htmlspecialchars($item['title']); ?></h3>
80 <?php endif; ?><?php endif; ?> <div class="sb_content"><?php echo $item['html']; ?></div>
81 </div>
82 <?php endforeach; ?><?php } ?>
83 <?php $pjade_fn["page_path"]=function($page_path)use(&$pjade_fn){ ?>
84 <?php if( count( $page_path ) >= 1 ): ?><div id="page_path">
85 <div class="pp_wrapper"><?php foreach( $page_path as $index => $path_item ): ?> <div class="page_path_item" itemscope="<?php echo htmlspecialchars(''); ?>" itemtype="<?php echo htmlspecialchars('http://data-vocabulary.org/Breadcrumb'); ?>"><?php if( !empty( $path_item['link'] ) ): ?> <a class="path_item_title" href="<?php echo htmlspecialchars($path_item['link']); ?>" itemprop="<?php echo htmlspecialchars('url'); ?>">
86 <span itemprop="<?php echo htmlspecialchars('title'); ?>"><?php echo htmlspecialchars($path_item['title']); ?></span>
87 </a>
88 <?php else: ?> <span class="path_item_title"><?php echo htmlspecialchars($path_item['title']); ?></span>
89 <?php endif; ?></div>
90 <?php endforeach; ?></div>
91 </div>
92 <?php endif; ?><?php } ?>
93 <?php $pjade_fn["page_css"]=function($css, $version, $datauri)use(&$pjade_fn){ ?>
94 <style> .js_include { display: none; }
95 </style><?php if( $datauri ): ?><script type="text/javascript"> window.__datauri = [];
96 </script><?php foreach( $datauri as $file ): ?><link media="screen" rel="stylesheet" type="text/css" href="<?php echo htmlspecialchars($file['before']); ?>"/><?php if( !(empty( $file['after'] )) ): ?><noscript>
97 <link media="screen" rel="stylesheet" type="text/css" href="<?php echo htmlspecialchars($file['after']); ?>"/>
98 </noscript><script type="text/javascript"> window.__datauri.push( '<?php echo addslashes( $file['after'] ) ; ?>' )
99 </script><?php endif; ?><?php endforeach; ?><?php else: ?><?php foreach( $css as $style ): ?> <link media="screen" rel="stylesheet" type="text/css" href="<?php echo htmlspecialchars(URL::css( $style ).'?'.$version['css'][ $style.'.css' ]); ?>"/>
100 <?php endforeach; ?><?php endif; ?><?php } ?>
101 <?php $pjade_fn["menu"]=function($name)use(&$pjade_fn){ ?>
102 <?php if( $menu = Content::menu_get( $name ) ): ?><nav class="site_menu" id="<?php echo htmlspecialchars('site_'.$name.'_menu'); ?>"><?php foreach( $menu as $item ): ?><?php if( ! empty( $item['current'] ) ): ?> <span <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('sm_item')); $__pjade_attr['class'][]=htmlspecialchars(trim('sm_current')); ?><?php if( !(empty( $item['children'] )) ): ?><?php $__pjade_attr['data-id']=array(htmlspecialchars($item['id'])); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>><?php echo htmlspecialchars($item['title']); ?></span>
103 <?php else: ?> <a <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('sm_item')); $__pjade_attr['href'][]=htmlspecialchars($item['link']); ?><?php if( strpos( $item['link'], 'http' ) !== false ): ?><?php $__pjade_attr['target']=array(htmlspecialchars(trim('_blank'))); ?><?php endif; ?><?php ?><?php if( !(empty( $item['children'] )) ): ?><?php $__pjade_attr['data-id']=array(htmlspecialchars($item['id'])); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>><?php echo htmlspecialchars($item['title']); ?></a>
104 <?php endif; ?><?php endforeach; ?></nav>
105 <?php endif; ?><?php } ?>
106 <?php $pjade_fn["submenus"]=function($name)use(&$pjade_fn){ ?>
107 <?php if( $menu = Content::menu_get( $name ) ): ?><?php foreach( $menu as $m ): ?><?php if( ! empty( $m['children'] ) ): ?><nav class="site_submenu" data-owner="<?php echo htmlspecialchars($m['id']); ?>"><?php foreach( $m['children'] as $item ): ?><?php if( ! empty( $item['current'] ) ): ?> <span class="sm_item sm_current"><?php echo htmlspecialchars($item['title']); ?></span>
108 <?php else: ?> <a <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('sm_item')); $__pjade_attr['href'][]=htmlspecialchars($item['link']); ?><?php if( strpos( $item['link'], 'http' ) !== false ): ?><?php $__pjade_attr['target']=array(htmlspecialchars(trim('_blank'))); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>><?php echo htmlspecialchars($item['title']); ?></a>
109 <?php endif; ?><?php endforeach; ?></nav>
110 <?php endif; ?><?php endforeach; ?><?php endif; ?><?php } ?>
111 <?php $pjade_fn["preview_block"]=function()use(&$pjade_fn){ ?>
112 <div id="preview_block" style="display: none;">
113 <div class="pb_dark"></div>
114 <div class="pb_big_btn pb_next" title="<?php echo htmlspecialchars(___('preview.next')); ?>">
115 <div class="pb_bg"></div>
116 <span>&gt;</span>
117 </div>
118 <div class="pb_big_btn pb_prev" title="<?php echo htmlspecialchars(___('preview.prev')); ?>">
119 <div class="pb_bg"></div>
120 <span>&lt;</span>
121 </div>
122 <div class="pb_window">
123 <div class="pb_content">
124 <div class="pb_image"></div>
125 </div>
126 <div class="pb_control">
127 <div class="pb_arrow pb_next" title="<?php echo htmlspecialchars(___('preview.next')); ?>"></div>
128 <div class="pb_stat">
129 <span class="pb_current">1</span><?php echo htmlspecialchars( ' / ' ); ?> <span class="pb_all">12</span>
130 </div>
131 <div class="pb_arrow pb_prev" title="<?php echo htmlspecialchars(___('preview.prev')); ?>"></div>
132 <a class="pb_link" href="#" target="_blank" title="<?php echo htmlspecialchars(___('action.download')); ?>"></a>
133 <div class="pb_title_block">
134 <div class="ptb_wrapper">
135 <span class="pb_title" style="display: none"></span>
136 </div>
137 </div>
138 </div>
139 </div>
140 </div>
141 <?php } ?>
142 <?php $pjade_fn["site_search"]=function()use(&$pjade_fn){ ?>
143 <div id="site_search">
144 <div class="ss_submit __loading_hidden" title="<?php echo htmlspecialchars(___('search.msg.submit_hint')); ?>"></div>
145 <input type="text" name="search" placeholder="<?php echo htmlspecialchars(___('search.msg.panel_ph')); ?>"/>
146 </div>
147 <?php } ?>
148 <?php $pjade_fn["social_html"]=function($social)use(&$pjade_fn){ ?>
149 <?php echo '<html';
150 foreach( $social['html'] as $key => $value )
151 echo ' '.$key.'="'.$value.'"';
152 echo ">\n";?><?php } ?>
153 <?php $pjade_fn["social_meta"]=function($social)use(&$pjade_fn){ ?>
154 <?php foreach( $social['meta'] as $tag => $meta_value ): ?><meta name="<?php echo htmlspecialchars($tag); ?>" content="<?php echo htmlspecialchars($meta_value); ?>"/>
155 <?php endforeach; ?><?php } ?>
156 <?php $pjade_fn["site_groups"]=function($groups)use(&$pjade_fn){ ?>
157 <?php if( !(empty( $groups )) ): ?><div class="site_social_groups">
158 <span class="ssg_desc"><?php echo htmlspecialchars(___('site.socIal_desc')); ?></span>
159 <span class="ssg_list"><?php foreach( $groups as $key => $group ): ?> <a class="ssg_item <?php echo htmlspecialchars('ssg_'.$key); ?>" href="<?php echo htmlspecialchars($group['link']); ?>" target="_blank" title="<?php echo htmlspecialchars($group['title']); ?>"></a>
160 <?php endforeach; ?></span>
161 </div>
162 <?php endif; ?><?php } ?>
163 <?php $pjade_fn["page_js"]=function($browser, $request, $version, $social)use(&$pjade_fn){ ?>
164 <script type="text/javascript"> include( 'lib/jquery' );
165 include( 'misc/main' );
166 </script><div class="js_include" data-mode="engine">misc/class</div>
167 <div class="js_include">
168 <div class="js_name">lib/jquery_pnotify,
169 lib/moment,
170 lib/lodash,
171 lib/selectordie,
172 lib/jquery_datetimepicker,
173 misc/notification,
174 site/engine,
175 misc/social</div>
176 <div class="js_callback">if( $.browser.msie && $.browser.version <= 8 ) include('lib/respond');
177 $._social.__cfg = <?php echo Client::json_encode( $social['page'] ) ; ?>;
178 window._SiteEngine = new classes.SiteEngine(
179 {
180 user_id: <?php echo (int)Kohana::$access->user_id ; ?>,
181 controller: '<?php echo $request['controller'] ; ?>',
182 action: '<?php echo $request['action'] ; ?>',
183 content_css_version: '<?php echo $version['css']['content.css'] ; ?>',
184 social_enabled: <?php echo htmlspecialchars( (int)$social['enabled'] ); ?>
185 } );</div>
186 </div><?php echo $pjade_fn["google_analytics"](); ?>
187 <?php echo $pjade_fn["yandex_metrica"](); ?>
188 <?php echo $pjade_fn["page_js_html5"]($browser); ?>
189 <?php } ?>
190 <?php $pjade_fn["page_js_html5"]=function($browser)use(&$pjade_fn){ ?>
191 <?php if( $browser['name'] === 'ie' && $browser['version'] < 9 ): ?><script type="text/javascript"> var a = ['section', 'article', 'nav', 'header', 'footer', 'aside'];
192 for (var i = 0, j = a.length; i < j; i++) { document.createElement(a[i]); }
193 </script><?php endif; ?><?php } ?>
194 <?php $pjade_fn["count_zero"]=function()use(&$pjade_fn){ ?>
195 <?php $id = Configurator::get('site.count_zero'); ?><?php if( $id ): ?><div class="site_zero_counter"> <script type="text/javascript"> var cz_user = <?php echo htmlspecialchars( $id ); ?>;
196 var cz_type = 1;
197 var cz_str = "&wd=" + screen.width;
198 cz_str += "&hg=" + screen.height + "&du=" + escape( document.URL );
199 cz_str += "&rf=" + escape( document.referrer ) + "&ce=" + navigator.cookieEnabled;
200 cz_str+="&"+Math.random();
201 cz_str = "<a href='http://zero.kz/?u=" + cz_user + "' target='_blank'>"+
202 "<img src='http://zero.kz/c.php?u=" + cz_user + "&diff=1&t=" + cz_type + cz_str + "'" +
203 " border='0px' width='88' height='31' alt='Zero.KZ' /><\/a>";
204 document.write( cz_str );
205 </script></div>
206 <?php endif; ?><?php } ?>
207 <?php $pjade_fn["google_analytics"]=function()use(&$pjade_fn){ ?>
208 <?php $ga_code = Configurator::get('site.ga'); ?><?php if( $ga_code && ! Kohana::$access->user_id() ): ?><?php echo $ga_code; ?><?php endif; ?><?php } ?>
209 <?php $pjade_fn["yandex_metrica"]=function()use(&$pjade_fn){ ?>
210 <?php $ym_code = Configurator::get('site.ym'); ?><?php if( $ym_code && ! Kohana::$access->user_id() ): ?><?php echo $ym_code; ?><?php endif; ?><?php } ?>
211 <?php $pjade_fn["include_js_basic"]=function($version)use(&$pjade_fn){ ?>
212 <script type="text/javascript"> window.included={};
213 window.__js_version=<?php echo json_encode( $version['js'] ) ; ?>;window.include=function(name,callback){if(!window.included[name]){window.included[name]=true;var path=window.include.js_path+name+".js?"+__js_version[name+".js"];if(!window.__ready)document.write(unescape('%3Cscript src="'+path+'"%3E%3C/script%3E'))}};window.include.js_path='<?php echo htmlspecialchars( URL::js() ); ?>';
214 </script><?php } ?>
215 <?php $pjade_fn["include_js_union"]=function($version, $unionjs)use(&$pjade_fn){ ?>
216 <script type="text/javascript"> +function()
217 {
218 var included = {};
219 var packages = <?php echo Client::json_encode( $unionjs ) ; ?>;
220 var head = document.getElementsByTagName('head')[0];
221 var version = <?php echo json_encode( $version['js'] ) ; ?>;
222 function load_js(src,callback){var script=document.createElement("script"),done=false;script.src=src;script.async=false;script.type="text/javascript";script.onreadystatechange=script.onload=function(){var state=script.readyState;if(!done&&(!state||/loaded|complete/.test(state))){done=true;callback()}};head.appendChild(script)}function include_js(js_name,callback){for(var pack_name in packages)if(packages.hasOwnProperty(pack_name)){var pack=packages[pack_name];if(!pack[js_name+".js"])continue;if(!pack.__loaded){pack.name=pack_name;var src=site_url+"public/unionjs/"+pack_name+"-union.js"+"?"+version[pack_name+"-union.js"];load_js(src,function(){pack.__loaded=true;include_js(js_name,callback)});return}setTimeout(function(){var un_pack=__union_js[pack.name];if(!un_pack&&window.console)console.error("can't load ["+pack.name+"] packet");if(!un_pack._active[js_name+".js"]){un_pack._active[js_name+".js"]=1;un_pack[js_name+".js"]()}callback()},1);return}}var fn_cache=[],process=false;function next_fn(){if(fn_cache.length)fn_cache.shift()()}window.include=function(list,callback){if(process){fn_cache.push(function(){window.include(list,callback)});return}process=true;if(!(list instanceof Array))list=[list];var stack=list.length,ind=-1;var fn=function(){var item=list[++ind];include_js(item,function(){if(--stack<1)setTimeout(function(){if(callback)callback();process=false;next_fn()},1);else fn()})};fn()};
223 }();
224 </script><?php } ?>
225 <?php $pjade_fn["include_js"]=function($version, $unionjs)use(&$pjade_fn){ ?>
226 <script type="text/javascript"> window.site_url=location.protocol+'//'+location.host+'<?php echo URL::base() ; ?>';window.classes={msg:{}};
227 </script><?php if( $unionjs ): ?><?php echo $pjade_fn["include_js_union"]($version, $unionjs); ?>
228 <?php else: ?><?php echo $pjade_fn["include_js_basic"]($version); ?>
229 <?php endif; ?><?php } ?>
230 <!DOCTYPE html>
231 <?php echo $pjade_fn["social_html"]($social); ?>
232 <head>
233 <meta charset="utf-8"/>
234 <title><?php echo htmlspecialchars($page_title); ?></title><?php echo $pjade_fn["social_meta"]($social); ?>
235 <?php foreach( $meta as $tag => $meta_value ): ?><?php $meta_value = implode( ',', $meta_value ); ?><?php if( $meta_value ): ?> <meta name="<?php echo htmlspecialchars($tag); ?>" content="<?php echo htmlspecialchars($meta_value); ?>"/>
236 <?php endif; ?><?php endforeach; ?><?php if( !(empty( $noindex )) ): ?> <meta name="robots" content="noindex"/>
237 <?php endif; ?><?php echo $pjade_fn["page_css"]($css, $version, $datauri); ?>
238 <?php foreach( $rss as $rss_link => $rss_title ): ?> <link rel="alternate" type="application/rss+xml" title="<?php echo htmlspecialchars($rss_title); ?>" href="<?php echo htmlspecialchars($rss_link); ?>"/>
239 <?php endforeach; ?><?php echo $pjade_fn["include_js"]($version, $unionjs); ?>
240 <?php if( Kohana::$DEV ): ?> <link rel="icon" type="<?php echo htmlspecialchars('image/x-icon'); ?>" href="<?php echo htmlspecialchars(URL::site('favicon_dev.ico')); ?>"/>
241 <?php endif; ?></head><body class="<?php echo htmlspecialchars($browser['name'].' '.$browser['label']); ?>"><?php echo $pjade_fn["page_js"]($browser, $request, $version, $social); ?>
242 <div id="body">
243 <header>
244 <div class="sh_line">
245 <div class="site_center">
246 <div class="sh_curr"><?php foreach( Controller_Common::exchanges() as $k => $v ): ?> <span class="sh_curr_item"><?php echo '1&nbsp;'.$k.'&nbsp;=&nbsp;'.$v; ?></span>
247 <?php endforeach; ?></div>
248 <div class="sh_search show" id="site_search">
249 <input type="text" name="search" placeholder="<?php echo htmlspecialchars(___('search.msg.panel_ph')); ?>"/>
250 <div class="ss_submit" title="<?php echo htmlspecialchars(___('action.search')); ?>"><?php echo '&nbsp;'; ?></div>
251 </div>
252 <div class="sh_tel"><?php echo Controller_Common::get_tel(); ?></div>
253 </div>
254 </div>
255 <div class="sh_menu_row">
256 <div class="site_center"><?php if( $request['controller'] !== 'homepage' ): ?> <a class="site_logo" href="<?php echo htmlspecialchars(URL::site('/')); ?>" title="<?php echo htmlspecialchars($site['title']); ?>"></a>
257 <?php else: ?> <h2 class="site_logo" title="<?php echo htmlspecialchars($site['title']); ?>"></h2>
258 <?php endif; ?> <div class="smr_right">
259 <div class="site_slogan"><?php echo htmlspecialchars($site['slogan']); ?></div><?php echo $pjade_fn["menu"]('main'); ?>
260 <?php echo $pjade_fn["submenus"]('main'); ?>
261 </div>
262 </div>
263 </div>
264 </header>
265 <div <?php $__pjade_attr = array(); ?><?php if( !(empty( $special_design )) ): ?><?php $__pjade_attr['class'][]=htmlspecialchars(trim('site_special')); ?><?php ?><?php else: ?><?php $__pjade_attr['class'][]=htmlspecialchars(trim('site_center')); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>> <article <?php $__pjade_attr = array(); $__pjade_attr['id'][]=htmlspecialchars('c_'.$request['controller']); $__pjade_attr['class'][]=htmlspecialchars('a_'.$request['action']); ?><?php if( !(empty( $sidebar )) ): ?><?php $__pjade_attr['class'][]=htmlspecialchars(trim('sa_with_sidebar')); ?><?php endif; ?><?php ?><?php if( !(empty( $special_design )) ): ?><?php $__pjade_attr['class'][]=htmlspecialchars(trim('sa_special')); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>><?php if( empty( $ignore_page_title ) ): ?><?php if( empty( $hor_image ) ): ?> <div <?php $__pjade_attr = array(); $__pjade_attr['class'][]=htmlspecialchars(trim('page_title')); ?><?php if( ! empty( $date ) || ! empty( $page_path ) ): ?><?php $__pjade_attr['class'][]=htmlspecialchars(trim('pt_full')); ?><?php endif; ?><?php foreach($__pjade_attr as $__k => &$__v){ $__v = implode(' ',array_filter($__v, 'strlen'));if(!strlen($__v)){ unSet( $__pjade_attr[$__k]); continue; } $__v = htmlspecialchars($__k)."=\"".$__v."\"";} $__pjade_attr = array_filter($__pjade_attr, 'strlen'); echo implode( " ", $__pjade_attr ); ?>> <h1 class="pt_content site_red_title">
266 <span class="pt_wrap"><?php echo htmlspecialchars(! empty( $title ) ? $title : $page_title); ?></span>
267 </h1>
268 <div class="pt_desc"><?php if( !(empty( $date )) ): ?> <div class="pt_date"><?php echo htmlspecialchars(I18n_Date::format( $date, 'article' )); ?></div>
269 <?php endif; ?><?php if( ! empty( $page_path ) ): ?><?php array_pop( $page_path ) ?><?php echo $pjade_fn["page_path"]($page_path); ?>
270 <?php endif; ?></div>
271 </div>
272 <?php else: ?> <div class="page_title_imaged">
273 <div class="pti_image" style="background-image: url(<?php echo htmlspecialchars( URL::site( $hor_image ) ); ?>)"></div>
274 <h1 class="pt_content site_red_title">
275 <span class="pt_wrap"><?php echo htmlspecialchars(! empty( $title ) ? $title : $page_title); ?></span>
276 </h1>
277 <div class="pti_desc_block">
278 <div class="pti_slogan"><?php echo htmlspecialchars($page_slogan); ?></div>
279 <div class="pti_desc"><?php echo htmlspecialchars($page_desc); ?></div>
280 </div>
281 </div>
282 <?php endif; ?><?php endif; ?><?php if( !(empty( $sidebar )) ): ?> <aside class="site_sidebar"><?php echo $pjade_fn["block_region"](array('block'=>$block['sidebar'])); ?>
283 </aside>
284 <?php endif; ?> <div class="site_article_content"><?php if( empty( $error ) ): ?><?php echo $content; ?> <?php else: ?><?php foreach( $error as $err ): ?> <div class="site_error"><?php echo htmlspecialchars($err); ?></div>
285 <?php endforeach; ?> <?php endif; ?></div> </article>
286 </div>
287 <footer>
288 <div class="site_center">
289 <span class="sf_copyright"><?php echo $site['copyright']; ?></span><?php echo $pjade_fn["site_groups"]($social['groups']); ?>
290 <script> (function(w,d,u){var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/60000|0);var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})(window,document,'https://bitrix.kompastour.kz/upload/crm/site_button/loader_7_tqe7c1.js');
291 (function(w,d,u){var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/60000|0);var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})(window,document,'https://bitrix.kompastour.kz/upload/crm/site_button/loader_8_i6hhxq.js');
292 (function(w,d,u){var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/60000|0);var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})(window,document,'https://bitrix.kompastour.kz/upload/crm/site_button/loader_9_ixhuic.js');</script>
293 </div>
294 </footer>
295 </div><?php if( !(empty( $block['user'] )) ): ?><?php ob_start(); ?><div id="site_control"><?php echo $pjade_fn["block_region"](array('block'=>$block['user'])); ?>
296 </div>
297 <?php $__mixin_param['5ed9f1cf2d552'] = ob_get_contents(); ob_end_clean(); ?><?php echo $pjade_fn["layout"](array('id'=>'site_user_region','title'=>htmlspecialchars(___('access.block_title.control')),'content'=>$__mixin_param['5ed9f1cf2d552'])); ?>
298 <?php endif; ?> <div class="site_control_call" title="<?php echo htmlspecialchars(___('access.block_title.control')); ?>"></div><?php echo $pjade_fn["preview_block"](); ?>
299 <?php list($msec, $sec) = explode( chr( 32 ), microtime() ); ?> <!-- page generated <?php echo htmlspecialchars( round( $msec + $sec - PAGE_START_STAMP, 3 ) ); ?> sec --></body><?php echo '</html>'; ?>
Trace error
0 #0 /data/tour-kz/www/application/classes/kohana.php(100): Kohana_Core::error_handler(8, 'Undefined offse...', '/data/tour-kz/w...', 54)
1 #1 /data/tour-kz/www/application/classes/controller/common.php(54): Kohana::error_handler(8, 'Undefined offse...', '/data/tour-kz/w...', 54, Array)
2 #2 /data/tour-kz/www/modules/pjade/classes/pjade/core.php(30) : eval()'d code(247): Controller_Common::exchanges()
3 #3 /data/tour-kz/www/modules/pjade/classes/pjade/core.php(30): eval()
4 #4 /data/tour-kz/www/modules/pjade/classes/pjade/core.php(75): Pjade_Core->_eval('<?php $pjade_fn...')
5 #5 /data/tour-kz/www/system/classes/kohana/view.php(228): Pjade_Core->render()
6 #6 /data/tour-kz/www/system/classes/kohana/response.php(160): Kohana_View->__toString()
7 #7 /data/tour-kz/www/application/classes/controller/core.php(293): Kohana_Response->body(Object(Pjade))
8 #8 [internal function]: Controller_Core->after()
9 #9 /data/tour-kz/www/application/classes/request/client/internal.php(176): ReflectionMethod->invoke(Object(Controller_Content_Article))
10 #10 /data/tour-kz/www/application/classes/request/client/internal.php(65): Request_Client_Internal->_execute_request(Object(Request))
11 #11 /data/tour-kz/www/application/classes/request/client/internal.php(60): Request_Client_Internal->_execute(Object(Request))
12 #12 /data/tour-kz/www/application/classes/request/client/internal.php(16): Request_Client_Internal->_execute(Object(Request))
13 #13 /data/tour-kz/www/system/classes/kohana/request/client.php(64): Request_Client_Internal->execute_request(Object(Request))
14 #14 /data/tour-kz/www/system/classes/kohana/request.php(1138): Kohana_Request_Client->execute(Object(Request))
15 #15 /data/tour-kz/www/index.php(50): Kohana_Request->execute()
16 #16 {main}