Ejemplo n.º 1
0
 function _reparent()
 {
     global $_Nav_unparented;
     $nodes = $_Nav_unparented;
     $_Nav_unparented = array();
     foreach ($nodes as $n) {
         Nav::_node($n['path'], $n['title'], $n['url']);
     }
 }
Ejemplo n.º 2
0
 public function update_nav($params = [])
 {
     Session::permit_admin();
     foreach ($params['parent'] as $doc_id => $parent_id) {
         $nav = Nav::read_by_doc($doc_id);
         Nav::update(['parent_doc_id' => $parent_id], $nav['id']);
     }
     foreach ($params['order'] as $doc_id => $sort_index) {
         $nav = Nav::read_by_doc($doc_id);
         Nav::update(['sort_order' => $sort_index], $nav['id']);
     }
     Render::json(['success' => TRUE]);
 }
Ejemplo n.º 3
0
 public function __invoke(array $data = [], $class = 'navbar-nav', $activeTab = null)
 {
     if (empty($this->getApplication()->getConfig()['navigation'])) {
         throw new \Exception('Необходимо прописать параметр "navigation" в файле конфигурации');
     }
     if (empty($data)) {
         $data = $this->getApplication()->getConfig()['navigation'];
     }
     if ($activeTab === null) {
         $activeTab = $this->getServiceManager()->get('Router')->getPath();
     }
     return parent::__invoke($data, $class, $activeTab);
 }
Ejemplo n.º 4
0
 public function actionStatus()
 {
     $moduleStatus = EnvUtil::getRequest("type");
     $module = EnvUtil::getRequest("module");
     if (Ibos::app()->getRequest()->getIsAjaxRequest()) {
         $status = 0;
         if ($moduleStatus == "disabled") {
             $status = 1;
         }
         $changeStatus = Module::model()->modify($module, array("disabled" => $status));
         Nav::model()->updateAll(array("disabled" => $status), "module = :module", array(":module" => $module));
         CacheUtil::update(array("setting", "nav"));
         ModuleUtil::updateConfig($module);
         $this->ajaxReturn(array("IsSuccess" => $changeStatus), "json");
     }
 }
Ejemplo n.º 5
0
 public function isMaxOrder()
 {
     //If menu is a child AND get maxOrder siblings
     if ($this->parent_id != 0) {
         $maxOrder = Nav::where('parent_id', '=', $this->parent_id)->where('id', '<>', $this->id)->max('order');
     } else {
         $maxOrder = Nav::where('parent_id', '=', 0)->where('id', '<>', $this->id)->max('order');
     }
     if (empty($maxOrder)) {
         return true;
     }
     //there are only one menu or one child
     if ($this->order > $maxOrder) {
         return true;
     }
     return false;
 }
Ejemplo n.º 6
0
 public static function getTopItems()
 {
     $navs = Nav::model()->findAll(array('order' => 'weight asc'));
     $items = array();
     foreach ($navs as $nav) {
         $item = array();
         if (DxdUtil::startWith($nav->url, 'http://') || DxdUtil::startWith($nav->url, 'https://')) {
             $item['url'] = $nav->url;
         } else {
             $item['url'] = Yii::app()->createUrl($nav->url);
         }
         if ($nav->activeRule) {
             $item['active'] = eval($nav->activeRule);
         }
         $item['label'] = $nav->title;
         $items[] = $item;
     }
     return $items;
 }
Ejemplo n.º 7
0
 private function runAdd($nav)
 {
     if (!isset($nav["disabled"])) {
         $nav["disabled"] = 1;
     }
     if (!isset($nav["targetnew"])) {
         $nav["targetnew"] = 0;
     }
     if (!isset($nav["type"]) || $nav["type"] == 0) {
         $nav["pageid"] = 0;
     } else {
         if ($nav["type"] == 1 && $nav["pageid"] == 0) {
             $nav["pageid"] = Page::model()->add(array("template" => "index", "content" => ""), true);
         }
     }
     if (isset($nav["type"]) && $nav["type"] == 1) {
         $nav["url"] = "main/page/index&pageid={$nav["pageid"]}&name={$nav["name"]}";
     }
     $navid = Nav::model()->add($nav, true);
     return $navid;
 }
