Edit $menu[$i]['href']

Edit $menu[$i]['href']

QA

Edit $menu[$i]['href']

답변 2

본문

Hi im new to gnuboard, I build 2 website with a single codebase that have the same database and deployed in two different web sites.  

 

how can i edit this link ['href']

https://example.com

 

#edit

Im learning gnuboard for a project

 

이 질문에 댓글 쓰기 :

답변 2

You can modify the links at here.

/adm/menu_list.php

This is the source code

<?php 

for ($i=1; $i < $menu_cnt; $i++) {

if(!$menu[$i]['gr_id']) continue;

// Do not output excluded menus

if($is_top_menu && in_array($menu[$i]['gr_id'], $menu_top_list)) continue;

?>

              

<li class="menu-li <?php echo $menu[$i]['on'];?>">

<a class="menu-a nav-height" href="<?php echo $menu[$i]['href'];?>" <?php echo $menu[$i]['target']; ?>>

<span id="mu-link">

<p data-hover="<?php echo $menu[$i]['name'];?>"><?php echo $menu[$i]['name'];?></p>

</span>

<?php if($menu[$i]['new'] == "new") { ?>

<i class="fa fa-bolt new"></i>

<?php } ?>

</a>

<?php if($menu[$i]['is_sub']) { //Is Sub Menu ?>

<div class="sub-slide sub-1div">

<ul class="sub-1dul">

<?php for($j=0; $j < count($menu[$i]['sub']); $j++) { ?>

<?php if($menu[$i]['sub'][$j]['line']) { //separator line ?>

<li class="sub-1line"><a><?php echo $menu[$i]['sub'][$j]['line'];?></a></li>

 <?php } ?>

 

<li class="sub-1dli <?php echo $menu[$i]['sub'][$j]['on'];?>">

 <!-- main nav down hover-->    

<a href="<?php echo $menu[$i]['sub'][$j]['href'];?>" class="sub-1da<?php echo ($menu[$i] ['sub'][$j]['is_sub']) ?' sub-icon' : '';?>" <?php echo $menu[$i]['sub'][$j]['target '];?>>

<?php echo $menu[$i]['sub'][$j]['name'];?>

<?php if($menu[$i]['sub'][$j]['new'] == "new") { ?>

<i class="fa fa-bolt sub-1new"></i>

<?php } ?>

</a>

<!-- end main nav down hover-->

All navigation variables work next to the last item and when clicked, another website page is displayed.

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 1,284
© SIRSOFT
현재 페이지 제일 처음으로