本文整理汇总了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§=new_post'\" ><img class='menu_img' src='/img/site/document_add.png'>Новый пост</button>\n <button onclick=\"document.location.href ='seo§=all_posts'\" ><img class='menu_img' src='/img/site/document-library.png'>Все посты</button>\n <button onclick=\"document.location.href ='seo§=tag_editor'\" ><img class='menu_img' src='/img/site/lightbulb.png'>Редактор Тегов</button>\n <button onclick=\"document.location.href ='seo§=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>";