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


PHP oledrion_utils::createMetaKeywords方法代码示例

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


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

示例1: xoops_trim

                }
            }
        }
        // Notation produit *********************************************************************************
        if (oledrion_utils::getModuleOption('rateproducts') == 1) {
            $canRate = true;
            if ($currentUser != 0) {
                $canRate = !$h_oledrion_votedata->hasUserAlreadyVoted($currentUser, $product->getVar('product_id'));
            } else {
                $canRate = !$h_oledrion_votedata->hasAnonymousAlreadyVoted('', $product->getVar('product_id'));
            }
            $xoTheme->addScript("browse.php?Frameworks/jquery/jquery.js");
            oledrion_utils::callJavascriptFile('rateit.js');
            oledrion_utils::setCSS(OLEDRION_URL . 'assets/css/rateit.css');
            $xoopsTpl->assign('userCanRate', $canRate);
        }
        // Meta et CSS ************************************************************************************
        oledrion_utils::setCSS();
        oledrion_utils::setLocalCSS($xoopsConfig['language']);
        if (oledrion_utils::getModuleOption('manual_meta')) {
            $pageTitle = xoops_trim($product->getVar('product_metatitle')) == '' ? $title : $product->getVar('product_metatitle');
            $metaDescription = xoops_trim($product->getVar('product_metadescription')) != '' ? $product->getVar('product_metadescription') : $title;
            $metaKeywords = xoops_trim($product->getVar('product_metakeywords')) != '' ? $product->getVar('product_metakeywords') : oledrion_utils::createMetaKeywords($product->getVar('product_title') . ' ' . $product->getVar('product_summary') . ' ' . $product->getVar('product_description'));
            oledrion_utils::setMetas($pageTitle, $metaDescription, $metaKeywords);
        } else {
            oledrion_utils::setMetas($title, $title, oledrion_utils::createMetaKeywords($product->getVar('product_title') . ' ' . $product->getVar('product_summary') . ' ' . $product->getVar('product_description')));
        }
        require_once XOOPS_ROOT_PATH . '/include/comment_view.php';
        require_once XOOPS_ROOT_PATH . '/footer.php';
        break;
}
开发者ID:osw17,项目名称:oledrion,代码行数:31,代码来源:product.php

示例2: array_unique

        $tmp[] = $product->getVar('product_cid');
    }
    $tmp = array_unique($tmp);
    sort($tmp);
    if (count($tmp) > 0) {
        $categories = $h_oledrion_cat->getCategoriesFromIds($tmp);
    }
    $cpt = 1;
    $count = 1;
    foreach ($products as $product) {
        $productForTemplate = array();
        $productForTemplate = $product->toArray();
        $productForTemplate['count'] = $cpt;
        $productForTemplate['product_category'] = isset($categories[$product->getVar('product_cid')]) ? $categories[$product->getVar('product_cid')]->toArray() : null;
        $productForTemplate['product_count'] = $count;
        $xoopsTpl->append('products', $productForTemplate);
        $cpt++;
        $count++;
    }
}
oledrion_utils::setCSS();
oledrion_utils::setLocalCSS($xoopsConfig['language']);
oledrion_utils::loadLanguageFile('modinfo.php');
$xoopsTpl->assign('global_advert', oledrion_utils::getModuleOption('advertisement'));
// By voltan
$breadcrumb = array(OLEDRION_URL . basename(__FILE__) => $manufacturer->getVar('manu_name') . ' ' . $manufacturer->getVar('manu_commercialname'));
$xoopsTpl->assign('breadcrumb', oledrion_utils::breadcrumb($breadcrumb));
//$title = $manufacturer->getVar('manu_name') . ' ' . $manufacturer->getVar('manu_commercialname') . ' - ' . oledrion_utils::getModuleName();
$title = $manufacturer->getVar('manu_name') . ' ' . $manufacturer->getVar('manu_commercialname');
oledrion_utils::setMetas($title, $title, oledrion_utils::createMetaKeywords($manufacturer->getVar('manu_name') . ' ' . $manufacturer->getVar('manu_commercialname') . ' ' . $manufacturer->getVar('manu_bio')));
require_once XOOPS_ROOT_PATH . '/footer.php';
开发者ID:osw17,项目名称:oledrion,代码行数:31,代码来源:manufacturer.php

示例3: array

$xoopsTpl->assign('columnsCount', oledrion_utils::getModuleOption('catagory_colums'));
$xoopsTpl->assign('list', $list->toArray());
// TVA
$vatArray = array();
$vatArray = $h_oledrion_vat->getAllVats(new oledrion_parameters());
// Recherche des produits de la liste
$products = $handlers->h_oledrion_lists->getListProducts($list);
if (count($products) > 0) {
    foreach ($products as $product) {
        $xoopsTpl->append('products', $product->toArray());
    }
}
// Mise à jour du compte de vues
$handlers->h_oledrion_lists->incrementListViews($list);
// Recherce des autres listes de cet utilisateur
if ($handlers->h_oledrion_lists->getRecentListsCount(OLEDRION_LISTS_ALL_PUBLIC, oledrion_utils::getCurrentUserID()) > 1) {
    $otherUserLists = $handlers->h_oledrion_lists->getRecentLists(new oledrion_parameters(array('start' => 0, 'limit' => 0, 'sort' => 'list_date', 'order' => 'DESC', 'idAsKey' => true, 'listType' => OLEDRION_LISTS_ALL_PUBLIC, 'list_uid' => oledrion_utils::getCurrentUserID())));
    if (count($otherUserLists) > 0) {
        foreach ($otherUserLists as $oneOtherList) {
            $xoopsTpl->append('otherUserLists', $oneOtherList->toArray());
        }
    }
}
oledrion_utils::setCSS();
oledrion_utils::setLocalCSS($xoopsConfig['language']);
oledrion_utils::loadLanguageFile('modinfo.php');
$breadcrumb = array(OLEDRION_URL . 'all-lists.php' => _MI_OLEDRION_SMNAME11, OLEDRION_URL . basename(__FILE__) => $list->getVar('list_title'));
$xoopsTpl->assign('breadcrumb', oledrion_utils::breadcrumb($breadcrumb));
$title = $list->getVar('list_title') . ' - ' . oledrion_utils::getModuleName();
oledrion_utils::setMetas($title, $title, oledrion_utils::createMetaKeywords($list->getVar('list_description', 'n') . ' ' . $list->getVar('list_title', 'n')));
require_once XOOPS_ROOT_PATH . '/footer.php';
开发者ID:osw17,项目名称:oledrion,代码行数:31,代码来源:list.php


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