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
<title>{title}{site_name}</title> | |
<meta name='keywords' content='{meta_keywords}' /> | |
<meta name='description' content='{meta_description}' /> | |
<link rel='canonical' href='{canonical_url}' /> | |
<meta property="og:url" content="{canonical_url}"/> | |
<meta property="og:title" content="{entry_title}"/> | |
<meta property="og:description" content="{extra:desc}"/> | |
<meta property="og:image" content="{extra:image}"/> |
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
/** | |
* Make sure url-titles look good for non-english entries also | |
*/ | |
public function on_foreign_character_conversion_array() | |
{ | |
return array( | |
'216' => 'o', // ø | |
'248' => 'o', // Ø | |
'198' => 'a', // æ | |
'230' => 'a', // Æ |
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
$env_config['upload_preferences'] = array( | |
1 => array( | |
'name' => 'Uploads', | |
'server_path' => APPPATH."..\\..\\webroot\\uploads\\", | |
'url' => $env_config['base_url'].'uploads/' | |
), | |
); |
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:channel:entries channel="blog" limit="1" offset="{segment_3}" dynamic="off" category="{segment_4}"} | |
{sn_blog_index_entry} | |
{/exp:channel:entries} |
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
public function search_form() | |
{ | |
/** ---------------------------------------- | |
/** Get action ID for redirect_search method | |
/** ----------------------------------------*/ | |
$hidden['ACT'] = $this->EE->functions->fetch_action_id(get_class($this), 'redirect_search'); | |
/** ---------------------------------------- | |
/** Return the final rendered form | |
/** ----------------------------------------*/ |
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
============( index.html )================= | |
{embed="sidebar" location="wiki"} <- In this case EE will treat the conditionals in sidebar.html as simple, and only one of the {exp:class} tags will run | |
{embed="sidebar"} <- in this case (where embed:location is empty) EE will treat all conditionals as advanced and run every single tag! | |
============( sidebar.html )================= |
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
/** | |
This core hack in mod.forum.php will enable you to load a different forum theme from different templates. | |
Append in the constructor, just after $this->_load_base() like shown below. | |
*/ | |
/** ------------------------------------- | |
/** Load Base Forum Variables | |
/** -------------------------------------*/ |
NewerOlder