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


PHP seo::getTitle方法代码示例

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


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

示例1: array

            $smarty->assignByRef('uData', $uData);
            // инициируем "Наименование страницы" отображаемое в заголовке формы
            $arrNamePage = array(array('name' => MENU_COMPANIES, 'link' => chpu::createChpuUrl(CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=companies')), array('name' => $uData['company_name'], 'link' => false));
            $strWhere = "id_user IN (" . secure::escQuoteData($_GET['id']) . ") AND token IN ('active')";
            $arrOrderBy = array('act_datetime' => 'DESC');
            $smarty->assign('vacancys', $vacancy->getAnnounces($strWhere, false, $arrOrderBy));
            $smarty->assign('link', chpu::createChpuUrl(CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=vacancy&action=view&id='));
        } else {
            //$arrErrors[] = ERROR_SELECTED_COMPANY;
            messages::error404();
        }
    }
} else {
    // Формируем TITLE страницы
    $arrTitle = array();
    $seo = seo::getTitle('companies', $currLang);
    $arrTitle[] = array('name' => !empty($seo) ? $seo : MENU_COMPANIES);
    // СЕО данные
    $smarty->assign('meta_keywords', seo::getKeywords('companies', $currLang));
    $smarty->assign('meta_description', seo::getDescription('companies', $currLang));
    //смещение, всегда 0 (затем берется из $_GET)
    $offset = !empty($_GET['offset']) && is_numeric($_GET['offset']) && $_GET['offset'] > 0 ? $_GET['offset'] : 0;
    //смещение, всегда 0 (затем берется из $_GET)
    $path = CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=companies&action=offset&';
    //получаем массив, содержащий текущий обработанный URL
    $arrFields = array(array('conf_users', 'id'), array('conf_users', 'company_name'), array('conf_users', 'company_city'), array('conf_users', 'company_description'), array('conf_users', 'logo'));
    $strWhere = "conf_users.token IN ('active') AND conf_users.user_type IN ('company')";
    CONF_COMPANIES_SHOW_ONLY_WITH_LOGO ? $strWhere .= " AND conf_users.logo!=''" : null;
    $strLimit = $offset . ',' . CONF_COMPANIES_PERPAGE;
    $arrCompanies = $user->getCombinedUsersData($arrFields, $strWhere, false, $strLimit);
    $smarty->assignByRef('arrCompanies', $arrCompanies);
开发者ID:innova-market,项目名称:JobExpert,代码行数:31,代码来源:companies.php

示例2: IN

            $smarty->assign('meta_description', MENU_AGENCIES . ' - ' . $uData['company_name'] . '!');
            $strWhere = "id_user IN (" . secure::escQuoteData($_GET['id']) . ") AND token IN ('active')";
            $arrOrderBy = array('act_datetime' => 'DESC');
            $smarty->assign('vacancys', $vacancy->getAnnounces($strWhere, false, $arrOrderBy));
            $smarty->assign('link', chpu::createChpuUrl(CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=vacancy&action=view&id='));
            $smarty->assign('resumes', $resume->getAnnounces($strWhere, false, $arrOrderBy));
            $smarty->assign('rlink', chpu::createChpuUrl(CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=resume&action=view&id='));
        } else {
            //$arrErrors[] = ERROR_SELECTED_COMPANY;
            messages::error404();
        }
    }
} else {
    // Формируем TITLE страницы
    $arrTitle = array();
    $seo = seo::getTitle('agencies', $currLang);
    $arrTitle[] = array('name' => !empty($seo) ? $seo : MENU_AGENCIES);
    // СЕО данные
    $smarty->assign('meta_keywords', seo::getKeywords('agencies', $currLang));
    $smarty->assign('meta_description', seo::getDescription('agencies', $currLang));
    //смещение, всегда 0 (затем берется из $_GET)
    $offset = !empty($_GET['offset']) && is_numeric($_GET['offset']) && $_GET['offset'] > 0 ? $_GET['offset'] : 0;
    //смещение, всегда 0 (затем берется из $_GET)
    $path = CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type'] . '&do=agencies&action=offset&';
    //получаем массив, содержащий текущий обработанный URL
    $arrFields = array(array('conf_users', 'id'), array('conf_users', 'company_name'), array('conf_users', 'company_city'), array('conf_users', 'company_description'), array('conf_users', 'logo'));
    $strWhere = "conf_users.token IN ('active') AND conf_users.user_type IN ('agent')";
    CONF_AGENCIES_SHOW_ONLY_WITH_LOGO ? $strWhere .= " AND conf_users.logo!=''" : null;
    $strLimit = $offset . ',' . CONF_AGENCIES_PERPAGE;
    $arrCompanies = $user->getCombinedUsersData($arrFields, $strWhere, false, $strLimit);
    $smarty->assignByRef('arrCompanies', $arrCompanies);
开发者ID:innova-market,项目名称:JobExpert,代码行数:31,代码来源:agencies.php


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