This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="section sticky_nav"> | |
<div class="filter_nav"> | |
<ul> | |
{!-- category 2 -- a post type --} | |
{!-- build url so far --} | |
{exp:stash:set name="filter_base1"}{site_url}{segment_1}{if router_blog_name != ""}/{router_blog_name}{/if}/{if router_cat1 != ""}{router_cat1}{if:else}all{/if}{/exp:stash:set} | |
<li class="{if router_cat2_category_url_title == ''}active{/if}"><a href="{exp:stash:filter_base1 random}/all/">All Results</a></li> | |
{exp:channel:categories category_group="3" style="linear"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Field: Returning an array or object as a variable, for instance in a fieldtype | |
ee()->load->library('handle_manager'); | |
$results = ee()->db->get('table_mapping')->results(); | |
$table_pattern = array( | |
"table_data" => ee()->handle_manager->register($results) // Returns a handle, e.x.: {&100} | |
); | |
ee()->TMPL->parse_variables($tagdata, array($table_pattern)); | |
{!-- Take the array of data in the table_data variable and pass it as a parameter to the plugin --} | |
{meta_table} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| FUEL NAVIGATION: An array of navigation items for the left menu in the admin | |
|-------------------------------------------------------------------------- | |
*/ | |
$config['nav']['site'] = array( | |
'site/articles' => lang('module_site_articles'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ext:lg_replace:haystack needles="{exp:channel_images:images entry_id="{entry_id}" backspace="1"}image_{image_id}|{/exp:channel_images:images}{videos}video_{entry_id}|{/videos}"} | |
{exp:article_pagination:show_page | |
token="page_break" | |
page="{get:article_page}"} | |
{article_body} | |
{/exp:article_pagination:show_page} | |
{/ext:lg_replace:haystack} | |
{exp:channel_images:images entry_id="{entry_id}"} | |
{ext:lg_replace:replacement needle="image_{image_id}"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!$account_exists) // user doesn't exist in exp_members table, so we will create an EE account | |
{ | |
$this->debug_print("Using LDAP for account creation..."); | |
$unique_id = $FNS->random('encrypt'); | |
$join_date = $LOC->now; | |
$sql = "INSERT INTO exp_members SET ". | |
"username = '$given_username', ". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* Hooked HTML Table Generating Class | |
* | |
* @package Wallace | |
* @subpackage Libraries | |
* @author Isaac Raway | |
* @link http://metasushi.com/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:lg_replace:haystack needles="{embed:image_needles}"} | |
{exp:weblog:entries | |
weblog="{embed:weblog}" | |
dynamic="off" | |
limit="1" | |
status="open" | |
disable="{global:disabled_params}" | |
category="{ss:current_cat_id}" | |
track_views="one" | |
entry_id="{embed:entry_id}"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$xml_result = new SimpleXMLElement($W->return_data); | |
var_dump($xml_result); | |
echo "is_array = " . is_array($xml_result->entry) . "<br/>"; | |
echo "count = " . count($xml_result->entry) . "<br/>"; | |
?> | |
output: | |
object(SimpleXMLElement)[311] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array | |
'entry_id' => string 'entry_id' (length=8) | |
'status' => string 'status' (length=6) | |
'weblog' => string 'weblog' (length=6) | |
'weblog_id' => string 'weblog_id' (length=9) | |
'weblog_short_name' => string 'weblog_short_name' (length=17) | |
'url_title' => string 'url_title' (length=9) | |
'author_id' => string 'author_id' (length=9) | |
'edit_link' => string 'edit_link' (length=9) | |
'old_step_no' => string 'old_step_no' (length=11) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
<table class="lokiTable workflowSteps" id="workflowSteps"><tbody> | |
<tr> | |
<th class="first">Step</th> | |
<th class="commands">Commands</th> | |
</tr> | |
<?php function step($step, $hidden, $statuses, $member_groups) { ?> | |
<tr class="step" <?php if($hidden == 'hidden') echo 'id="stepTemplate" style="display: none;"'; ?>> | |
<td> | |
<div class="itemWrapper"> |
OlderNewer