Ejemplo n.º 8
0
 private function set_vars()
 {
     $this->navs = wp_get_nav_menus();
     $this->set_settings();
     $this->customizer = new Customizer();
     $this->middle = new Middle();
     Nav::init();
 }
Ejemplo n.º 9
0
use yii\helpers\Html;
use yii\grid\GridView;
use yii\bootstrap\nav;
/* @var $this yii\web\View */
/* @var $searchModel app\models\CoursesSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Courses';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="courses-index">
    <div class="row-fluid">
        <div class="col-md-4">

                    <!--Sidebar content-->
            <?php 
echo Nav::widget(['items' => [['url' => ['/site/index'], 'label' => 'Home', 'icon' => 'home'], ['url' => ['/admin/index'], 'label' => 'Admin', 'icon' => 'book']]]);
?>

                </div>


            <div class="col-md-8">

            <h1><?php 
echo Html::encode($this->title);
?>
</h1>
            <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>
Ejemplo n.º 10
0
 public function setNav()
 {
     $nav = new Nav();
     $nav->title = "首页";
     $nav->activeRule = 'return Yii::app()->controller->activeMenu=="site";';
     $nav->url = "/";
     $nav->save();
     $nav = new Nav();
     $nav->title = "课程";
     $nav->activeRule = 'return Yii::app()->controller->activeMenu=="course";';
     $nav->url = "/course";
     $nav->save();
     $nav = new Nav();
     $nav->title = "小组";
     $nav->activeRule = 'return Yii::app()->controller->activeMenu=="group";';
     $nav->url = "/group";
     $nav->save();
     $nav = new Nav();
     $nav->title = "资讯";
     $nav->activeRule = 'return Yii::app()->controller->activeMenu=="article";';
     $nav->url = "/cms/article";
     $nav->save();
     $nav = new Nav();
     $nav->title = "师资";
     $nav->activeRule = 'return Yii::app()->controller->activeMenu=="people";';
     $nav->url = "/cms/people";
     $nav->save();
 }
Ejemplo n.º 11
0
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer the ID of the model to be loaded
  */
 public function loadModel($id)
 {
     $model = Nav::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
Ejemplo n.º 12
0
 public function createItem($content, $options = null)
 {
     $li = parent::createItem($content, $options);
     $li->setAttrib('role', 'presentation');
     return $li;
 }
Ejemplo n.º 13
0
<?php

// main navigation
$controller = Yii::$app->controller ? Yii::$app->controller->id : null;
$module = Yii::$app->controller->module ? Yii::$app->controller->module->id : null;
$items = [['label' => 'Dashboard', 'url' => ['/site/index'], 'options' => ['title' => 'Dashboard'], 'active' => $controller == 'site'], ['label' => 'Projects', 'url' => ['/project/index'], 'options' => ['title' => 'Projects'], 'active' => $controller == 'project'], ['label' => 'Issues', 'url' => ['/issue/index'], 'options' => ['title' => 'Issues'], 'active' => $controller == 'issue'], ['label' => 'Activity', 'url' => ['/activity/index'], 'options' => ['title' => 'Activity'], 'active' => $controller == 'activity'], ['label' => 'Docs', 'url' => ['/docs/page'], 'options' => ['title' => 'Bugitor Documentation'], 'active' => $module == 'docs']];
if (\Yii::$app->user->can('user.admin')) {
    $items[] = ['label' => 'User Admin', 'url' => ['/user/admin'], 'options' => ['title' => 'User Administration'], 'active' => $module == 'user'];
}
if (Yii::$app->user->isGuest) {
    $items[] = ['label' => 'Login', 'url' => ['/user/login']];
} else {
    $items[] = '<li>' . Html::a('Logout', ['/user/logout'], ['data-method' => 'post']) . '</li>';
}
echo Nav::widget(['id' => 'main-nav', 'encodeLabels' => false, 'options' => ['class' => 'nav navbar-nav navbar-main-menu'], 'activateItems' => true, 'activateParents' => true, 'dropDownCaret' => '<span class="caret"></span>', 'items' => $items]);
Ejemplo n.º 14
0
}
if ($sess_userid == "") {
    ?>
  <input type="button" onClick="self.location='../shared/loginform.php?RET=../reports/index.php'" value="<?php 
    echo $navLoc->getText("login");
    ?>
" class="navbutton">
<?php 
} else {
    ?>
  <input type="button" onClick="self.location='../shared/logout.php'" value="<?php 
    echo $navLoc->getText("logout");
    ?>
" class="navbutton">
<?php 
}
?>
<br /><br />
<?php 
Nav::node('reportlist', 'Report List', '../reports/index.php');
if (isset($_SESSION['rpt_Report'])) {
    Nav::node('results', "Report Results", '../reports/run_report.php?type=previous');
}
$helpurl = "javascript:popSecondary('../shared/help.php";
if (isset($helpPage)) {
    $helpurl .= "?page=" . $helpPage;
}
$helpurl .= "')";
Nav::node('help', 'Help', $helpurl);
Nav::display("{$nav}");
Ejemplo n.º 15
0
 public static function getNotAllowed()
 {
     $notAllowed = array();
     //get all Nav with a page as resource
     $navs = Nav::where('navigable_type', '=', get_class())->get();
     $allowed = array();
     foreach ($navs as $nav) {
         $allowed[] = $nav->navigable->id;
     }
     //get all Pages
     $objects = self::all();
     //store each resources
     foreach ($objects as $object) {
         if (!in_array($object->id, $allowed)) {
             $notAllowed[] = $object;
         }
     }
     return $notAllowed;
 }
