Skip to content

Instantly share code, notes, and snippets.

View iainurquhart's full-sized avatar

Iain Urquhart iainurquhart

View GitHub Profile
if (ee()->extensions->active_hook('taxonomy_updated'))
{
ee()->extensions->call('taxonomy_updated', $this->tree_id, $update_type, $data);
}
{exp:taxonomy:set_node tree_id="1" entry_id="{entry_id}"}
{exp:taxonomy:next_node tree_id="1" entry_id="{entry_id}"}
<h3>Next node</h3>
<a href="{next_node_url}">{next_node_label}</a>
{if no_next_node}
<p>No next node!</p>
{/if}
{/exp:taxonomy:next_node}
{exp:taxonomy:prev_node tree_id="1" entry_id="{entry_id}"}
<h3>Previous node</h3>
<p><a href="{prev_node_url}">{prev_node_label}</a></p>
{if no_prev_node}
<p>No previous node!</p>
{/if}
{/exp:taxonomy:prev_node}
<div class="section-container auto" data-section>
{exp:taxonomy:nav
tree_id="2"
display_root="no"
style="linear"
}
{if node_level == 1}
<section{if node_level_count == 1} class="active"{/if}>
<p class="title" data-section-title>
<a href="#panel{node_level_count}">{node_title}</a>
<nav class="top-bar">
<ul class="title-area">
<li class="name">
<h1><a href="{path=}">Top Site Label </a></h1>
</li>
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>
<section class="top-bar-section">
{exp:taxonomy:nav
tree_id="2"
<ul class="breadcrumbs">
{exp:taxonomy:breadcrumbs tree_id="2" entry_id="{entry_id}"}
<li{if here} class="current"{/if}><a href="{node_url}">{node_title}</a></li>
{/exp:taxonomy:breadcrumbs}
</ul>
{exp:channel:entries channel="some_pages" limit="1"}
{exp:taxonomy:set_node
tree_id="2"
entry_id="{entry_id}"
}
<p>You are here:
{exp:taxonomy:breadcrumbs}
{if here}
@iainurquhart
iainurquhart / gist:8481777
Created January 17, 2014 21:18
example of image widget using P&T assets, you'll need to update the ACT id for outputting the image thumb, relevant to your install.
<table class="mainTable entry_widget_notop" border="0" cellspacing="0" cellpadding="0" data-index="0">
<tbody>
<tr>
<td style="width: 100px;">
<?php if($options['image_id']):?>
<img src="/?ACT=40&file_id=<?=$options['image_id']?>&size=100x100&hash=1361909881">
<?php endif ?>
<p><a href="#" class="thumbnail_trigger">Add File</a></p>
# Description:
# Shows an image the specified Goonie somewhere.
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands: