當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。