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


PHP get_seosetting函数代码示例

本文整理汇总了PHP中get_seosetting函数的典型用法代码示例。如果您正苦于以下问题:PHP get_seosetting函数的具体用法?PHP get_seosetting怎么用?PHP get_seosetting使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: array

            exit;
        }
    }
    $curtype = array();
} else {
    $nav = get_groupnav($curtype);
    $groupnav = $nav['nav'];
    $_G['grouptypeid'] = $curtype['fid'];
    $perpage = 10;
    if ($curtype['forumcolumns'] > 1) {
        $curtype['forumcolwidth'] = floor(100 / $curtype['forumcolumns']) - 0.1 . '%';
        $perpage = $curtype['forumcolumns'] * 10;
    }
}
$seodata = array('first' => $nav['first']['name'], 'second' => $nav['second']['name']);
list($navtitle, $metadescription, $metakeywords) = get_seosetting('group', $seodata);
$_G['cache']['groupindex'] = '';
$data = $randgrouplist = $randgroupdata = $grouptop = $newgrouplist = array();
$topgrouplist = $_G['cache']['groupindex']['topgrouplist'];
$lastupdategroup = $_G['cache']['groupindex']['lastupdategroup'];
$todayposts = intval($_G['cache']['groupindex']['todayposts']);
$groupnum = intval($_G['cache']['groupindex']['groupnum']);
$cachetimeupdate = TIMESTAMP - intval($_G['cache']['groupindex']['updateline']);
if (empty($_G['cache']['groupindex']) || $cachetimeupdate > 3600 || empty($lastupdategroup)) {
    $data['randgroupdata'] = $randgroupdata = grouplist('lastupdate', array('ff.membernum', 'ff.icon'), 80);
    $data['topgrouplist'] = $topgrouplist = grouplist('activity', array('f.commoncredits', 'ff.membernum', 'ff.icon'), 10);
    $data['updateline'] = TIMESTAMP;
    $groupdata = C::t('forum_forum')->fetch_group_counter();
    $data['todayposts'] = $todayposts = $groupdata['todayposts'];
    $data['groupnum'] = $groupnum = $groupdata['groupnum'];
    foreach ($first as $id => $toptype) {
开发者ID:softhui,项目名称:discuz,代码行数:31,代码来源:group_index.php

示例2: get_groupimg

    $_G['forum']['icon'] = get_groupimg($_G['forum']['icon'], 'icon');
    $_G['grouptypeid'] = $_G['forum']['fup'];
    $_G['forum']['dateline'] = dgmdate($_G['forum']['dateline'], 'd');
    $nav = get_groupnav($_G['forum']);
    $groupnav = $nav['nav'];
    $onlinemember = grouponline($_G['fid']);
    $groupmanagers = $_G['forum']['moderators'];
    $groupcache = getgroupcache($_G['fid'], array('replies', 'views', 'digest', 'lastpost', 'ranking', 'activityuser', 'newuserlist'));
    $seotype = 'grouppage';
    $seodata['first'] = $nav['first']['name'];
    $seodata['second'] = $nav['second']['name'];
    $seodata['gdes'] = $_G['forum']['description'];
    $forumseoset = array();
}
$_G['forum']['banner'] = get_forumimg($_G['forum']['banner']);
list($navtitle, $metadescription, $metakeywords) = get_seosetting($seotype, $seodata, $forumseoset);
if (!$navtitle) {
    $navtitle = get_title_page($_G['forum']['name'], $_G['page']);
    $nobbname = false;
} else {
    $nobbname = true;
}
if (!empty($_G['gp_typeid']) && !empty($_G['forum']['threadtypes']['types'][$_G['gp_typeid']])) {
    $navtitle = strip_tags($_G['forum']['threadtypes']['types'][$_G['gp_typeid']]) . ' - ' . $navtitle;
}
if (!$metakeywords) {
    $metakeywords = $_G['forum']['name'];
}
if (!$metadescription) {
    $metadescription = $_G['forum']['name'];
}
开发者ID:kleitz,项目名称:sports,代码行数:31,代码来源:forum_forumdisplay.php

示例3: memory

        $key = !IS_ROBOT ? $_G['member']['groupid'] : 'for_robot';
        memory('set', 'forum_index_page_' . $key, array('catlist' => $catlist, 'forumlist' => $forumlist, 'sublist' => $sublist, 'whosonline' => $whosonline, 'onlinenum' => $onlinenum, 'membercount' => $membercount, 'guestcount' => $guestcount, 'grids' => $grids, 'announcements' => $announcements, 'threads' => $threads, 'posts' => $posts, 'todayposts' => $todayposts, 'onlineinfo' => $onlineinfo, 'announcepm' => $announcepm), getglobal('setting/memory/forumindex'));
    }
} else {
    require_once DISCUZ_ROOT . './source/include/misc/misc_category.php';
}
if (defined('IN_ARCHIVER')) {
    include loadarchiver('forum/discuz');
    exit;
}
categorycollapse();
if ($gid && !empty($catlist)) {
    $_G['category'] = $catlist[$gid];
    $forumseoset = array('seotitle' => $catlist[$gid]['seotitle'], 'seokeywords' => $catlist[$gid]['keywords'], 'seodescription' => $catlist[$gid]['seodescription']);
    $seodata = array('fgroup' => $catlist[$gid]['name']);
    list($navtitle, $metadescription, $metakeywords) = get_seosetting('threadlist', $seodata, $forumseoset);
    if (empty($navtitle)) {
        $navtitle = $navtitle_g;
        $nobbname = false;
    } else {
        $nobbname = true;
    }
    $_G['fid'] = $gid;
}
include template('diy:forum/discuz:' . $gid);
function get_index_announcements()
{
    global $_G;
    $announcements = '';
    if ($_G['cache']['announcements']) {
        $readapmids = !empty($_G['cookie']['readapmid']) ? explode('D', $_G['cookie']['readapmid']) : array();
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:31,代码来源:forum_index.php

示例4: max

        break;
    }
}
$page = max(1, intval($_GET['page']));
foreach ($cat['ups'] as $val) {
    $cats[] = $val['catname'];
}
$bodycss = array($cat['topid'] => 'pg_list_' . $cat['topid']);
if ($cat['upid']) {
    $bodycss[$cat['upid']] = 'pg_list_' . $cat['upid'];
}
$bodycss[$cat['catid']] = 'pg_list_' . $cat['catid'];
$cat['bodycss'] = implode(' ', $bodycss);
$catseoset = array('seotitle' => $cat['seotitle'], 'seokeywords' => $cat['keyword'], 'seodescription' => $cat['description']);
$seodata = array('firstcat' => $cats[0], 'secondcat' => $cats[1], 'curcat' => $cat['catname'], 'page' => intval($_GET['page']));
list($navtitle, $metadescription, $metakeywords) = get_seosetting('articlelist', $seodata, $catseoset);
if (!$navtitle) {
    $navtitle = helper_seo::get_title_page($cat['catname'], $_G['page']);
    $nobbname = false;
} else {
    $nobbname = true;
}
if (!$metakeywords) {
    $metakeywords = $cat['catname'];
}
if (!$metadescription) {
    $metadescription = $cat['catname'];
}
if (isset($_G['makehtml'])) {
    helper_makehtml::portal_list($cat);
}
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:31,代码来源:portal_list.php

