当前位置: 首页>>代码示例>>PHP>>正文


PHP seo::show_all_posts方法代码示例

本文整理汇总了PHP中seo::show_all_posts方法的典型用法代码示例。如果您正苦于以下问题:PHP seo::show_all_posts方法的具体用法?PHP seo::show_all_posts怎么用?PHP seo::show_all_posts使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在seo的用法示例。


在下文中一共展示了seo::show_all_posts方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: seo

$back_names[] = "cl_call5";
$back_names[] = "cl_call6";
$back_names[] = "cl_call7";
$seo = new seo();
$seo->mysqli = $this->mysqli;
$seo->request = $this->request;
$seo->user = $this->user;
$js_include[] = "js/seo.js";
$post_id = (int) $this->request['id'];
$string_out .= "\n<div id='action_buttons' class='divactionbuttons'>\n        <button onclick=\"document.location.href ='seo&sect=new_post'\" ><img class='menu_img' src='/img/site/document_add.png'>Новый пост</button>\n        <button onclick=\"document.location.href ='seo&sect=all_posts'\" ><img class='menu_img' src='/img/site/document-library.png'>Все посты</button>\n        <button onclick=\"document.location.href ='seo&sect=tag_editor'\" ><img class='menu_img' src='/img/site/lightbulb.png'>Редактор Тегов</button>\n        <button onclick=\"document.location.href ='seo&sect=seo_statistics'\" ><img class='menu_img' src='/img/site/statistics.png'>Статистика</button>\n</div>";
if ($this->request['sect'] == 'new_post') {
    $js_include[] = "js/tinymce/tinymce.min.js";
    $js_onload = 'init_mce();';
    $out = $seo->edit_post_form();
}
if ($this->request['sect'] == 'all_posts' or !isset($this->request['sect'])) {
    $out = $seo->show_all_posts();
}
if ($this->request['sect'] == 'edit_post' & (int) $this->request['id'] > 0) {
    $out = $seo->edit_post_form($post_id);
    $out .= $seo->edit_post_tag_form($post_id);
    $js_include[] = "js/tinymce/tinymce.min.js";
    $js_onload = 'init_mce();';
}
if ($this->request['sect'] == 'tag_editor') {
    $out = $seo->tag_editor();
}
if ($this->request['sect'] == 'seo_statistics') {
    $out = $seo->seo_statistics();
}
$string_out .= "\n    <input type='hidden' id='main_ds' value='main_div' >\n<div class='bigblock id='bigblock'>\n<div class='bigblockcontent' id='bigblockcontent'>\n<div id='main_div'>\n" . $out . "\n</div>\n</div>\n</div>";
开发者ID:ut8ia,项目名称:proBase,代码行数:31,代码来源:seo.php


注:本文中的seo::show_all_posts方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。