Exemple #1
0
     require $f;
 } else {
     if ($f = mso_page_foreach('page-content-' . getinfo('type'))) {
         require $f;
     } else {
         $p->div_start('mso-page-content mso-type-' . getinfo('type') . '-content');
         if ($f = mso_page_foreach('content')) {
             require $f;
         } else {
             // если show_thumb_type_ТИП вернул false, то картинку не ставим
             // show_thumb - если нужно отключить для всех типов
             if (mso_get_val('show_thumb', true) and mso_get_val('show_thumb_type_' . getinfo('type'), true)) {
                 // вывод миниатюры перед записью
                 if ($image_for_page = thumb_generate($p->meta_val('image_for_page'), mso_get_option('image_for_page_width', 'templates', 280), mso_get_option('image_for_page_height', 'templates', 210))) {
                     if (mso_get_option('image_for_page_link', 'templates', 1)) {
                         echo $p->page_url(true) . $p->img($image_for_page, mso_get_option('image_for_page_css_class', 'templates', 'image_for_page'), '', $p->val('page_title')) . '</a>';
                     } else {
                         echo $p->img($image_for_page, mso_get_option('image_for_page_css_class', 'templates', 'image_for_page'), '', $p->val('page_title'));
                     }
                 }
             }
             $p->content('', '');
             // $p->clearfix();
         }
         // для page возможен свой info-bottom
         if ($f = mso_page_foreach('info-bottom-' . getinfo('type'))) {
             require $f;
         } elseif ($f = mso_page_foreach('info-bottom')) {
             require $f;
         }
         $p->html('<aside>');