本文整理汇总了PHP中shLoadPluginLanguage函数的典型用法代码示例。如果您正苦于以下问题:PHP shLoadPluginLanguage函数的具体用法?PHP shLoadPluginLanguage怎么用?PHP shLoadPluginLanguage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了shLoadPluginLanguage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig =& shRouter::shGetConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
return;
}
// ------------------ standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_virtuemart', $shLangIso, '_PHPSHOP_LIST_ALL_PRODUCTS');
// ------------------ load language file - adjust as needed ----------------------------------------
// some links are incorrect, for instance the allinone module adds a category= in the
// list all products link. Let's remove that
if (strpos($string, '&category=&') !== false) {
$string = str_replace('&category=&', '&', $string);
shRemoveFromGETVarsList('category');
}
/**
* Function vm_sef_get_category_array() is based on
* Mark Fabrizio, Joomlicious
* fabrizim@owlwatch.com
* http://www.joomlicious.com
*/
if (!function_exists('vm_sef_get_category_array')) {
function vm_sef_get_category_array(&$db, $category_id, $option, $shLangName)
示例2: defined
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig =& shRouter::shGetConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
return;
}
// ------------------ standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_myblog', $shLangIso, '_SH404SEF_MYBLOG_VIEW_BY_TAG');
// ------------------ load language file - adjust as needed ----------------------------------------
if (!function_exists('shFetchTagId')) {
function shFetchTagId($catName, $option, $shLangName)
{
if (empty($catName)) {
return null;
}
// get DB
$database =& JFactory::getDBO();
$sql = 'SELECT id from #__myblog_categories WHERE name = \'' . $catName . '\'';
$database->setQuery($sql);
if (shTranslateUrl($option, $shLangName)) {
$catId = $database->loadResult();
} else {
$catId = $database->loadResult(false);
示例3: defined
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig =& shRouter::shGetConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
return;
}
// ------------------ standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_poll', $shLangIso, 'COM_SH404SEF_POLL_VOTE');
// ------------------ load language file - adjust as needed ----------------------------------------
$task = isset($task) ? $task : null;
switch ($task) {
case 'vote':
$title[] = $sh_LANG[$shLangIso]['COM_SH404SEF_POLL_VOTE'];
break;
default:
$title[] = $sh_LANG[$shLangIso]['COM_SH404SEF_POLL_RESULTS'];
shMustCreatePageId('set', true);
break;
}
if (!empty($id)) {
$query = 'SELECT title, id FROM #__polls WHERE id = "' . $id . '"';
$database->setQuery($query);
if (shTranslateURL($option, $shLangName)) {
示例4: defined
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig =& shRouter::shGetConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
return;
}
// ------------------ standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_hotproperty', $shLangIso, '_HP_SEF_PROPERTY');
// ------------------ load language file - adjust as needed ----------------------------------------
/********************************************************
* Utility Functions
********************************************************/
# Include the config file
require sh404SEF_ABS_PATH . 'administrator/components/com_hotproperty/config.hotproperty.php';
// V 1.2.4.s make sure user param prevails on guessed Itemid
if (empty($Itemid) && $sefConfig->shInsertGlobalItemidIfNone && !empty($shCurrentItemid)) {
$string .= '&Itemid=' . $shCurrentItemid;
// append current Itemid
$Itemid = $shCurrentItemid;
shAddToGETVarsList('Itemid', $Itemid);
// V 1.2.4.m
}
$task = isset($task) ? $task : null;
示例5: defined
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig =& shRouter::shGetConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
return;
}
// ------------------ standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_remository', $shLangIso, '_SH404SEF_REMO_DOC_DOWNLOAD');
// ------------------ load language file - adjust as needed ----------------------------------------
/********************************************************
* Utility Functions
********************************************************/
if (!function_exists('shGetContainerName')) {
function shGetContainerName($id, $option, $shLangName)
{
if (empty($id)) {
return null;
}
$sefConfig =& shRouter::shGetConfig();
// get DB
$database =& JFactory::getDBO();
if (empty($sefConfig->shRemoInsertCategories)) {
// no categories
示例6: defined
*/
defined('_JEXEC') or die;
// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig = shRouter::shGetConfig();
$db = JFactory::getDbo();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, 'com_redshop');
if ($dosef == false) {
return;
}
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_redshop', $shLangIso, '_COM_SEF_SH_REDSHOP');
// Getting the configuration
if (!defined('TABLE_PREFIX')) {
require_once JPATH_ADMINISTRATOR . '/components/com_redshop/helpers/redshop.cfg.php';
}
include_once "administrator/components/com_redshop/helpers/category.php";
$product_category = new product_category();
shRemoveFromGETVarsList('option');
if (!empty($lang)) {
shRemoveFromGETVarsList('lang');
}
shRemoveFromGETVarsList('Itemid');
shRemoveFromGETVarsList('task');
$limitstart = isset($limitstart) ? @$limitstart : 0;
if (isset($limit)) {
// V 1.2.4.r
示例7: array
$sefConfig =& shRouter::shGetConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
$layout = JRequest::getVar('layout', null);
$typeid = JRequest::getInt('typeid', null);
$fcu = JRequest::getVar('fcu', null);
$fcp = JRequest::getInt('fcp', null);
if ($dosef == false) {
return;
}
// ------------------ /standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_flexicontent', $shLangIso, '_SH404SEF_FLEXICONTENT_ADD', JPATH_ROOT . DS . 'components' . DS . 'com_flexicontent' . DS . 'sef_ext' . DS . 'lang' . DS);
// ------------------ /load language file - adjust as needed ----------------------------------------
// do something about that Itemid thing
if (!preg_match('/Itemid=[0-9]+/i', $string)) {
// if no Itemid in non-sef URL
//global $Itemid;
if ($sefConfig->shInsertGlobalItemidIfNone && !empty($shCurrentItemid)) {
$string .= '&Itemid=' . $shCurrentItemid;
// append current Itemid
$Itemid = $shCurrentItemid;
shAddToGETVarsList('Itemid', $Itemid);
// V 1.2.4.m
}
if ($sefConfig->shInsertTitleIfNoItemid) {
$title[] = $sefConfig->shDefaultMenuItemName ? $sefConfig->shDefaultMenuItemName : getMenuTitle($option, null, $shCurrentItemid);
}
示例8: defined
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig =& shRouter::shGetConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
return;
}
// ------------------ standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_docman', $shLangIso, '_SH404SEF_DOCMAN_DOC_DOWNLOAD');
// ------------------ load language file - adjust as needed ----------------------------------------
// utilitity function
if (!function_exists('shDocmanDocumentName')) {
function shDocmanDocumentName($docId, $option, $shLangName)
{
if (empty($docId)) {
return '';
}
$sefConfig =& shRouter::shGetConfig();
// get DB
$database =& JFactory::getDBO();
$database->setQuery('SELECT dmname, catid FROM #__docman WHERE id = ' . $database->Quote($docId));
if (!shTranslateUrl($option, $shLangName)) {
// V 1.2.4.m
$result = $database->loadObject(false);
示例9: defined
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig =& shRouter::shGetConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
return;
}
// ------------------ standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_letterman', $shLangIso, 'COM_SH404SEF_LETTERMAN');
// ------------------ load language file - adjust as needed ----------------------------------------
shRemoveFromGETVarsList('option');
if (!empty($lang)) {
shRemoveFromGETVarsList('lang');
}
if (!empty($sefConfig->shLMDefaultItemid)) {
shAddToGETVarsList('Itemid', $sefConfig->shLMDefaultItemid);
// V 1.2.4.q
// we add then remove value to GET Vars, sounds weird, but Itemid value has been added to
// non sef string in the process
shRemoveFromGETVarsList('Itemid');
}
if (!empty($Itemid)) {
shRemoveFromGETVarsList('Itemid');
}
示例10: defined
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig =& shRouter::shGetConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
return;
}
// ------------------ standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_rd_rss', $shLangIso, 'COM_SH404SEF_RD_RSS');
// ------------------ load language file - adjust as needed ----------------------------------------
$title[] = $sh_LANG[$shLangIso]['COM_SH404SEF_RD_RSS'];
// fetch contact name
if (!empty($id)) {
$query = "SELECT name, id FROM #__rd_rss";
$query .= "\n WHERE id=" . $database->Quote($id);
$database->setQuery($query);
if (!shTranslateUrl($option, $shLangName)) {
// V 1.2.4.m
$result = $database->loadObject(false);
} else {
$result = $database->loadObject();
}
if (!empty($result)) {
$title[] = $result->name;
示例11: array
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
return;
}
// ------------------ standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
//
/// $$$rob dont load if joomfish installed?
/// $$$tom that's actually the opposite: load only if joomfish is installed;)
/// as per: http://fabrikar.com/forums/showthread.php?p=66613#post66613
if (defined('JOOMFISH_PATH')) {
if (isset($sh_LANG)) {
$shLangIso = shLoadPluginLanguage('com_fabrik', $shLangIso, '_COM_SEF_SH_CREATE_NEW');
}
}
// ------------------ load language file - adjust as needed ----------------------------------------
// Don't do SEF if controller is set (return directly in fact)
if (isset($controller)) {
return;
}
$task = isset($task) ? @$task : null;
$Itemid = isset($Itemid) ? @$Itemid : null;
$tableid = isset($tableid) ? @$tableid : null;
$view = isset($view) ? @$view : null;
$fabrik = isset($fabrik) ? @$fabrik : null;
$rowid = isset($rowid) ? @$rowid : null;
// Prepare Menu Title
$shFabrikName = null;
示例12: defined
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig =& Sh404sefFactory::getConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
return;
}
// ------------------ standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_weblinks', $shLangIso, 'COM_SH404SEF_CREATE_NEW_LINK');
// ------------------ load language file - adjust as needed ----------------------------------------
// collect probable url vars
$view = isset($view) ? $view : null;
$task = isset($task) ? $task : null;
$Itemid = isset($Itemid) ? $Itemid : null;
$id = isset($id) ? $id : null;
$catid = isset($catid) ? $catid : null;
// optional prefix
$shWeblinksName = shGetComponentPrefix($option);
if (!empty($shWeblinksName) && $shWeblinksName != '/') {
$title[] = $shWeblinksName;
}
// joomla content models
$slugsModel = Sh404sefModelSlugs::getInstance();
$menuItemTitle = getMenuTitle(null, $view, isset($Itemid) ? $Itemid : null, '', $shLangName);
示例13: defined
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig =& shRouter::shGetConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
return;
}
// ------------------ standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_kunena', $shLangIso, 'COM_SH404SEF_KU_SHOW_USER_PROFILE');
// ------------------ load language file - adjust as needed ----------------------------------------
$Itemid = isset($Itemid) ? $Itemid : null;
// start Kunena specific stuff
$func = isset($func) ? $func : null;
$task = isset($task) ? $task : null;
$do = isset($do) ? $do : null;
$catid = isset($catid) ? $catid : null;
$id = isset($id) ? $id : null;
$userid = isset($userid) ? $userid : null;
$page = isset($page) ? $page : null;
$sel = isset($sel) ? $sel : null;
$view = isset($view) ? $view : null;
if (!function_exists('shKUGetVersion')) {
function shKUGetVersion()
{
示例14: defined
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig =& shRouter::shGetConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
return;
}
// ------------------ standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('', $shLangIso, '');
// ------------------ load language file - adjust as needed ----------------------------------------
// shumisha : insert component name from menu
$task = isset($task) ? @$task : null;
$Itemid = isset($Itemid) ? @$Itemid : null;
$shRsGallery2Name = shGetComponentPrefix($option);
$shRsGallery2Name = empty($shRsGallery2Name) ? getMenuTitle($option, $task, $Itemid, null, $shLangName) : $shRsGallery2Name;
$shRsGallery2Name = empty($shRsGallery2Name) || $shRsGallery2Name == '/' ? 'RSGallery1' : $shRsGallery2Name;
if ($sefConfig->shInsertRsGallery2Name && !empty($shRsGallery2Name)) {
$title[] = $shRsGallery2Name;
}
//load gallery name
if (isset($catid)) {
$query_gal = "\r\n\t\tSELECT `name`\r\n\t\tFROM `#__rsgallery2_galleries`\r\n\t\tWHERE `id` = '{$catid}'\r\n\t\t";
$database->setQuery($query_gal);
$gallery = $database->loadResult();
示例15: defined
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// ------------------ standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig =& Sh404sefFactory::getConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
return;
}
// ------------------ standard plugin initialize function - don't change ---------------------------
// ------------------ load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_mtree', $shLangIso, '_MT_SEF_DETAILS');
// ------------------ load language file - adjust as needed ----------------------------------------
/********************************************************
* Utility Functions
********************************************************/
/***
* Append Categories' Pathway
*/
if (!function_exists('shAppendCat')) {
function shAppendCat($cat_id, $option, $shLangName)
{
$sefConfig =& Sh404sefFactory::getConfig();
$sef = array();
$pathWay = new mtPathWay($cat_id);
$pathway_ids = $pathWay->getPathWay($cat_id);
switch ($sefConfig->shMTreeInsertCategories) {