Ejemplo n.º 16
0
<?php

$navigations = Nav::getNavigations();
?>
@foreach( $navigations as $nav )
		@if( count( $nav->children() ) != 0 )
			<li class="dropdown">
				@if(Config::get('core::display.onepage'))
				<a href="#{{ $nav->navigable()->first()->ancor }}" class="dropdown-toggle" data-toggle="dropdown">{{ $nav->title() }} <b class="caret"></b></a>
				@else
				<a href="{{ URL::to( (Localizr::getURLLocale()) . $nav->url() ) }}" class="dropdown-toggle" data-toggle="dropdown">{{ $nav->title() }} <b class="caret"></b></a>
				@endif

				<ul class="dropdown-menu">
				@foreach( $nav->children() as $child )
					<li {{ ( Request::is( $child->url() ) ? ' class="active"' : '' ) }}><a href="{{ URL::to( $child->url() ) }}">{{ $child->title() }}</a></li>
				@endforeach
				</ul>
		@else
			@if(Config::get('core::display.onepage'))
				<li {{ ( Request::is( $nav->url() ) ? ' class="active"' : '' ) }}><a href="#{{ $nav->navigable()->first()->ancor }}">{{ $nav->title() }}</a>
			@else	
			<li {{ ( Request::is( $nav->url() ) ? ' class="active"' : '' ) }}><a href="{{ URL::to( $nav->url() ) }}">{{ $nav->title() }}</a>
			@endif
		@endif
			</li>
@endforeach
Ejemplo n.º 17
0
<?php

Nav::model()->deleteAllByAttributes(array("module" => "workflow"));
Notify::model()->deleteAllByAttributes(array("module" => "workflow"));
NotifyMessage::model()->deleteAllByAttributes(array("module" => "workflow"));
CacheUtil::set("notifyNode", null);
Node::model()->deleteAllByAttributes(array("module" => "workflow"));
NodeRelated::model()->deleteAllByAttributes(array("module" => "workflow"));
AuthItem::model()->deleteAll("name LIKE 'workflow%'");
AuthItemChild::model()->deleteAll("child LIKE 'workflow%'");
MenuCommon::model()->deleteAllByAttributes(array("module" => "workflow"));
$settingFields = "wfremindbefore,wfremindafter,sealfrom";
Setting::model()->deleteAll("FIND_IN_SET(skey,'{$settingFields}')");
Menu::model()->deleteAllByAttributes(array("m" => "workflow"));
Nav::model()->deleteAllByAttributes(array("module" => "workflow"));
Node::model()->deleteAllByAttributes(array("module" => "workflow"));
NodeRelated::model()->deleteAllByAttributes(array("module" => "workflow"));
AuthItem::model()->deleteAll("name LIKE 'workflow%'");
AuthItemChild::model()->deleteAll("child LIKE 'workflow%'");
$db = Ibos::app()->db->createCommand();
$prefix = $db->getConnection()->tablePrefix;
$tables = $db->setText("SHOW TABLES LIKE '" . str_replace("_", "\\_", $prefix . "flow_data_%") . "'")->queryAll(false);
foreach ($tables as $table) {
    $tableName = $table[0];
    !empty($tableName) && $db->dropTable($tableName);
}
Ejemplo n.º 18
0
 public function navLayDown()
 {
     $nav = new Nav();
     $nav->laydown();
 }
