Что нового

Добавить ссылку в навигацию phpMelody

  • Автор темы Автор темы Lady Clare
  • Дата начала Дата начала
L

Lady Clare

Гость
Подскажите,в админке менеджера меню нет,как в шаблон прописать не знаю.Вернее как знаю не работает.Сам tpl Показать / Скрыть текст<!DOCTYPE html><!--[if IE 7 | IE 8]><html class="ie" dir="ltr" lang="en"><![endif]--><!--[if !(IE 7) | !(IE 8)  ]><!--><html dir="ltr" lang="en"><!--<![endif]--><head><meta charset="UTF-8" /><meta name="viewport" content="width=1024,maximum-scale=1.0"><title>{$meta_title}</title><meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=edge,chrome=1">  {if $no_index == '1'}<meta name="robots" content="noindex,nofollow"><META NAME="GOOGLEBOT" CONTENT="NOINDEX, NOFOLLOW">{/if}<meta name="title" content="{$meta_title}" /><meta name="keywords" content="{$meta_keywords}" /><meta name="description" content="{$meta_description}" /><link rel="shortcut icon" href="{$smarty.const._URL}/{$smarty.const._UPFOLDER}/favicon.ico">{if $tpl_name == "video-category"}<link rel="alternate" type="application/rss+xml" title="{$meta_title}" href="{$smarty.const._URL}/rss.php?c={$cat_id}" />{elseif $tpl_name == "video-top"}<link rel="alternate" type="application/rss+xml" title="{$meta_title}" href="{$smarty.const._URL}/rss.php?feed=topvideos" />{elseif $tpl_name == "article-category"}<link rel="alternate" type="application/rss+xml" title="{$meta_title}" href="{$smarty.const._URL}/rss.php?c={$cat_id}&feed=articles" />{/if}<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]--><link rel="stylesheet" type="text/css" media="screen" href="{$smarty.const._URL}/templates/{$template_dir}/css/bootstrap.min.css"><link rel="stylesheet" type="text/css" media="screen" href="{$smarty.const._URL}/templates/{$template_dir}/css/bootstrap-responsive.min.css"><!--[if lt IE 9]><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script><![endif]--><link rel="stylesheet" type="text/css" media="screen" href="{$smarty.const._URL}/templates/{$template_dir}/css/new-style.css"><link rel="stylesheet" type="text/css" media="screen" href="{$smarty.const._URL}/templates/{$template_dir}/css/uniform.default.min.css"><link href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700&subset=all" rel="stylesheet" type="text/css"><!--[if IE]>{literal}<link rel="stylesheet" type="text/css" media="screen" href="{/literal}{$smarty.const._URL}{literal}/templates/{/literal}{$template_dir}{literal}/css/new-style-ie.css">{/literal}<link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css"><link href="http://fonts.googleapis.com/css?family=Open+Sans:400italic" rel="stylesheet" type="text/css"><link href="http://fonts.googleapis.com/css?family=Open+Sans:700" rel="stylesheet" type="text/css"><link href="http://fonts.googleapis.com/css?family=Open+Sans:700italic" rel="stylesheet" type="text/css"><![endif]--><script type="text/javascript"> var MELODYURL = "{$smarty.const._URL}"; var MELODYURL2 = "{$smarty.const._URL2}"; var TemplateP = "{$smarty.const._URL}/templates/{$template_dir}"; var _LOGGEDIN_ = {if $logged_in} true {else} false {/if};</script>{literal}<script type="text/javascript"> var pm_lang = {    lights_off: "{/literal}{$lang.lights_off}{literal}",    lights_on: "{/literal}{$lang.lights_on}{literal}",    validate_name: "{/literal}{$lang.validate_name}{literal}",    validate_username: "{/literal}{$lang.validate_username}{literal}",    validate_pass: "{/literal}{$lang.validate_pass}{literal}",    validate_captcha: "{/literal}{$lang.validate_captcha}{literal}",    validate_email: "{/literal}{$lang.validate_email}{literal}",    validate_agree: "{/literal}{$lang.validate_agree}{literal}",    validate_name_long: "{/literal}{$lang.validate_name_long}{literal}",    validate_username_long: "{/literal}{$lang.validate_username_long}{literal}",    validate_pass_long: "{/literal}{$lang.validate_pass_long}{literal}",    validate_confirm_pass_long: "{/literal}{$lang.validate_confirm_pass_long}{literal}",    choose_category: "{/literal}{$lang.choose_category}{literal}",     validate_select_file: "{/literal}{$lang.upload_errmsg10}{literal}",     validate_video_title: "{/literal}{$lang.validate_video_title}{literal}",    onpage_delete_favorite_confirm: "{/literal}{$lang.myfavorites_delete_alert_confirm}{literal}",    please_wait: "{/literal}{$lang.please_wait}{literal}",    // upload video page    swfupload_status_uploaded: "{/literal}{$lang.swfupload_status_uploaded}{literal}",    swfupload_status_pending: "{/literal}{$lang.swfupload_status_pending}{literal}",    swfupload_status_queued: "{/literal}{$lang.swfupload_status_queued}{literal}",    swfupload_status_uploading: "{/literal}{$lang.swfupload_status_uploading}{literal}",    swfupload_file: "{/literal}{$lang.swfupload_file}{literal}",    swfupload_btn_select: "{/literal}{$lang.swfupload_btn_select}{literal}",    swfupload_btn_cancel: "{/literal}{$lang.swfupload_btn_cancel}{literal}",    swfupload_status_error: "{/literal}{$lang.swfupload_status_error}{literal}",    swfupload_error_oversize: "{/literal}{$lang.swfupload_error_oversize}{literal}",    swfupload_friendly_maxsize: "{/literal}{$upload_limit}{literal}" }</script>{/literal}<script type="text/javascript" src="{$smarty.const._URL}/js/swfobject.js"></script>{if $facebook_image_src != ''}    <link rel="image_src" href="{$facebook_image_src}" />    <meta property="og:title" content="{$meta_title}" />    <meta property="og:url" content="{$video_data.video_href}" />    <meta property="og:description" content="{$meta_description}" />    <meta property="og:image" content="{$facebook_image_src}" />    {if $video_data.source_id == 1}        <link rel="video_src" href="{$smarty.const._URL2}/videos.php?vid={$video_data.uniq_id}"/>        <meta property="og:video:url" content="{$smarty.const._URL2}/videos.php?vid={$video_data.uniq_id}" />    {/if}{/if}<style type="text/css">{$theme_customizations}</style>{if isset($mm_header_inject)}{$mm_header_inject}{/if}</head>{if $tpl_name == "video-category"}<body class="video-category catid-{$cat_id} page-{$gv_pagenumber}">{elseif $tpl_name == "video-watch"}<body class="video-watch videoid-{$video_data.id} author-{$video_data.author_user_id} source-{$video_data.source_id}{if $video_data.featured == 1} featured{/if}{if $video_data.restricted == 1} restricted{/if}">{elseif $tpl_name == "article-category"}<body class="article-category catid-{$cat_id}">{elseif $tpl_name == "article-read"}<body class="article-read articleid-{$article.id} author-{$article.author} {if $article.featured == 1} featured{/if}{if $article.restricted == 1} restricted{/if}">{elseif $tpl_name == "page"}<body class="page pageid-{$page.id} author-{$page.author}">{else}<body>{/if}{if $maintenance_mode}    <div class="alert alert-danger" align="center"><strong>Currently running in maintenance mode.</strong></div>{/if}{if isset($mm_body_top_inject)}{$mm_body_top_inject}{/if}<header class="wide-header" id="overview"><div class="row-fluid fixed960">    <div class="span3">    &nbs
 
Lady Clare, а в чем собственно проблема? Ищем похожую ссылку -смотрим как она вставленна и по аналогии вставляем.
 
trolb,В этом и проблема,после правки белая страница.
 
может белая страница потому что часть символов > сохраняются как &
 
trolb,Всё нашла,белая страница была из за того что класс я не прописала.class="wide-nav-link"Можно закрывать.Мало ли кому надо будет.Дополнительные ссылки в меню навигации прописываются вида.<li><a href="/talk/forum.php" class="wide-nav-link">Наш Форум</a></li>
 
Верх