本文整理汇总了PHP中oledrion_utils::loadLanguageFile方法的典型用法代码示例。如果您正苦于以下问题:PHP oledrion_utils::loadLanguageFile方法的具体用法?PHP oledrion_utils::loadLanguageFile怎么用?PHP oledrion_utils::loadLanguageFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oledrion_utils
的用法示例。
在下文中一共展示了oledrion_utils::loadLanguageFile方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: b_oledrion_random_lists_show
/**
* Affichage des listes au hasard
*
* @param array $options [0] = Nombre maximum de listes à voir, [1] = Type de listes (0 = les 2, 1 = liste cadeaux, 2 = produits recommandés)
* @return array
*/
function b_oledrion_random_lists_show($options)
{
require XOOPS_ROOT_PATH . '/modules/oledrion/include/common.php';
oledrion_utils::loadLanguageFile('main.php');
$start = 0;
$limit = intval($options[0]);
$listType = intval($options[1]);
$block = array();
$handlers = oledrion_handler::getInstance();
$items = array();
$items = $handlers->h_oledrion_lists->getRecentLists(new oledrion_parameters(array('start' => $start, 'limit' => $limit, 'sort' => 'RAND()', 'order' => 'DESC', 'idAsKey' => true, 'listType' => $listType)));
if (count($items) > 0) {
foreach ($items as $item) {
$block['random_lists'][] = $item->toArray();
}
}
return $block;
}
示例2: b_oledrion_category_lists_show
/**
* Affichage des listes les plus vues
*
* @param array $options [0] = Nombre maximum de listes à voir, [1] = Type de listes (0 = les 2, 1 = liste cadeaux, 2 = produits recommandés)
* @return array
*/
function b_oledrion_category_lists_show($options)
{
require XOOPS_ROOT_PATH . '/modules/oledrion/include/common.php';
oledrion_utils::loadLanguageFile('main.php');
$limit = intval($options[0]);
$listType = intval($options[1]);
$block = array();
if (isset($GLOBALS['current_category']) && intval($GLOBALS['current_category']) > 0) {
$handlers = oledrion_handler::getInstance();
$items = array();
$items = $handlers->h_oledrion_lists->listsFromCurrentCategory($GLOBALS['current_category'], $listType, $limit);
if (count($items) > 0) {
foreach ($items as $item) {
$block['category_lists'][] = $item->toArray();
}
}
}
return $block;
}
示例3: b_oledrion_my_lists_show
/**
* Affiche les listes de l'utilisateur
*
* @param array $options [0] = Nombre maximum de listes à voir
* @return array
*/
function b_oledrion_my_lists_show($options)
{
require XOOPS_ROOT_PATH . '/modules/oledrion/include/common.php';
oledrion_utils::loadLanguageFile('modinfo.php');
$start = 0;
$limit = intval($options[0]);
$uid = oledrion_utils::getCurrentUserID();
if ($uid == 0) {
return null;
}
$listType = OLEDRION_LISTS_ALL;
$block = array();
$handlers = oledrion_handler::getInstance();
$items = array();
$items = $handlers->h_oledrion_lists->getRecentLists(new oledrion_parameters(array('start' => $start, 'limit' => $limit, 'sort' => 'list_date', 'order' => 'DESC', 'idAsKey' => true, 'listType' => $listType, 'list_uid' => $uid)));
if (count($items) > 0) {
foreach ($items as $item) {
$block['my_lists'][] = $item->toArray();
}
}
return $block;
}
示例4: array
*
* Version : $Id:
* ****************************************************************************
*/
/**
* Plan des catégories
*/
require 'header.php';
$GLOBALS['current_category'] = -1;
$xoopsOption['template_main'] = 'oledrion_map.html';
require_once XOOPS_ROOT_PATH . '/header.php';
require_once OLEDRION_PATH . 'class/tree.php';
$xoopsTpl->assign('mod_pref', $mod_pref);
// Préférences du module
$categories = array();
$categories = $h_oledrion_cat->getAllCategories(new oledrion_parameters());
$mytree = new Oledrion_XoopsObjectTree($categories, 'cat_cid', 'cat_pid');
$tree = $mytree->makeTreeAsArray('cat_title', '-');
foreach ($tree as $key => $value) {
if (isset($categories[$key])) {
$category = $categories[$key];
$xoopsTpl->append('categories', array('cat_url_rewrited' => $category->getLink(), 'cat_href_title' => $category->getHrefTitle(), 'cat_title' => $value));
}
}
oledrion_utils::setCSS();
oledrion_utils::loadLanguageFile('modinfo.php');
$xoopsTpl->assign('global_advert', oledrion_utils::getModuleOption('advertisement'));
$xoopsTpl->assign('breadcrumb', oledrion_utils::breadcrumb(array(OLEDRION_URL . basename(__FILE__) => _MI_OLEDRION_SMNAME4)));
$title = _MI_OLEDRION_SMNAME4 . ' - ' . oledrion_utils::getModuleName();
oledrion_utils::setMetas($title, $title);
require_once XOOPS_ROOT_PATH . '/footer.php';
示例5: array
$criteria->setLimit($limit);
$products = array();
$products = $oledrion_handlers->h_oledrion_products->getObjects($criteria);
$javascriptSearch = array("'", '"');
$javascriptReplace = array(' ', ' ');
if (count($products) > 0) {
foreach ($products as $product) {
$productData = $product->toArray();
$productData['product_title_javascript'] = str_replace($javascriptSearch, $javascriptReplace, $product->getVar('product_title', 'n'));
//$productData['product_title_javascript'] = $product->getVar('product_title', 'n');
$xoopsTpl->append('products', $productData);
}
}
}
oledrion_utils::loadLanguageFile('modinfo.php');
oledrion_utils::loadLanguageFile('main.php');
$categoriesSelect = $mytree->makeSelBox('product_cid', 'cat_title', '-', $selectedCategory, '---', 0, "class='selectLists'");
$xoopsTpl->assign('callerName', $callerName);
$xoopsTpl->assign('sart', $start);
$xoopsTpl->assign('theme_set', xoops_getcss($xoopsConfig['theme_set']));
$xoopsTpl->assign('xoopsConfig', $xoopsConfig);
$xoopsTpl->assign('mutipleSelect', $mutipleSelect);
$xoopsTpl->assign('searchVendorSelected', $searchVendorSelected);
$xoopsTpl->assign('baseurl', OLEDRION_URL . 'admin/' . basename(__FILE__));
// URL de ce script
$xoopsTpl->assign('searchVendor', $vendors);
$xoopsTpl->assign('searchCriteria', $searchCriterias);
$xoopsTpl->assign('searchField', $searchFields);
$xoopsTpl->assign('searchCategory', $categoriesSelect);
$xoopsTpl->assign('searchFieldSelected', $selectedSearchField);
echo $xoopsTpl->fetch('db:oledrion_productsselector.html');
示例6: oledrion_adminMenu
/**
* ****************************************************************************
* oledrion - MODULE FOR XOOPS
* Copyright (c) Hervé Thouzard of Instant Zero (http://www.instant-zero.com)
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @copyright Hervé Thouzard of Instant Zero (http://www.instant-zero.com)
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
* @package oledrion
* @author Hervé Thouzard of Instant Zero (http://www.instant-zero.com)
*
* Version : $Id:
* ****************************************************************************
*/
function oledrion_adminMenu($currentoption = 0, $breadcrumb = '')
{
global $xoopsConfig, $xoopsModule;
oledrion_utils::loadLanguageFile('modinfo.php');
require XOOPS_ROOT_PATH . '/modules/oledrion/admin/menu.php';
echo "<style type=\"text/css\">\n";
echo "#buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; }\n";
echo "#buttonbar { float:left; width:100%; background: #e7e7e7 url('../images/modadminbg.gif') repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; }\n";
echo "#buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; }\n";
echo "#buttonbar li { display:inline; margin:0; padding:0; }";
echo "#buttonbar a { float:left; background:url('../images/left_both.gif') no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; }\n";
echo "#buttonbar a span { float:left; display:block; background:url('../images/right_both.gif') no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; }\n";
echo "/* Commented Backslash Hack hides rule from IE5-Mac \\*/\n";
echo "#buttonbar a span {float:none;}\n";
echo "/* End IE5-Mac hack */\n";
echo "#buttonbar a:hover span { color:#333; }\n";
echo "#buttonbar .current a { background-position:0 -150px; border-width:0; }\n";
echo "#buttonbar .current a span { background-position:100% -150px; padding-bottom:5px; color:#333; }\n";
echo "#buttonbar a:hover { background-position:0% -150px; }\n";
echo "#buttonbar a:hover span { background-position:100% -150px; }\n";
echo "</style>\n";
echo "<div id=\"buttontop\">\n";
echo "<table style=\"width: 100%; padding: 0; \" cellspacing=\"0\">\n";
echo "<tr>\n";
echo "<td style=\"width: 70%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\">\n";
echo "<a href=\"../index.php\">" . _AM_OLEDRION_GO_TO_MODULE . "</a> | <a href=\"" . XOOPS_URL . "/modules/system/admin.php?fct=preferences&op=showmod&mod=" . $xoopsModule->getVar('mid') . "\">" . _AM_OLEDRION_PREFERENCES . "</a> | <a href='index.php?op=maintain'>" . _AM_OLEDRION_MAINTAIN . "</a>\n";
echo "</td>\n";
echo "<td style=\"width: 30%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\">\n";
echo "<b>" . $xoopsModule->getVar('name') . " " . _AM_OLEDRION_ADMINISTRATION . "</b> " . $breadcrumb . "\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "<div id=\"buttonbar\">\n";
echo "<ul>\n";
$visibleTabsRule = OLEDRION_EXCLUDED_TABS;
$tabs = array();
$tabs = $adminmenu;
if ($visibleTabsRule != '') {
if (strstr(OLEDRION_EXCLUDED_TABS, ',') !== false) {
$excludedTabs = explode(',', OLEDRION_EXCLUDED_TABS);
array_walk($excludedTabs, 'trim');
} else {
$excludedTabs = array(OLEDRION_EXCLUDED_TABS);
}
if (count($excludedTabs) > 0) {
$newtTabs = array();
foreach ($adminmenu as $key => $link) {
if (!in_array($key, $excludedTabs)) {
$newtTabs[$key] = $link;
}
}
$tabs = $newtTabs;
}
}
foreach ($tabs as $key => $link) {
if ($key == $currentoption) {
echo "<li class=\"current\">\n";
} else {
echo "<li>\n";
}
echo "<a href=\"" . XOOPS_URL . "/modules/oledrion/" . $link['link'] . "\"><span>" . $link['title'] . "</span></a>\n";
echo "</li>\n";
}
echo "</ul>\n";
echo "</div>\n";
echo "<br style=\"clear:both;\" />\n";
}