This file contains hidden or 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:channel:entries channel="static" limit="1" sort="asc"{if segment_2} require_entry="yes"{/if}} | |
{if no_results}{redirect="404"}{/if} | |
<html> | |
<head> | |
{exp:taxonomy:set_node tree_id="1" key="entry_id" val="{entry_id}" var_prefix="this_"} | |
{styles} | |
<title>{title} {if segment_2}// {exp:taxonomy:breadcrumbs titles_only="yes" reverse="yes" include_here="no" delimiter=" :: "}{/if} | |
</title> |
This file contains hidden or 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
[-- START CONFIGURATION --] | |
web safe= true | |
web safe delimiter=_ | |
text style= html | |
text encoding= utf8 | |
font family = helvetica | |
newline = unix | |
media folder= images/@LESSON_NAME | |
image format=png |
This file contains hidden or 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:channel:entries | |
channel="pages_about" | |
limit="1" | |
status="open" | |
disable="{global:param_disable_default}" | |
require_entry="yes"} {if no_results}{redirect="404"}{/if} | |
{gv_html_open} | |
<title>{if title_override}{title_override}{if:else}{title}{/if}</title> | |
<meta name="description" content="{if meta_description}{meta_description}{if:else} {gv_global_meta_description}{/if}" /> | |
<meta name="keywords" content="{if meta_keywords}{keywords}{if:else}{gv_global_meta_keywords}{/if}" /> |
This file contains hidden or 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 | |
// hacks to ft.matrix.php to allow import of matrix data via channel_entries api | |
// which doesn't call the validate() method in the fieldtype | |
// -------------------------------------------------------------------------------- | |
// CHANGE 1 | |
// update save method which is currently: | |
/** |
This file contains hidden or 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:channel:entries limit="1"} | |
<!-- set the current node --> | |
{exp:taxonomy:set_node tree_id="1" key="entry_id" val="{entry_id}" var_prefix="this_"} | |
<!-- Le Nav --> | |
<nav> | |
{exp:taxonomy:nav auto_expand="yes"} | |
<a href="{node_url}">{node_title}</a> | |
{/exp:taxonomy:nav} |
This file contains hidden or 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
<!-- | |
PARENT TEMPLATE, /pages for example | |
--> | |
{exp:channel:entries limit="1" disable="member_data|pagination|categories"} | |
<!-- set the node --> | |
{exp:taxonomy:set_node tree_id="1" key="entry_id" val="{entry_id}" var_prefix="this_"} | |
<!-- stash the nav --> |
This file contains hidden or 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 id="<?=$field_name?>_pointee_img" class="pointee_wrapper"> | |
<div class="inset"> | |
<? if($fixed_img_url != ''):?> | |
<img src="<?=$fixed_img_url?>" class="pointee_image" /> | |
<div class="pointee_map_marker pointee_<?=$color?>"></div> | |
<? elseif($display_image !=''): ?> | |
<img src="<?=$display_image?>" class="pointee_image" /> | |
<div class="pointee_map_marker pointee_<?=$color?>"></div> | |
<? else: ?> | |
<p class="pointee_get_started"><?=lang('upload_select_prompt')?></p> |
This file contains hidden or 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:channel:entries limit="1" disable="member_data|pagination|categories"} | |
<!-- set the node --> | |
{exp:taxonomy:set_node tree_id="1" key="entry_id" val="{entry_id}" var_prefix="this_"} | |
<!-- top nav --> | |
<ul id="top_nav"> | |
{exp:taxonomy:nav style="linear" depth="1"} | |
<li><a href="{node_url}"{if node_active || node_active_parent && node_level} class="active"{/if}>{node_title}</a></li> | |
{/exp:taxonomy:nav} |
This file contains hidden or 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 | |
// From line 316 pi.gwcode_catmenu.php | |
// subquery does not take into consideration the channel requested: | |
if($this->custom_fields == 'no') { | |
$sql = 'SELECT c.site_id, c.cat_id, c.group_id, c.parent_id, c.cat_name, c.cat_url_title, c.cat_description, c.cat_image, c.cat_order, ' . | |
'(' . | |
'SELECT COUNT(ct.entry_id) ' . | |
'FROM exp_channel_titles ct, exp_category_posts cp ' . | |
'WHERE cp.entry_id=ct.entry_id AND ct.status IN (\''.$status.'\') AND cp.cat_id=c.cat_id' . | |
') AS entry_count ' . |
This file contains hidden or 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
// search for 'Add Gypsy Test' in mod.super_search and you'll see where they've catered for gypsy. | |
// add this method before or after that conditional | |
// ------------------------------------- | |
// Add our global fields | |
// ------------------------------------- | |
if( $this->EE->config->item('global_field_ids') ) | |
{ | |
$sql = "/* Super Search get fields */ SELECT |