Git Product home page Git Product logo

pico-breadcrumbs's People

Contributors

badbreze avatar nebman avatar takamichie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pico-breadcrumbs's Issues

urldecode() for Parts of URL without a Page

Cause u can redirect for example /search/%query% to /search I think it's necessary to urldecode the crumb.name.

Code-Line 94:

$name = isset($this->page_names[$url]) ?  $this->page_names[$url] : (isset($this->page_names[$url.'/']) ? $this->page_names[$url.'/'] : urldecode($crumb));

better embeding Code for Bootstrap3

I create a embed Code especially for Bootstrap 3.

{% if breadcrumbs %}
<div class="breadcrumb-holder">
    <div class="container">
        <ul itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="breadcrumb">
            {% if is_front_page == false %}
            <li><a href="/" itemprop="url"><span itemprop="title">Startseite</span></a></li>
            {% endif %}
            {% for crumb in breadcrumbs %}
            <li itemprop="child" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
                {% if (loop.length - loop.index) == 0 %}
                <span itemprop="title">{{ crumb.name }}</span>
                {% else %}
                <a href="{{ crumb.url }}" itemprop="url"><span itemprop="title">{{ crumb.name }}</span></a>
                {% endif %}
            </li>
            {% endfor %}
        </ul>
    </div>
</div>
{% endif %}

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.