Ejemplo n.º 19
0
    public function initCache()
    {
        // !!! DATABASE CACHE !!!
        //Cache Model::Menu
        //Cache::forget('DB_Menu');
        /*Cache::rememberForever('DB_Menu', function()
        		{
        		    return Menu::where('parent_id','=',0)->orderBy('order','ASC')->get();
        		});*/
        //Cache Model::Locale
        Cache::rememberForever('DB_LocaleFrontEnable', function () {
            //Get all data in database
            $locales = Locale::where('enable', '=', 1)->where('is_publish', '=', 1)->get();
            //Preapre data to extract by id
            $data = array();
            foreach ($locales as $l) {
                $data[] = $l->id;
            }
            return $data;
        });
        //Cache Model::Nav
        Cache::rememberForever('DB_Nav', function () {
            return Nav::where('parent_id', '=', 0)->orderBy('order', 'ASC')->get();
        });
        //Cache Model::Resource('name')
        Cache::rememberForever('DB_AdminResourceName', function () {
            //Get all data in database
            $resources = Resource::where('in_admin_ui', '=', 1)->get();
            //Preapre data to extract by id
            $data = array();
            foreach ($resources as $r) {
                $data[$r->id] = $r->name;
            }
            return $data;
        });
        Cache::rememberForever('DB_AdminResource', function () {
            //Get all data in database
            return Resource::where('in_admin_ui', '=', 1)->get();
        });
        Cache::rememberForever('DB_AdminResourceNavigable', function () {
            //Get all data in database
            return Resource::where('navigable', '=', 1)->where('in_admin_ui', '=', 1)->get();
        });
        // Get all Locales enableds in the table
        Cache::rememberForever('DB_LocalesEnabled', function () {
            return Locale::where('enable', 1)->where('is_publish', 1)->get();
        });
        Cache::rememberForever('DB_AdminBlockTypes', function () {
            //Get all data in database
            return BlockType::all();
        });
        //Cache Model::Mosaique('name')
        //Cache::forget('DB_Mosaique');
        /*Cache::rememberForever('DB_Mosaique', function()
        		{
        			//Get all data in database
        		    return Mosaique::all();
        		});*/
        //Cache Model::Option
        Cache::rememberForever('DB_Option', function () {
            return Option::all();
        });
        //Cache Model::Urls
        Cache::rememberForever('DB_Urls', function () {
            $data = DB::select('
		    	SELECT translations.i18n_id , translations.text , translations.locale_id 
				FROM translations
				INNER JOIN i18n_types ON i18n_types.name = ?
				INNER JOIN i18n ON i18n.i18n_type_id = i18n_types.id AND translations.i18n_id = i18n.id
		    ', array('url'));
            //$data = Translation::i18n()->where('i18n_type_id','=',I18nType::where('name','=','url')->first()->id)->get
            $datas = array();
            foreach ($data as $d) {
                $datas[] = array('i18n_id' => $d->i18n_id, 'url' => $d->text, 'locale_id' => $d->locale_id);
            }
            return $datas;
        });
    }
Ejemplo n.º 20
0
 public function handleNav($event)
 {
     $navs = Nav::model()->fetchAllByAllPid();
     Syscache::model()->modify("nav", $navs);
 }
Ejemplo n.º 21
0
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    BookReader is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with BookReader.  If not, see <http://www.gnu.org/licenses/>.
*/
$id = urlencode($_REQUEST['id']);
// Sanitize since we put this value in the page
$flippyURL = "/texts/flipbook/flippy.php?id={$id}";
Nav::bar('Unsupported browser', 'home', null, null, 1, null, '<meta http-equiv="refresh" content="10;url=http://www.archive.org' . $flippyURL . '">', '', true);
?>


<div class="box">
<p>
Sorry, but our new viewer does not work in this browser yet.
</p>

<p>
Either go to our <a href="<?php 
echo $flippyURL;
?>
">old viewer</a>,  
or download <a href="http://www.mozilla.com/en-US/firefox/">Firefox</a> or
  <a href="http://www.microsoft.com/windows/internet-explorer/download-ie.aspx">IE7 (or higher)</a>.
Ejemplo n.º 22
0
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    BookReader is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with BookReader.  If not, see <http://www.gnu.org/licenses/>.
*/
$id = urlencode($_REQUEST['id']);
// Sanitize since we put this value in the page
$flippyURL = "https://archive.org/texts/flipbook/flippy.php?id={$id}";
Nav::head('Unsupported browser', array('headExtra' => '<meta http-equiv="refresh" content="10;url=' . $flippyURL . '">'));
?>


<div class="well well-sm">
  <p>
    Sorry, but our new viewer does not work in this browser.
  </p>

  <p>
    Either go to our <a href="<?php 
echo $flippyURL;
?>
">old viewer</a>,
    or download <a href="https://www.mozilla.com/en-US/firefox/">Firefox</a> or
    <a href="http://www.microsoft.com/windows/internet-explorer/download-ie.aspx">IE8 (or higher)</a>.
Ejemplo n.º 23
0
<?php

/**
 * File: 404.php
 * User: zacharydubois
 * Date: 2016-01-05
 * Time: 12:06
 * Project: Digital-Footprint-Profile
 */
namespace dfp;

// Create objects.
$config = new Config();
$view = new View($config);
$nav = new Nav($config);
// Tell view the nav array.
$view->navArray($nav->navArray());
// Tell view what template and content.
$view->tpl('404');
$view->content(array('title' => '404 | Digital Footprint Profile'));
header("HTTP/1.1 404 Not Found");
echo $view->render();
Ejemplo n.º 24
0
require_once "../classes/Localize.php";
$loc = new Localize(OBIB_LOCALE, $tab);
if (isset($_SESSION['postVars']['type'])) {
    $type = $_SESSION['postVars']['type'];
} elseif (isset($_REQUEST['type'])) {
    $type = $_REQUEST['type'];
} else {
    header('Location: ../reports/index.php');
    exit(0);
}
list($rpt, $err) = Report::create_e($type);
if ($err) {
    header('Location: ../reports/index.php');
    exit(0);
}
Nav::node('reportcriteria', 'Report Criteria');
include "../shared/header.php";
#****************************************************************************
#*  getting form vars
#****************************************************************************
require "../shared/get_form_vars.php";
echo '<h1>' . $loc->getText($rpt->title()) . '</h1>';
if (isset($_REQUEST['msg'])) {
    echo '<p><font class="error">' . H($_REQUEST['msg']) . '</font></p>';
}
?>

<form name="reportcriteriaform" method="GET" action="../reports/run_report.php">
<input type="hidden" name="type" value="<?php 
echo H($rpt->type());
?>
<?php

/**
 * File: index.php
 * User: zacharydubois
 * Date: 2016-01-04
 * Time: 20:47
 * Project: Digital-Footprint-Profile
 */
namespace dfp;

// Create objects.
$config = new Config();
$view = new View($config);
$nav = new Nav($config);
// Create nav (Index is empty).
$nav->setActive('');
// Tell view the nav array.
$view->navArray($nav->navArray());
// Tell view what template and content.
$view->tpl('index');
$view->content(array('title' => 'Welcome | Digital Footprint Profile', 'sessionLink' => Utility::buildFullLink($config, true, 'session')));
echo $view->render();
Ejemplo n.º 26
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     // delete
     $navigation = Nav::find($id);
     if (empty($navigation)) {
         return Redirect::to('admin/navigation')->with('success', Lang::get('admin.navigation_notfind'));
     }
     //delete all translation
     foreach ($navigation->i18n()->translations() as $translation) {
         if (!$translation->delete()) {
             return Redirect::to('admin/navigation')->with('error', Lang::get('admin.navigation_translation_delete_fail'));
         }
     }
     //equilibrate branche
     //here equilibrate orders of menu !
     //if parentid = 0, set all else other !
     $navigations = Nav::where('parent_id', $navigation->parent_id)->where('id', '<>', $navigation->id)->orderBy('order', 'ASC')->get();
     for ($count_navigation = count($navigations), $i = 0; $i < $count_navigation; $i++) {
         $navigations[$i]->order = $i + 1;
         $navigations[$i]->save();
     }
     //delete children if exists
     foreach ($navigation->children() as $child) {
         $child->delete();
     }
     // delete
     if ($navigation->delete()) {
         //track user
         parent::track('delete', 'Navigation', $navigation->id);
         Cache::forget('DB_Nav');
         return Redirect::to('admin/navigation')->with('success', Lang::get('admin.navigation_delete_success'));
     }
     return Redirect::to('admin/navigation')->with('success', Lang::get('admin.navigation_delete_fail'));
 }
