GithubHelp home page GithubHelp logo

giovannisalmeri / yellow-burger Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 165 KB

Hamburger menu.

License: GNU General Public License v2.0

CSS 5.31% HTML 21.30% JavaScript 53.89% PHP 19.49%
datenstrom-yellow hamburger-menu

yellow-burger's People

Contributors

giovannisalmeri avatar

Watchers

 avatar  avatar

yellow-burger's Issues

burger.svg is not found / wrong path

Hello,

many thanks for the good work, I was looking for something like this.

There is a small problem on my web server. If the burger.svg remains in the source directory, it is only displayed on the "home" page, on all other pages the burger.svg is not found.

If the burger.svg is in the root directory and the source code is extended with a "/burger.svg" there are no problems.

<?php list($name, $pages, $level) = $this->yellow->getLayoutArguments() ?>
<?php if (!$pages) $pages = $this->yellow->content->top() ?>
<?php $this->yellow->page->setLastModified($pages->getModified()) ?>
<?php if (!$level): ?>
<?php $extensionLocation =  $this->yellow->system->get("coreServerBase").$this->yellow->system->get("coreExtensionLocation"); ?>
<a id="navigation-menu" href=""><img src="<?php echo $extensionLocation. '/burger.svg'; ?>" alt="<?php echo $this->yellow->language->getTextHtml("burgerMenu") ?>"></a>
<nav id="navigation-tree" data-sitename="<?php echo $this->yellow->system->getHtml('sitename') ?>">
<?php endif ?>
<ul>
<?php foreach ($pages as $page): ?>
<?php $children = $page->getChildren() ?>
<li>
<?php if ($page->get("layout") == "transit"): ?>
<span><?php echo $page->getHtml("titleNavigation") ?></span>
<?php else: ?>
<a<?php echo $page->isActive() ? " class=\"active\" aria-current=\"page\"" : "" ?> href="<?php echo $page->getLocation(true) ?>"><?php echo $page->getHtml("titleNavigation") ?></a>
<?php endif ?>
<?php if ($children->count()) { echo "\n"; $this->yellow->layout($name, $children, $level+1); } ?></li>
<?php endforeach ?>
</ul>
<?php if (!$level): ?>
</nav>
<div class="navigation-banner"></div>
<?php endif ?>

Screenshot 2024-07-13 215737

Greetings Silver

Open the navigation bar on the left instead of the right side of the page

Hello,

is there a possibility, I have not found anything in the css, to open the navigation bar on the right side? The mouse paths are too far when the burger menu is on the right, the navigation bar on the left and the browser scrollbars on the right.

Greetings Silver

Screenshot 2024-07-13 215713

That would be the wish...
Screenshot 2024-07-13 222523

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.