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


PHP getMenuTitle函数代码示例

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


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

示例1: shAkeebasubsMenuName

 function shAkeebasubsMenuName($task, $Itemid, $option, $shLangName)
 {
     $sefConfig =& shRouter::shGetConfig();
     $shArsDownloadName = shGetComponentPrefix($option);
     if (empty($shArsDownloadName)) {
         $shArsDownloadName = getMenuTitle($option, $task, $Itemid, null, $shLangName);
     }
     if (empty($shArsDownloadName) || $shArsDownloadName == '/') {
         $shArsDownloadName = 'AkeebaReleaseSystem';
     }
     return str_replace('.', $sefConfig->replacement, $shArsDownloadName);
 }
开发者ID:jonatasmm,项目名称:akeebasubs,代码行数:12,代码来源:com_akeebasubs.php

示例2: 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 ----------------------------------------
$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();
}
//load imagename
if (isset($limitstart)) {
    $order = $limitstart + 1;
}
if (isset($order) && isset($catid)) {
开发者ID:sangkasi,项目名称:joomla,代码行数:31,代码来源:dev_com_rsgallery2.php

示例3: shRemoveFromGETVarsList

}
if (!empty($Itemid)) {
    shRemoveFromGETVarsList('Itemid');
}
if (!empty($limit)) {
    shRemoveFromGETVarsList('limit');
}
if (isset($limitstart)) {
    shRemoveFromGETVarsList('limitstart');
}
// limitstart can be zero
// start by inserting the menu element title (just an idea, this is not required at all)
$view = isset($view) ? @$view : null;
$Itemid = isset($Itemid) ? @$Itemid : null;
$shName = shGetComponentPrefix($option);
$shName = empty($shName) ? getMenuTitle($option, '', $Itemid, null, $shLangName) : $shName;
$shName = empty($shName) || $shName == '/' ? 'jea' : $shName;
switch ($view) {
    case 'properties':
        if (!empty($id)) {
            shRemoveFromGETVarsList('id');
        }
        $title[] = $shName;
        if (!empty($id)) {
            $q = 'SELECT p.id AS id, ttype.value AS type, ttown.value AS town FROM #__jea_properties AS p' . PHP_EOL . 'LEFT JOIN #__jea_types as ttype ON ttype.id = p.type_id' . PHP_EOL . 'LEFT JOIN #__jea_towns as ttown ON ttown.id = p.town_id' . PHP_EOL . 'WHERE p.id = ' . intval($id);
            $database->setQuery($q);
            $property = $database->loadObject();
            $title[] = $id . '-' . $property->type . '--' . $property->town;
        }
        break;
    case 'manage':
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:31,代码来源:com_jea.php

示例4: isset

    // V 1.2.4.m
}
$task = isset($task) ? $task : null;
$id = isset($id) ? $id : null;
$agent_id = isset($agent_id) ? $agent_id : null;
$limit = isset($limit) ? $limit : null;
$limitstart = isset($limitstart) ? $limitstart : null;
// $search    // not processed, passed as GET var
// $type      // not processed, passed as GET var
// $search_id // not processed, passed as GET var
// shumisha : insert component name from menu
// Configuration variable
$shInsertHotPropName = true;
// if yes, name is inserted
$shHotPropName = shGetComponentPrefix($option);
$shHotPropName = empty($shHotPropName) ? getMenuTitle($option, null, $Itemid, null, $shLangName) : $shHotPropName;
//$shHotPropName = (empty($shHotPropName) || $shHotPropName == '/') ? 'Directory':$shHotPropName; // V 1.2.4.t
if ($shInsertHotPropName && !empty($shHotPropName)) {
    $title[] = $shHotPropName;
}
switch ($task) {
    # View Property
    case 'view':
        if (is_numeric($id)) {
            $database->setQuery("SELECT t.id,t.name AS type_name, p.id, p.name AS property_name FROM #__hp_properties AS p" . "\nLEFT JOIN #__hp_prop_types AS t ON p.type = t.id" . "\nWHERE p.id = " . $database->Quote($id) . "\nLIMIT 1");
            if (shTranslateUrl($option, $shLangName)) {
                $row = $database->loadObject();
            } else {
                $row = $database->loadObject(false);
            }
            $title[] = $sh_LANG[$shLangIso]['_HP_SEF_PROPERTY'];
开发者ID:justinlyon,项目名称:scc,代码行数:31,代码来源:com_hotproperty.php

示例5: xmapShowNavigatorLinks

function xmapShowNavigatorLinks($config)
{
    require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'classes' . DS . 'XmapNav.php';
    require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'classes' . DS . 'XmapPlugins.php';
    require_once JPATH_SITE . DS . 'includes' . DS . 'application.php';
    # DEBUG
    ini_set('display_errors', 1);
    error_reporting(E_ALL);
    # DEBUG
    $sitemapid = JRequest::getInt('sitemap', 0);
    $link = urldecode(JRequest::getVar('link', ''));
    $name = JRequest::getCmd('e_name', '');
    $Itemid = JRequest::getInt('Itemid');
    if (!$sitemapid) {
        $sitemapid = $config->sitemap_default;
    }
    $sitemap = new XmapSitemap($database);
    if (!$sitemap->load($sitemapid)) {
        echo _XMAP_INVALID_SITEMAP;
        return false;
    }
    $menus = $sitemap->getMenus();
    $list = array();
    // Show the menu items
    if (!$link && !$Itemid) {
        foreach ($menus as $menutype => $menu) {
            $node = new stdclass();
            $menu->id = 0;
            $menu->menutype = $menutype;
            $node->uid = $menu->uid = "menu" . $menu->id;
            $node->menutype = $menutype;
            $node->ordering = $menu->ordering;
            $node->priority = $menu->priority;
            $node->changefreq = $menu->changefreq;
            $node->browserNav = 3;
            $node->type = 'separator';
            if (!($node->name = getMenuTitle($menutype, @$menu->module))) {
                $node->name = $menutype;
            }
            $node->link = '-menu-' . $menutype;
            $node->expandible = true;
            $node->selectable = false;
            //$node->name = $this->getMenuTitle($menutype,@$menu->module);	// get the mod_mainmenu title from modules table
            $list[] = $node;
        }
    } else {
        $nav = new XmapNav($config, $sitemap);
        $extensions = XmapPlugins::loadAvailablePlugins();
        $parent = new stdClass();
        if ($Itemid) {
            $items =& JSite::getMenu();
            $item =& $items->getItem($Itemid);
            if (isset($menus[$item->menutype])) {
                $parent->name = $item->name;
                $parent->id = $item->id;
                $parent->uid = 'itemid' . $item->id;
                $parent->link = $link;
                $parent->type = $item->type;
                $parent->browserNav = $item->browserNav;
                $parent->priority = $menus[$item->menutype]->priority;
                $parent->changefreq = $menus[$item->menutype]->changefreq;
                $parent->menutype = $item->menutype;
                $parent->selectable = false;
                $parent->expandible = true;
            }
        } else {
            $parent->id = 0;
            $parent->link = $link;
        }
        $list = $nav->expandLink($parent, $extensions);
    }
    XmapAdminHtml::showNavigatorLinks($sitemapid, $list, $name);
}
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:73,代码来源:XmapAdmin.php

示例6: getContentTitles

 function getContentTitles($view, $id, $layout, $Itemid = 0, $shLang = null, $sefConfig = null)
 {
     global $shMosConfig_locale;
     // if config is not injected, get default one
     if (is_null($sefConfig)) {
         $sefConfig =& shRouter::shGetConfig();
     }
     $id = empty($id) ? 0 : intval($id);
     // get DB
     $database =& JFactory::getDBO();
     $title = array();
     $shLang = empty($shLang) ? $shMosConfig_locale : $shLang;
     $sql = '';
     $catField = $sefConfig->useCatAlias ? 'alias' : 'title';
     $secField = $sefConfig->useSecAlias ? 'alias' : 'title';
     switch ($view) {
         case 'section':
             if (empty($layout) || $layout != 'blog') {
                 $shTemp = getMenuTitle(null, $view, isset($Itemid) ? @$Itemid : null, '', $shLang);
                 if ($sefConfig->shInsertContentTableName) {
                     if (!empty($sefConfig->shContentTableName)) {
                         $title[] = $sefConfig->shContentTableName;
                     } else {
                         if (!empty($shTemp)) {
                             $title[] = $shTemp;
                         }
                     }
                 }
                 if (!empty($id)) {
                     $sql = "SELECT " . $secField . " AS section" . (shTranslateURL('com_content', $shLang) ? ',id' : '') . " FROM #__sections WHERE id={$id}";
                     if ($secField != 'title') {
                         $database->setQuery($sql);
                         $sa = $database->loadResult();
                         if (empty($sa)) {
                             $secField = 'title';
                         }
                     }
                 } else {
                     if (!$sefConfig->shInsertContentTableName || !empty($sefConfig->shContentTableName)) {
                         if (!empty($shTemp)) {
                             $title[] = $shTemp;
                         }
                     }
                 }
             } else {
                 // blog section
                 $shTemp = getMenuTitle(null, $view, isset($Itemid) ? @$Itemid : null, '', $shLang);
                 // v 1.2.4.t
                 if ($sefConfig->shInsertContentBlogName) {
                     if (!empty($sefConfig->shContentBlogName)) {
                         $title[] = $sefConfig->shContentBlogName;
                     } else {
                         if (!empty($shTemp)) {
                             $title[] = $shTemp;
                         }
                     }
                 }
                 if (!empty($id)) {
                     $sql = "SELECT " . $secField . " AS section" . (shTranslateURL('com_content', $shLang) ? ',id' : '') . " FROM #__sections WHERE id={$id}";
                     if ($secField != 'title') {
                         $database->setQuery($sql);
                         $sa = $database->loadResult();
                         if (empty($sa)) {
                             $secField = 'title';
                         }
                     }
                 } else {
                     if (!$sefConfig->shInsertContentBlogName || !empty($sefConfig->shContentBlogName)) {
                         if (!empty($shTemp)) {
                             $title[] = $shTemp;
                         }
                     }
                 }
             }
             break;
         case 'category':
             // V 1.2.4.s added instead of inserting /Table
             if (empty($layout) || $layout != 'blog') {
                 $shTemp = getMenuTitle(null, $view, isset($Itemid) ? @$Itemid : null, '', $shLang);
                 if ($sefConfig->shInsertContentTableName) {
                     if (!empty($sefConfig->shContentTableName)) {
                         $title[] = $sefConfig->shContentTableName;
                     } else {
                         if (!empty($shTemp)) {
                             $title[] = $shTemp;
                         }
                     }
                 }
                 if (!empty($id)) {
                     // V x : apply ShowSection param
                     if ($sefConfig->ShowSection == true && SH404SEF_COMPAT_SHOW_SECTION_IN_CAT_LINKS) {
                         // V 1.2.4.m if displaying a category or a category blog
                         $sql = 'SELECT s.' . $secField . ' AS section' . (shTranslateURL('com_content', $shLang) ? ',s.id AS secid ' : '') . ', c.' . $catField . ' AS category' . (shTranslateURL('com_content', $shLang) ? ',c.id as catid' : '') . ' FROM #__categories as c ' . 'LEFT JOIN #__sections AS s ' . 'ON c.section=s.id ' . 'WHERE c.id=' . $id;
                     } else {
                         $sql = "SELECT " . $catField . " AS category" . (shTranslateURL('com_content', $shLang) ? ',id' : '') . " FROM #__categories WHERE id={$id}";
                         if ($catField != 'title') {
                             $database->setQuery($sql);
                             $sa = $database->loadResult();
                             if (empty($sa)) {
                                 $catField = 'title';
//.........这里部分代码省略.........
开发者ID:sangkasi,项目名称:joomla,代码行数:101,代码来源:sef_ext.php

示例7: shSefRelToAbs


//.........这里部分代码省略.........
                    }
                    // now let's try again without any pagination at all
                    if (($urlType == sh404SEF_URLTYPE_NONE || $urlType == sh404SEF_URLTYPE_404) && empty($showall) && (!empty($limit) || !isset($limit) && !empty($limitstart))) {
                        $urlType = shGetSefURLFromCacheOrDB(shCleanUpPag($string), $sefstring);
                        // search without pagination info
                        if ($urlType != sh404SEF_URLTYPE_NONE && $urlType != sh404SEF_URLTYPE_404) {
                            $sefstring = shAddPaginationInfo(@$limit, @$limitstart, @showall, 1, $string, $sefstring, null);
                            // a special case : com_content  does not calculate pagination right
                            // for frontpage and blog, they include links shown at the bottom in the calculation of number of items
                            // For instance, with joomla sample data, the frontpage has only 5 articles
                            // but the view sets $limit to 9 !!!
                            if ($option == 'com_content' && isset($layout) && $layout == 'blog' || $option == 'com_content' && isset($view) && $view == 'frontpage') {
                                $listLimit = shGetDefaultDisplayNumFromURL($string, $includeBlogLinks = true);
                                $string = shSetURLVar($string, 'limit', $listLimit);
                                $string = shSortUrl($string);
                            }
                            // that's a new URL, so let's add it to DB and cache
                            _log('Created url based on non paginated base url:' . $string);
                            shAddSefUrlToDBAndCache($string, $sefstring, 0, $urlType);
                        }
                    }
                    if ($urlType == sh404SEF_URLTYPE_NONE) {
                        // If component has its own sef_ext plug-in included.
                        $shDoNotOverride = in_array($shOption, $sefConfig->shDoNotOverrideOwnSef);
                        if (shFileExists(sh404SEF_ABS_PATH . 'components/' . $option . '/sef_ext.php') && ($shDoNotOverride || !$shDoNotOverride && (!shFileExists(sh404SEF_ABS_PATH . 'components/com_sh404sef/sef_ext/' . $option . '.php') && !shFileExists(sh404SEF_ABS_PATH . 'components/' . $option . '/sef_ext/' . $option . '.php')))) {
                            // Load the plug-in file. V 1.2.4.s changed require_once to include
                            include_once sh404SEF_ABS_PATH . 'components/' . $option . '/sef_ext.php';
                            $_SEF_SPACE = $sefConfig->replacement;
                            $comp_name = str_replace('com_', '', $option);
                            $className = 'sef_' . $comp_name;
                            $sef_ext = new $className();
                            // V x : added default string in params
                            if (empty($sefConfig->defaultComponentStringList[$comp_name])) {
                                $title[] = getMenuTitle($option, null, isset($Itemid) ? @$Itemid : null, null, $shLanguage);
                            } else {
                                $title[] = $sefConfig->defaultComponentStringList[$comp_name];
                            }
                            // V 1.2.4.r : clean up URL BEFORE sending it to sef_ext files, to have control on what they do
                            // remove lang information, we'll put it back ourselves later
                            //$shString = preg_replace( '/(&|\?)lang=[a-zA-Z]{2,3}/iU' ,'', $string);
                            // V 1.2.4.t use original non-sef string. Some sef_ext files relies on order of params, which may
                            // have been changed by sh404SEF
                            $shString = preg_replace('/(&|\\?)lang=[a-zA-Z]{2,3}/iU', '', $shSaveString);
                            $finalstrip = explode("|", $sefConfig->stripthese);
                            $shString = str_replace('&', '&', $shString);
                            _log('Sending to own sef_ext.php plugin : ' . $shString);
                            $sefstring = $sef_ext->create($shString);
                            _log('Created by sef_ext.php plugin : ' . $sefstring);
                            $sefstring = str_replace("%10", "%2F", $sefstring);
                            $sefstring = str_replace("%11", $sefConfig->replacement, $sefstring);
                            $sefstring = rawurldecode($sefstring);
                            if ($sefstring == $string) {
                                if (!empty($shMosMsg)) {
                                    // V x 01/09/2007 22:48:01
                                    $string .= '?' . $shMosMsg;
                                }
                                $ret = shFinalizeURL($string);
                                $shMosConfig_locale = $shOrigLang;
                                _log('Returning shSefRelToAbs 5 with ' . $ret);
                                return $ret;
                            } else {
                                // V 1.2.4.p : sef_ext extensions for opensef/SefAdvance do not always replace '
                                $sefstring = str_replace('\'', $sefConfig->replacement, $sefstring);
                                // some ext. seem to html_special_chars URL ?
                                $sefstring = str_replace(''', $sefConfig->replacement, $sefstring);
                                // V w 27/08/2007 13:23:56
开发者ID:sangkasi,项目名称:joomla,代码行数:67,代码来源:sh404sef.class.php

示例8: shRemoveFromGETVarsList

shRemoveFromGETVarsList('option');
shRemoveFromGETVarsList('lang');
if (!empty($Itemid)) {
    shRemoveFromGETVarsList('Itemid');
}
if (!empty($limit)) {
    shRemoveFromGETVarsList('limit');
}
if (isset($limitstart)) {
    shRemoveFromGETVarsList('limitstart');
}
// start by inserting the menu element title (just an idea, this is not required at all)
$task = isset($task) ? $task : null;
$Itemid = isset($Itemid) ? $Itemid : null;
$shJCommentsName = shGetComponentPrefix($option);
$shJCommentsName = empty($shJCommentsName) ? getMenuTitle($option, null, $Itemid, null, $shLangName) : $shJCommentsName;
$shJCommentsName = empty($shJCommentsName) || $shJCommentsName == '/' ? 'Comments' : $shJCommentsName;
switch ($task) {
    case 'captcha':
        $title[] = $shJCommentsName;
        $title[] = 'captcha';
        break;
    case 'rss':
        $title[] = $shJCommentsName;
        $title[] = 'rss';
        break;
    case 'rss_full':
        $title[] = $shJCommentsName;
        $title[] = 'feed';
        $title[] = 'full';
        break;
开发者ID:DanyCan,项目名称:wisten.github.io,代码行数:31,代码来源:com_jcomments.php

示例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 ---------------------------
shRemoveFromGETVarsList('option');
shRemoveFromGETVarsList('view');
if (!empty($lang)) {
    shRemoveFromGETVarsList('lang');
}
if (isset($Itemid)) {
    shRemoveFromGETVarsList('Itemid');
}
$shTemp = getMenuTitle($option, null, $Itemid, null, $shLangName);
if (!empty($shTemp) && $shTemp != '/') {
    $title[] = $shTemp;
}
// V 1.2.4.t
// ------------------  standard plugin finalize function - don't change ---------------------------
if ($dosef) {
    $string = shFinalizePlugin($string, $title, $shAppendString, $shItemidString, isset($limit) ? @$limit : null, isset($limitstart) ? @$limitstart : null, isset($shLangName) ? @$shLangName : null);
}
// ------------------  standard plugin finalize function - don't change ---------------------------
开发者ID:sangkasi,项目名称:joomla,代码行数:31,代码来源:com_wrapper.php

示例10: isset

            }
        } else {
            $cat = $catData[$shLangName][$catId]['cat'];
            $sec = $catData[$shLangName][$catId]['sec'];
        }
        return !empty($cat);
    }
}
$task = isset($task) ? $task : null;
$id = isset($id) ? $id : null;
$Itemid = isset($Itemid) ? $Itemid : null;
$limit = isset($limit) ? $limit : null;
$limitstart = isset($limitstart) ? $limitstart : null;
// shumisha : insert news portal name from menu
$shNewsPortalName = shGetComponentPrefix($option);
$shNewsPortalName = empty($shNewsPortalName) ? getMenuTitle($option, @$task, $Itemid, '', $shLangName) : $shNewsPortalName;
$shNewsPortalName = empty($shNewsPortalName) || $shNewsPortalName == '/' ? 'News' : $shNewsPortalName;
// V 1.2.4.t
switch ($task) {
    case 'section':
        if ($sefConfig->shInsertNewsPortalName) {
            $title[] = $shNewsPortalName;
        }
        $sectionTitle = shGetNEWSPSection($id, $option, $shLangName);
        if (!empty($sectionTitle)) {
            $title[] = $sectionTitle;
            $title[] = '/';
            shRemoveFromGETVarsList('section');
        } else {
            $dosef = false;
        }
开发者ID:lautarodragan,项目名称:ideary,代码行数:31,代码来源:com_news_portal.php

示例11: empty

 case 'archive':
     $dosef = false;
     break;
 case 'frontpage':
     // new in J 1.5 : we already know this is not a real homepage, as otherwise the test on
     // $shHomePageFlag would have been triggered. So this is a view=frontpage used on
     // another page than home. If so, use menu title as a link
     if (!empty($format) && $format == 'feed') {
         // exception is rss feed
         $title[] = $format;
         if (!empty($type) && $format != $type) {
             $title[] = $type;
         }
     } else {
         $Itemid = empty($Itemid) ? null : $Itemid;
         $title[] = getMenuTitle($option, 'frontpage', $Itemid, '', $shLangName);
         shMustCreatePageId('set', true);
     }
     break;
 default:
     if (sh404SEF_PDF_DIR && $view == 'article' && !empty($format) && $format == 'pdf') {
         $title[] = sh404SEF_PDF_DIR;
         // insert pdf directory
         shMustCreatePageId('set', true);
     }
     if ($view == 'article' && !empty($layout) && $layout == 'form') {
         // submit new article
         $title[] = $sh_LANG[$shLangIso]['COM_SH404SEF_CREATE_NEW'];
         if (!empty($sectionid)) {
             $q = 'SELECT id, title FROM #__sections WHERE id = ' . $database->Quote($sectionid);
             $database->setQuery($q);
开发者ID:sangkasi,项目名称:joomla,代码行数:31,代码来源:com_content.php

示例12: array

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_newsfeeds', $shLangIso, 'COM_SH404SEF_CREATE_NEW_NEWSFEED');
// ------------------  load language file - adjust as needed ----------------------------------------
$shNewsfeedName = shGetComponentPrefix($option);
$shNewsfeedName = empty($shNewsfeedName) ? getMenuTitle($option, isset($view) ? $view : null, isset($Itemid) ? $Itemid : null, null, $shLangName) : $shNewsfeedName;
$shNewsfeedName = empty($shNewsfeedName) || $shNewsfeedName == '/' ? 'Newsfeed' : $shNewsfeedName;
if (!empty($shNewsfeedName)) {
    $title[] = $shNewsfeedName;
}
// V 1.2.4.t
$view = isset($view) ? $view : null;
$slugsModel = Sh404sefModelSlugs::getInstance();
switch ($view) {
    case 'newsfeed':
        if (!empty($catid)) {
            // V 1.2.4.q
            try {
                $title = $slugsModel->getCategorySlugArray('com_newsfeeds', $catid, shSEFConfig::CAT_ALL_NESTED_CAT, $useAlias = false, $insertId = false, $menuItemTitle = '', $shLangName);
            } catch (Exception $e) {
                ShlSystem_Log::error('sh404sef', '%s::%s::%d: %s', __CLASS__, __METHOD__, __LINE__, $e->getMessage());
开发者ID:alesconti,项目名称:FF_2015,代码行数:31,代码来源:com_newsfeeds.php

示例13: while

            do {
                // all categories and subcategories. We don't really need id, as path
                $title[] = ($sefConfig->shDMInsertCategoryId ? $DMtree[$shMosConfig_locale][$category_id]->id . $sefConfig->replacement : '') . $DMtree[$shMosConfig_locale][$category_id]->title;
                // will always be unique
                $category_id = $DMtree[$shMosConfig_locale][$category_id]->parent_id;
            } while ($category_id != 0);
        }
        return array_reverse($title);
    }
}
$task = isset($task) ? @$task : null;
$Itemid = isset($Itemid) ? @$Itemid : null;
// V 1.2.4.t
// shumisha : insert component name from menu
$shDocmanName = shGetComponentPrefix($option);
$shDocmanName = empty($shDocmanName) ? getMenuTitle($option, null, $Itemid, null, $shLangName) : $shDocmanName;
$shDocmanName = empty($shDocmanName) || $shDocmanName == '/' ? 'Files' : $shDocmanName;
// V 1.2.4.t
if ($sefConfig->shInsertDocmanName && !empty($shDocmanName)) {
    $title[] = $shDocmanName;
}
if (!empty($gid) && (strpos($task, 'doc_') !== false || $task == 'license_result')) {
    $docName = shDocmanDocumentName($gid, $option, $shLangName);
} else {
    $docName = '';
}
switch ($task) {
    case 'cat_view':
        if (!empty($gid)) {
            $title = array_merge($title, dm_sef_get_category_array($gid, $option, $shLangName));
        }
开发者ID:justinlyon,项目名称:scc,代码行数:31,代码来源:com_docman.php

示例14: isset

    // if Itemid in non-sef URL
    $shItemidString = $sefConfig->shAlwaysInsertItemid ? JText::_('COM_SH404SEF_ALWAYS_INSERT_ITEMID_PREFIX') . $sefConfig->replacement . $Itemid : '';
}
// collect probable url vars
$view = isset($view) ? $view : null;
$Itemid = isset($Itemid) ? $Itemid : null;
$id = isset($id) ? $id : null;
$catid = isset($catid) ? $catid : null;
// optional prefix
$shName = shGetComponentPrefix($option);
if (!empty($shName) && $shName != '/') {
    $title[] = $shName;
}
// joomla content models
$slugsModel = Sh404sefModelSlugs::getInstance();
$menuItemTitle = getMenuTitle(null, $view, isset($Itemid) ? $Itemid : null, '', $shLangName);
$uncategorizedPath = $sefConfig->slugForUncategorizedContact == shSEFConfig::COM_SH404SEF_UNCATEGORIZED_EMPTY ? '' : $menuItemTitle;
$slugsArray = array();
switch ($view) {
    case 'featured':
        if (!empty($menuItemTitle)) {
            $title[] = $menuItemTitle;
            $title[] = '/';
        } else {
            $dosef = false;
        }
        shMustCreatePageId('set', true);
        break;
    case 'category':
        // fetch cat name
        if (!empty($id)) {
开发者ID:srbsnkr,项目名称:sellingonlinemadesimple,代码行数:31,代码来源:com_contact.php

示例15: shRemoveFromGETVarsList

shRemoveFromGETVarsList('lang');
if (!empty($Itemid)) {
    shRemoveFromGETVarsList('Itemid');
}
if (!empty($limit)) {
    shRemoveFromGETVarsList('limit');
}
if (!empty($limitstart)) {
    shRemoveFromGETVarsList('limitstart');
}
// start by inserting the menu element title (just an idea, this is not required at all)
$task = isset($task) ? $task : null;
$Itemid = isset($Itemid) ? $Itemid : null;
// Get the component prefix that is configured in SH404
$prefix = shGetComponentPrefix($option);
$prefix = empty($prefix) ? getMenuTitle($option, $task, $Itemid, null, $shLangName) : $prefix;
$prefix = empty($prefix) || $prefix == '/' ? JText::_('COM_EASYSOCIAL_SH404_DEFAULT_ALIAS') : $prefix;
// Add the prefix
addPrefix($title, $prefix);
// If view is set, pass the url builders to the view
if (isset($view)) {
    $adapter = dirname(__FILE__) . '/' . strtolower($view) . '.php';
    // Probably the view has some custom stuffs to perform.
    if (JFile::exists($adapter)) {
        include $adapter;
    } else {
        // Add the view to the list of titles
        addView($title, $view);
        // If layout is set, pass the url builders to the view
        if (isset($layout)) {
            addLayout($title, $view, $layout);
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:31,代码来源:com_easysocial.php


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