$loc = new Localize(OBIB_LOCALE, $tab);
$navLoc = new Localize(OBIB_LOCALE, 'navbars');
if (isset($_SESSION['postVars']['type'])) {
    $type = $_SESSION['postVars']['type'];
} elseif (isset($_REQUEST['type'])) {
    $type = $_REQUEST['type'];
} else {
    header('Location: ../reports/index.php');
    exit(0);
}
list($rpt, $err) = Report::create_e($type);
if ($err) {
    header('Location: ../reports/index.php');
    exit(0);
}
Nav::node('reportcriteria', $navLoc->getText('reportsCriteria'));
include "../shared/header.php";
#****************************************************************************
#*  getting form vars
#****************************************************************************
require "../shared/get_form_vars.php";
echo '<h1>' . $loc->getText($rpt->title()) . '</h1>';
if (isset($_REQUEST['msg'])) {
    echo '<p><font class="error">' . H($_REQUEST['msg']) . '</font></p>';
}
?>

<form name="reportcriteriaform" method="GET" action="../reports/run_report.php">
<input type="hidden" name="type" value="<?php 
echo H($rpt->type());
?>
 * User: zacharydubois
 * Date: 2016-01-04
 * Time: 20:49
 * Project: Digital-Footprint-Profile
 */
namespace dfp;