示例5: showmessage

    if (empty($result['items'])) {
        showmessage('dzapp_haodai:param_wrong');
    }
    $articles = $result['items'];
    include template('dzapp_haodai:list');
} elseif ($action == 'calc') {
    $type = $_GET['type'];
    if (!in_array($type, array('chedai', 'debj', 'debx', 'esjys', 'fd', 'gjj', 'secondhand', 'zhdk'))) {
        showmessage('dzapp_haodai:param_wrong');
    }
    if (!@(include_once DISCUZ_ROOT . './data/sysdata/cache_dzapp_haodai_dkgl_' . $city . '.php' || TIMESTAMP - filemtime(DISCUZ_ROOT . './data/sysdata/cache_dzapp_haodai_dkgl_' . $city . '.php') > $var['refreshtime'])) {
        $dkgl_article = get_article_dkgl_list();
        writetocache('dzapp_haodai_dkgl_' . $city, getcachevars(array('dkgl_article' => $dkgl_article)));
    }
    $seodata = array('bbname' => $_G['setting']['bbname'], 'calc_type' => lang('plugin/dzapp_haodai', 'calc_' . $type));
    list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['calc']);
    if (defined('IN_MOBILE') && $type == 'fd') {
        $script_more = '
					var $btnss = $(\'.btn-b\');
                    var $tables = $btnss.siblings(\'.int_table\');
                    $btnss.click(
                            function() {
                            if ($tables.hasClass(\'hide-table\')) {
                            $tables.removeClass(\'hide-table\');
                                    $(this).html(\'' . lang('plugin/dzapp_haodai', 'hide-table') . '\');
                            } else
                            {
                            $tables.addClass(\'hide-table\');
                                    $(this).html(\'' . lang('plugin/dzapp_haodai', 'check-more') . '\');
                            }
                            });';
开发者ID:samyex6,项目名称:discuz3.2-lite,代码行数:31,代码来源:dzapp_haodai.inc.php

示例6: exit

<?php

/**
 *      [Discuz!] (C)2001-2099 Comsenz Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: portal_index.php 19235 2010-12-23 03:18:23Z liulanbo $
 */
if (!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
list($navtitle, $metadescription, $metakeywords) = get_seosetting('portal');
if (!$navtitle) {
    $navtitle = $_G['setting']['navs'][1]['navname'];
    $nobbname = false;
} else {
    $nobbname = true;
}
if (!$metakeywords) {
    $metakeywords = $_G['setting']['navs'][1]['navname'];
}
if (!$metadescription) {
    $metadescription = $_G['setting']['navs'][1]['navname'];
}
// -----为了取各版块24小时发贴数,占用首页首页打开时间的一半。---   by heavenK
$forums = C::t('forum_forum')->fetch_all_by_status(1);
foreach ($forums as $forum) {
    $forum_all[$forum['fid']] = $forum;
}
//  -----取出结束-----
include_once template('diy:portal/index');
开发者ID:Jaedeok-seol,项目名称:discuz_template,代码行数:31,代码来源:portal_index.php


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