snipt

Ctrl+h for KB shortcuts

HTML+PHP

Drupal breadcrumb block

1
2
3
<?php if($breadcrumb) { ?>
    <div class="breadcrumb"><?php print $breadcrumb . $title; ?></div>
<?php } ?>
https://snipt.net/embed/73ed56b00fe5c739b84ed0aa0851d703/
/raw/73ed56b00fe5c739b84ed0aa0851d703/
73ed56b00fe5c739b84ed0aa0851d703
html+php
HTML+PHP
3
2019-08-20T06:39:14
True
False
False
/api/public/snipt/25886/
drupal-breadcrumb-block
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> <span class="k">if</span><span class="p">(</span><span class="nv">$breadcrumb</span><span class="p">)</span> <span class="p">{</span> <span class="cp">?&gt;</span> </span><span id="L-2"><a name="L-2"></a> <span class="p">&lt;</span><span class="nt">div</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;breadcrumb&quot;</span><span class="p">&gt;</span><span class="cp">&lt;?php</span> <span class="k">print</span> <span class="nv">$breadcrumb</span> <span class="o">.</span> <span class="nv">$title</span><span class="p">;</span> <span class="cp">?&gt;</span><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span> </span><span id="L-3"><a name="L-3"></a><span class="cp">&lt;?php</span> <span class="p">}</span> <span class="cp">?&gt;</span> </span></pre></div> </td></tr></table>
breadcrumb, drupal