示例#1
0
文件: home.php 项目: Kmartynov/cms
]]></title>
			<link><?php 
        echo getinfo('siteurl') . 'page/' . mso_slug($page_slug);
        ?>
</link>
			<guid><?php 
        echo getinfo('siteurl') . 'page/' . mso_slug($page_slug);
        ?>
</guid>
			<pubDate><?php 
        echo date('D, d M Y H:i:s ' . $time_zone, strtotime(mso_date_convert('Y-m-d H:i:s', $page_date_publish)));
        ?>
</pubDate>
			<?php 
        echo mso_page_cat_link($page_categories, ", ", '<category><![CDATA[', ']]></category>' . "\n", false, 'category', false);
        ?>
			<description><![CDATA[<?php 
        echo mso_page_content($page_content) . mso_page_comments_link($page_comment_allow, $page_slug, ' ' . tf('Обсудить'), '', '', false);
        ?>
]]></description>
		</item>
		<?php 
    }
    ?>
	</channel>
</rss>
<?php 
}
// if ($pages)
mso_add_cache($cache_key, ob_get_flush());
// сразу и в кэш добавим - время 10 минут 60 сек * 10 минут *
示例#2
0
             mso_page_tag_link($page_tags, ' | ', '<br><span>' . tf('Метки') . ':</span> ', '');
             mso_page_view_count($page_view_count, '<br><span>' . tf('Просмотров') . ':</span> ', '');
             mso_page_meta('nastr', $page_meta, '<br><span>' . tf('Настроение') . ':</span> ', '');
             mso_page_meta('music', $page_meta, '<br><span>' . tf('В колонках звучит') . ':</span> ', '');
             if ($page_comment_allow) {
                 mso_page_feed($page_slug, tf('комментарии по RSS'), '<br><span>' . tf('Подписаться на') . '</span> ', '', true);
             }
             mso_page_edit_link($page_id, tf('Edit page'), '<br>[', ']');
             echo '</div>';
         }
         if ($f = mso_page_foreach('page-content-author')) {
             require $f;
             // подключаем кастомный вывод
         } else {
             echo '<div class="page_content type_' . getinfo('type') . '">';
             mso_page_content($page_content);
             if ($f = mso_page_foreach('info-bottom')) {
                 require $f;
             }
             // подключаем кастомный вывод
             mso_page_content_end();
             echo '<div class="break"></div>';
             mso_page_comments_link(array('page_comment_allow' => $page_comment_allow, 'page_slug' => $page_slug, 'title' => tf('Обсудить') . ' (' . $page_count_comments . ')', 'title_no_link' => tf('Читать комментарии') . ' (' . $page_count_comments . ')', 'do' => '<div class="comments-link"><span>', 'posle' => '</span></div>', 'page_count_comments' => $page_count_comments));
             echo '</div>';
         }
         echo NR . '</div></div><!--div class="page_only"-->' . NR;
     }
 }
 if (!$full_posts) {
     echo '</ul>';
 }
示例#3
0
 function get_content()
 {
     ob_start();
     mso_page_content($this->val('page_content'));
     $page_content = ob_get_contents();
     ob_end_clean();
     return $page_content;
 }