// Config
$config = new Config();
// Session
$session = new Session($config);
if ($session->getTMP('allowNext') !== true) {
    header('Location: ' . Utility::buildFullLink($config, false, 'session'));
} else {
    // View
    $nav = new Nav($config);
    $nav->setActive('list');
    $view = new View($config);
    $view->tpl('list');
    $view->navArray($nav->navArray(true));
    // Parse
    $parse = new Parse();
    // List array
    $list = array();
    $total = 0;
    $flagged = 0;
    foreach ($session->get('posts') as $post) {
        $content = preg_replace('/(\\n)/', ' ', $post['content']);
        $parse->parse($content);
        $score = $parse->score();
        $tags = $parse->tags();
Ejemplo n.º 29
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php";
$App = new App();
$Nav = new Nav();
$Menu = new Menu();
include $App->getProjectCommon();
# All on the same line to unclutter the user's desktop'
include "include.php";
$pageTitle = "Integration with EMF and Other EMF Editors";
$html = file_get_contents('210-emf-integration.html');
$Nav->setLinkList(array());
$App->AddExtraHtmlHeader('
	<script type="text/javascript">
	function init() {
		var docName = "210-emf-integration.html";
	    initTocMenu(docName);
		highlightCurrentSection(docName);
	}
	
	function initTocMenu(ActiveSubTocElementId){
		var menu = document.getElementById("leftnav");
	
		var chapters = menu.children;
		addHideSubsectionFunction(chapters);
		var subToc = document.getElementById(\'subToc_\' + ActiveSubTocElementId);
		if(subToc) {
			subToc.style.display = "block";
			subToc.previousElementSibling.children[0].style.display = "none"
Ejemplo n.º 30
0
			</div>
		</nav>
		<!-- //MENU************************************************************************-->


		<!-- CONTENEDOR GENERAL***********************************************************-->
		<div class="contenedor contenedor-body ">

			<!--base-->
			<div class="base">

				<?php 
//Nav::titulo titulo dinámico
$pagina = basename($_SERVER['REQUEST_URI']);
$titulos = Nav::titulo($pagina);
?>

				<!--titulo-->
				<div class="titulo col-xs-12 col-sm-12 col-md-12 ol-lg-12">
					<?php 
if ($titulos[0] == 'CARRITO') {
    ?>
						<img src="assets/images/carrito-title.png" alt="">
					<?php 
}
?>

					<?php 
if ($titulos[0] == 'CARRITO') {
    echo '<div class="texto-carrito">';