本文整理汇总了PHP中cblink函数的典型用法代码示例。如果您正苦于以下问题:PHP cblink函数的具体用法?PHP cblink怎么用?PHP cblink使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了cblink函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addNewTab
function addNewTab($params = NULL)
{
if ($params == NULL) {
$params = $_POST;
}
if (empty($params['name'])) {
e(lang("tab_name_is_empty"));
}
if (!$this->validURL($params['link_name'])) {
return false;
}
if (!error()) {
$menuName = $params['name'];
$cbLink = cblink(array('name' => strtolower($params['link_name'])));
if ($cbLink) {
$fullURL = $cbLink;
} elseif ($params['noBASEURL']) {
$fullURL = $params['link_name'];
} else {
$fullURL = BASEURL . "/" . $params['link_name'];
}
$resultArray = array("name" => $menuName, "link" => $fullURL, "this" => strtolower($menuName));
return $resultArray;
}
}
示例2: replace
/**
* Function used to replace content
* of email template with variables
* it can either be email subject or message content
* @param : Content STRING
* @param : array ARRAY => array({somevar}=>$isvar)
*/
function replace($content, $array)
{
//Common Varialbs
$com_array = array('{website_title}' => TITLE, '{baseurl}' => BASEURL, '{website_url}' => BASEURL, '{date_format}' => cbdate(DATE_FORMAT), '{date}' => cbdate(), '{username}' => username(), '{userid}' => userid(), '{date_year}' => cbdate("Y"), '{date_month}' => cbdate("m"), '{date_day}' => cbdate("d"), '{signup_link}' => cblink(array('name' => 'signup')), '{login_link}' => cblink(array('name' => 'login')));
if (is_array($array) && count($array) > 0) {
$array = array_merge($com_array, $array);
} else {
$array = $com_array;
}
foreach ($array as $key => $val) {
$var_array[] = '/' . $key . '/';
$val_array[] = $val;
}
return preg_replace($var_array, $val_array, $content);
}
示例3: tags
/**
* Function used to turn tags into links
*/
function tags($input, $type, $sep = ', ')
{
//Exploding using comma
$tags = explode(',', $input);
$count = 1;
$total = count($tags);
$new_tags = '';
foreach ($tags as $tag) {
$params = array('name' => 'tag', 'tag' => trim($tag), 'type' => $type);
$new_tags .= '<a href="' . cblink($params) . '">' . $tag . '</a>';
if ($count < $total) {
$new_tags .= $sep;
}
$count++;
}
return $new_tags;
}
示例4: setting_up_collections
/**
* Setting links up in my account Edited on 12 march 2014 for collections links
*/
function setting_up_collections()
{
global $userquery, $Cbucket;
$per = $userquery->get_user_level(userid());
// Adding My Account Links
if (isSectionEnabled('collections')) {
$userquery->user_account[lang('Collections')] = array(lang('add_new_collection') => cblink(array('name' => 'manage_collections', 'extra_params' => 'mode=add_new')), lang('manage_collections') => cblink(array('name' => 'manage_collections')), lang('manage_favorite_collections') => cblink(array('name' => 'manage_collections', 'extra_params' => 'mode=favorite')));
}
// Adding Search Type
//if(isSectionEnabled('collections'))
//$Cbucket->search_types['collections'] = "cbcollection";
// Adding Collection links in Admin Area
if ($per['collection_moderation'] == "yes") {
$Cbucket->AdminMenu['Collections'] = array(lang('Manage Collections') => 'collection_manager.php', lang('Manage Categories') => 'collection_category.php', lang('Flagged Collections') => 'flagged_collections.php');
}
// Adding Collection links in Cbucket Class
$Cbucket->links['collections'] = array('collections.php', 'collections/');
$Cbucket->links['manage_collections'] = array('manage_collections.php', 'manage_collections.php');
$Cbucket->links['edit_collection'] = array('manage_collections.php?mode=edit_collection&cid=', 'manage_collections.php?mode=edit_collection&cid=');
$Cbucket->links['manage_items'] = array('manage_collections.php?mode=manage_items&cid=%s&type=%s', 'manage_collections.php?mode=manage_items&cid=%s&type=%s');
$Cbucket->links['user_collections'] = array('user_collections.php?mode=uploaded&user=', 'user_collections.php?mode=uploaded&user=');
$Cbucket->links['user_fav_collections'] = array('user_collections.php?mode=favorite&user=', 'user_collections.php?mode=favorite&user=');
}
示例5: get_user_menu_links
/**
* get user menu links
*
* these links are listed on user menu found on right top on default template
* you can move the menu however.
*
* @param NULL
* @return Array of links
*/
function get_user_menu_links()
{
$array = array('videos' => array('name' => lang('Videos'), 'link' => cblink(array('name' => 'videos'))));
$new_array = apply_filters($array, 'user_menu_links');
return $new_array;
}
示例6: displayCollpasedListCateogry
function displayCollpasedListCateogry($catArray, $params)
{
$html = '';
foreach ($catArray as $catID => $cat) {
if ($_GET['cat'] == $catID || empty($_GET['cat']) && $cat['category_id'] == 'all') {
$selected = "selected";
} else {
$selected = "";
}
if ($params['class']) {
$class = $params['class'];
}
$html .= "<li class='cbCategoryItem " . $class . $selected . "'";
if ($params['id']) {
$html .= " id = '" . $params['id'] . "'";
}
$html .= ">";
$id = '"#' . $catID . '_categories"';
if (array_key_exists($catID, $_COOKIE)) {
$property = $_COOKIE[$catID];
if ($property == "expanded") {
$display = "block";
}
if ($property == "collapsed") {
$display = "none";
}
} else {
$display = "none";
}
if ($cat['children']) {
$html .= "<span id='" . $cat['category_id'] . "_toggler' alt='" . $cat['category_id'] . "_categories' class='CategoryToggler " . $display . "' onclick='toggleCategory(this);'> </span>";
}
$html .= "<a href='" . cblink(array("name" => "category", "data" => $cat, "type" => $params['type'])) . "'>" . $cat['category_name'] . "</a>";
if ($cat['children']) {
$html .= "<ul id='" . $catID . "_categories' class='sub_categories' style='display:" . $display . "'>";
$html .= $this->displayCollpasedListCateogry($cat['children'], $params);
$html .= "</ul>";
}
$html .= "</li>";
}
return $html;
}
示例7: rss_feeds
/**
* Function used to generate RSS FEED links
*/
function rss_feeds($params)
{
/**
* setting up the feeds arrays..
* if you want to call em in your functions..simply call the global variable $rss_feeds
*/
$rss_link = cblink(array("name" => "rss"));
$rss_feeds = array();
$rss_feeds[] = array("title" => "Recently added videos", "link" => $rss_link . "recent");
$rss_feeds[] = array("title" => "Most Viewed Videos", "link" => $rss_link . "views");
$rss_feeds[] = array("title" => "Top Rated Videos", "link" => $rss_link . "rating");
$rss_feeds[] = array("title" => "Videos Being Watched", "link" => $rss_link . "watching");
$rss_feeds = apply_filters($rss_feeds, 'rss_feeds');
$funcs = get_functions('rss_feeds');
if (is_array($funcs)) {
foreach ($funcs as $func) {
return $func($params);
}
}
if ($params['link_tag']) {
foreach ($rss_feeds as $rss_feed) {
echo "<link rel=\"alternate\" type=\"application/rss+xml\"\n\t\t\t\ttitle=\"" . $rss_feed['title'] . "\" href=\"" . $rss_feed['link'] . "\" />\n";
}
}
}
示例8: sprintf
$content['html'] .= '</div>';
} else {
$content['html'] = '<div align="center"><em>' . sprintf(lang('user_no_subscriptions'), $u['username']) . '</em></div>';
}
break;
case "subscribers":
$limit = config('users_items_subscribers');
$subscribers = $userquery->get_user_subscribers_detail($u['userid'], $limit);
if ($subscribers) {
foreach ($subscribers as $subscriber) {
assign('user', $subscriber);
assign('channelUser', 'subscribers');
$content['html'] .= Fetch("/blocks/user.html");
}
$content['html'] .= '<div align="right" class="clearfix channelAjaxMoreLink subscribersMoreLink" style="clear:both; display:block;">';
$content['html'] .= '<a href="' . cblink(array("name" => "user_subscribers")) . $u['username'] . '">' . lang('more') . '</a>';
$content['html'] .= '</div>';
} else {
$content['html'] = '<div align="center"><em>' . sprintf(lang('user_no_subscribers'), $u['username']) . '</em></div>';
}
break;
case "info":
break;
}
if ($content) {
echo json_encode($content);
}
break;
case "viewCollectionRating":
$cid = mysql_clean($_POST['cid']);
$returnedArray = $cbcollection->collection_voters($cid);
示例9: displayCollpasedListCateogry
function displayCollpasedListCateogry($catArray, $params)
{
$html = '';
foreach ($catArray as $catID => $cat) {
if ($_GET['cat'] == $catID || empty($_GET['cat']) && $cat['category_id'] == 'all') {
$selected = "selected";
} else {
$selected = "";
}
if ($params['class']) {
$class = $params['class'];
}
$class = form_val($class);
$add_class = form_val($add_class);
//$selected = form_val($selected);
$html .= "<li class='cbCategoryItem " . $class . $selected . $add_class . "'";
if ($params['id']) {
$html .= " id = '" . $params['id'] . "'";
}
$html .= ">";
$id = '"#' . $catID . '_categories"';
if (array_key_exists($catID, $_COOKIE)) {
$property = $_COOKIE[$catID];
if ($property == "expanded") {
$display = "block";
}
if ($property == "collapsed") {
$display = "none";
}
} else {
$display = "none";
}
if ($cat['children']) {
$html .= "<span id='" . $cat['category_id'] . "_toggler' data-target='#cat" . $cat['category_id'] . "' data-toggle='collapse' class='CategoryToggler " . $display . "' aria-expanded='false' aria-controls='cat" . $cat['category_id'] . "'> </span>";
}
$html .= "<a class='" . $toggle . "' '" . $data_toggle . "' href='" . cblink(array("name" => "category", "data" => $cat, "type" => $params['type'])) . "'>" . $cat['category_name'] . $add_caret . "</a>";
if ($cat['children']) {
$html .= "<ul id='cat" . $catID . "' class='collapse'>";
$html .= $this->displayCollpasedListCateogry($cat['children'], $params);
$html .= "</ul>";
}
$html .= "</li>";
}
return $html;
}
示例10: mysql_clean
}
//Login User
if (isset($_POST['login'])) {
$username = $_POST['username'];
$username = mysql_clean(clean($username));
$password = mysql_clean(clean($_POST['password']));
$remember = false;
if ($_POST['rememberme']) {
$remember = true;
}
if ($userquery->login_user($username, $password, $remember)) {
if (cb_get_functions('login_success')) {
cb_call_functions('login_success');
}
if ($_COOKIE['pageredir']) {
redirect_to($_COOKIE['pageredir']);
} else {
redirect_to(cblink(array('name' => 'my_account')));
}
}
}
//Checking Ban Error
if (!isset($_POST['login']) && !isset($_POST['signup'])) {
if (@$_GET['ban'] == true) {
$msg = lang('usr_ban_err');
}
}
subtitle(lang("signup"));
//Displaying The Template
template_files('signup.html');
display_it();
示例11: content_55e4454d54e731_02331131
function content_55e4454d54e731_02331131($_smarty_tpl)
{
if (isset($_smarty_tpl->tpl_vars['myAccountLinks'])) {
$_smarty_tpl->tpl_vars['myAccountLinks'] = clone $_smarty_tpl->tpl_vars['myAccountLinks'];
$_smarty_tpl->tpl_vars['myAccountLinks']->value = $_smarty_tpl->tpl_vars['userquery']->value->my_account_links();
$_smarty_tpl->tpl_vars['myAccountLinks']->nocache = null;
$_smarty_tpl->tpl_vars['myAccountLinks']->scope = 0;
} else {
$_smarty_tpl->tpl_vars['myAccountLinks'] = new Smarty_variable($_smarty_tpl->tpl_vars['userquery']->value->my_account_links(), null, 0);
}
if (isset($_smarty_tpl->tpl_vars['leftMenuLinks'])) {
$_smarty_tpl->tpl_vars['leftMenuLinks'] = clone $_smarty_tpl->tpl_vars['leftMenuLinks'];
$_smarty_tpl->tpl_vars['leftMenuLinks']->value = array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 6);
$_smarty_tpl->tpl_vars['leftMenuLinks']->nocache = null;
$_smarty_tpl->tpl_vars['leftMenuLinks']->scope = 0;
} else {
$_smarty_tpl->tpl_vars['leftMenuLinks'] = new Smarty_variable(array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 6), null, 0);
}
?>
<div class="container">
<!--<div class="cb-box row">
<?php
if (isset($_smarty_tpl->tpl_vars['sorting_links'])) {
$_smarty_tpl->tpl_vars['sorting_links'] = clone $_smarty_tpl->tpl_vars['sorting_links'];
$_smarty_tpl->tpl_vars['sorting_links']->value = sorting_links();
$_smarty_tpl->tpl_vars['sorting_links']->nocache = null;
$_smarty_tpl->tpl_vars['sorting_links']->scope = 0;
} else {
$_smarty_tpl->tpl_vars['sorting_links'] = new Smarty_variable(sorting_links(), null, 0);
}
?>
<h4 class="smaller lighter pull-left"><?php
echo smarty_lang(array('code' => "Browsing All Photos"), $_smarty_tpl);
?>
: </h4>
<div class="photopadding col-md-6">
<div class="btn-group">
<?php
if ($_GET['sorting']) {
?>
<?php
$_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['name']->_loop = false;
$_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
$_smarty_tpl->tpl_vars['name']->_loop = true;
$_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
?>
<?php
if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['time'])) {
?>
<button class="btn btn-default" type="button">
<?php
echo $_smarty_tpl->tpl_vars['name']->value;
?>
</button>
<button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<?php
}
?>
<?php
}
?>
<?php
} else {
?>
<button class="btn btn-default" type="button">
Recent
</button>
<button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<?php
}
?>
<ul role="menu" class="dropdown-menu">
<?php
$_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['name']->_loop = false;
$_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
$_smarty_tpl->tpl_vars['name']->_loop = true;
$_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
?>
<li><a href="<?php
echo cblink(array('name' => 'sort', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'photos'), $_smarty_tpl);
//.........这里部分代码省略.........
开发者ID:abhinay100,项目名称:clipbucket_app,代码行数:101,代码来源:47b237f16a58ca0b8f294d2156931fab5f6510b8.file.photos.html.php
示例12: content_56afd78d1fea15_55283541
function content_56afd78d1fea15_55283541($_smarty_tpl)
{
?>
<?php
if ($_smarty_tpl->tpl_vars['userquery']->value->udetails['soclid'] != '') {
?>
<?php
if (isset($_smarty_tpl->tpl_vars["usr_head_thumb"])) {
$_smarty_tpl->tpl_vars["usr_head_thumb"] = clone $_smarty_tpl->tpl_vars["usr_head_thumb"];
$_smarty_tpl->tpl_vars["usr_head_thumb"]->value = (string) $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb('', '', userid());
$_smarty_tpl->tpl_vars["usr_head_thumb"]->nocache = null;
$_smarty_tpl->tpl_vars["usr_head_thumb"]->scope = 0;
} else {
$_smarty_tpl->tpl_vars["usr_head_thumb"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb('', '', userid()), null, 0);
}
?>
<?php
} else {
?>
<?php
if (isset($_smarty_tpl->tpl_vars["usr_head_thumb"])) {
$_smarty_tpl->tpl_vars["usr_head_thumb"] = clone $_smarty_tpl->tpl_vars["usr_head_thumb"];
$_smarty_tpl->tpl_vars["usr_head_thumb"]->value = (string) $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb('', 'small', userid());
$_smarty_tpl->tpl_vars["usr_head_thumb"]->nocache = null;
$_smarty_tpl->tpl_vars["usr_head_thumb"]->scope = 0;
} else {
$_smarty_tpl->tpl_vars["usr_head_thumb"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb('', 'small', userid()), null, 0);
}
?>
<?php
}
?>
<div id="quick_container">
<div id="quicklist_box">
</div>
</div>
<?php
if (isset($_smarty_tpl->tpl_vars['logged_in_user'])) {
$_smarty_tpl->tpl_vars['logged_in_user'] = clone $_smarty_tpl->tpl_vars['logged_in_user'];
$_smarty_tpl->tpl_vars['logged_in_user']->value = $_smarty_tpl->tpl_vars['userquery']->value->get_user_details(userid());
$_smarty_tpl->tpl_vars['logged_in_user']->nocache = null;
$_smarty_tpl->tpl_vars['logged_in_user']->scope = 0;
} else {
$_smarty_tpl->tpl_vars['logged_in_user'] = new Smarty_variable($_smarty_tpl->tpl_vars['userquery']->value->get_user_details(userid()), null, 0);
}
if (isset($_smarty_tpl->tpl_vars['searchPage'])) {
$_smarty_tpl->tpl_vars['searchPage'] = clone $_smarty_tpl->tpl_vars['searchPage'];
$_smarty_tpl->tpl_vars['searchPage']->value = $_GET['query'];
$_smarty_tpl->tpl_vars['searchPage']->nocache = null;
$_smarty_tpl->tpl_vars['searchPage']->scope = 0;
} else {
$_smarty_tpl->tpl_vars['searchPage'] = new Smarty_variable($_GET['query'], null, 0);
}
?>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="navbar-container clearfix">
<div class="navbar-header">
<button type="button" class="navbar-toggle navig-resp-bg" data-toggle="collapse" data-target="#khulja-sim-sim">
<!--<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span> -->
</button>
<button type="button" class="navbar-toggle nav-toggle search-resp-bg" data-toggle="collapse" data-target="#navbar-search-collapse">
<!-- <span class="glyphicon glyphicon-search"></span> -->
</button>
<a class="navbar-brand cb-logo" href="<?php
echo $_smarty_tpl->tpl_vars['baseurl']->value;
?>
"><?php
echo $_smarty_tpl->tpl_vars['website_title']->value;
?>
</a>
</div>
<?php
echo ANCHOR(array('place' => 'mature_content'), $_smarty_tpl);
?>
<?php
if (isset($_smarty_tpl->tpl_vars['head_menu'])) {
$_smarty_tpl->tpl_vars['head_menu'] = clone $_smarty_tpl->tpl_vars['head_menu'];
$_smarty_tpl->tpl_vars['head_menu']->value = cb_menu();
$_smarty_tpl->tpl_vars['head_menu']->nocache = null;
$_smarty_tpl->tpl_vars['head_menu']->scope = 0;
} else {
$_smarty_tpl->tpl_vars['head_menu'] = new Smarty_variable(cb_menu(), null, 0);
}
?>
<div class="responsive-search collapse" id="navbar-search-collapse">
<!--<form class="" role="search" action="<?php
echo $_smarty_tpl->tpl_vars['baseurl']->value;
?>
">-->
<form class="navbar-form navbar-left no-border" role="search" action="<?php
echo cblink(array('name' => 'search_result'), $_smarty_tpl);
?>
">
<div class="input-group cbsearchtype">
//.........这里部分代码省略.........
开发者ID:reactvideos,项目名称:Website,代码行数:101,代码来源:0bb2b4a7950177c772107f1dddb828f9cbf5f716.file.header.html.php
示例13: content_55e5e4ce90b655_79574654
//.........这里部分代码省略.........
"><?php
echo $_smarty_tpl->tpl_vars['website_title']->value;
?>
</a>
</div>
<?php
echo ANCHOR(array('place' => 'mature_content'), $_smarty_tpl);
?>
<?php
echo ANCHOR(array('place' => 'premium_button'), $_smarty_tpl);
?>
<?php
if (isset($_smarty_tpl->tpl_vars['head_menu'])) {
$_smarty_tpl->tpl_vars['head_menu'] = clone $_smarty_tpl->tpl_vars['head_menu'];
$_smarty_tpl->tpl_vars['head_menu']->value = cb_menu();
$_smarty_tpl->tpl_vars['head_menu']->nocache = null;
$_smarty_tpl->tpl_vars['head_menu']->scope = 0;
} else {
$_smarty_tpl->tpl_vars['head_menu'] = new Smarty_variable(cb_menu(), null, 0);
}
?>
<div class="responsive-search collapse" id="navbar-search-collapse">
<!--<form class="" role="search" action="<?php
echo $_smarty_tpl->tpl_vars['baseurl']->value;
?>
">-->
<form class="navbar-form navbar-left no-border" role="search" action="<?php
echo cblink(array('name' => 'search_result'), $_smarty_tpl);
?>
">
<div class="input-group cbsearchtype">
<input type="text" class="form-control" name="query" placeholder="search keyword here" value="<?php
echo get_form_val('query', true);
?>
" id="query">
<div class="input-group-btn">
<input type="hidden" name="type" class="type" value="<?php
if (isset($_GET['type'])) {
echo $_GET['type'];
} else {
?>
videos<?php
}
?>
" id="type">
<button tabindex="-1" data-toggle="dropdown" class="btn btn-default dropdown-toggle search-drop-btn" type="button">
<span class="search-type"><?php
if ($_GET['type']) {
echo $_GET['type'];
} else {
?>
Videos<?php
}
?>
</span>
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<?php
开发者ID:abhinay100,项目名称:bucket_app,代码行数:67,代码来源:cc118dd1140262d114eee6c3dab11707ad6b2223.file.header.html.php
示例14: Esgin
| @ Author : Murat Esgin (lavinya http://www.videoizlepaylas.com )
| @ Software : Video Media Sitemap for ClipBucket , © PHPBucket.com
**********************************************************
*/
require 'includes/config.inc.php';
'<?xml version="1.0" encoding="utf-8"?>' . "\n";
header("Content-type: text/xml; charset=utf-8");
?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName><?php
echo TITLE;
?>
</ShortName>
<Description><?php
echo $row['description'];
?>
</Description>
<Url type="text/html" method="get" template="<?php
echo cblink(array('name' => 'search_result'));
?>
?query={searchTerms}"/>
<Image width="16" height="16"><?php
echo BASEURL;
?>
/favicon.ico</Image>
<InputEncoding>UTF-8</InputEncoding>
<SearchForm><?php
echo BASEURL;
?>
</SearchForm>
</OpenSearchDescription>
示例15: my_account_links
/**
* My Account links
*/
function my_account_links()
{
$array[lang('account')] = array(lang('my_account') => 'myaccount.php', lang('block_users') => 'edit_account.php?mode=block_users', lang('user_change_pass') => 'edit_account.php?mode=change_password', lang('user_change_email') => 'edit_account.php?mode=change_email', lang('com_manage_subs') => 'edit_account.php?mode=subscriptions');
$array[lang('user_channel_profiles')] = array(lang('account_settings') => 'edit_account.php?mode=account', lang('user_profile_settings') => 'edit_account.php?mode=profile', lang('change_avatar') => 'edit_account.php?mode=avatar_bg', lang('change_bg') => 'edit_account.php?mode=avatar_bg');
if (isSectionEnabled('videos')) {
$array[lang('videos')] = array(lang('uploaded_videos') => 'manage_videos.php', lang('user_fav_videos') => 'manage_videos.php?mode=favorites');
}
if (isSectionEnabled('groups')) {
$array[lang('groups')] = array(lang('grp_groups_title') => 'manage_groups.php', lang('user_create_group') => cblink(array('name' => 'create_group')), lang('grp_joined_groups') => 'manage_groups.php?mode=joined');
}
if (isSectionEnabled('playlists')) {
$array[lang('playlists')] = array(lang('manage_playlists') => 'manage_playlists.php', lang('video_playlists') => 'manage_playlists.php?mode=manage_video_playlist');
global $cbvid;
$builtin_playlists = $cbvid->builtin_playlists;
if ($builtin_playlists) {
foreach ($builtin_playlists as $playlist) {
$pid = $playlist['playlist_id'];
$category = $playlist['category'];
$name = lang($category);
$array[lang('playlists')][$category] = 'manage_playlists.php?' . 'mode=edit_playlist' . '&pid=' . $pid . '&category=' . $category;
}
}
}
$array[lang('messages')] = array(lang('inbox') => 'private_message.php?mode=inbox', lang('notifications') => 'private_message.php?mode=notification', lang('sent') => 'private_message.php?mode=sent', lang('title_crt_new_msg') => cblink(array('name' => 'compose_new')));
if (isSectionEnabled('channels')) {
$array[lang('contacts')] = array(lang('com_manage_contacts') => 'manage_contacts.php?mode=manage', lang('add_contact_list') => 'manage_contacts.php?mode=new_group');
}
if (count($this->user_account) > 0) {
foreach ($this->user_account as $key => $acc) {
if (array_key_exists($key, $array)) {
foreach ($acc as $title => $link) {
$array[$key][$title] = $link;
}
} else {
$array[$key] = $acc;
}
}
//$array = array_merge($array,$this->user_account);
}
return $array;
}