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 | |
function convert_external_link_tags($html) | |
{ | |
$pattern = '/<link\s(.+)\s-\s(.*)?\s(".*")?>(.+)<\/link>/U'; | |
$replacement = '<a href="$1" target="$2" title=$3>$4</a>'; | |
preg_match_all($pattern, $html, $matches, PREG_PATTERN_ORDER); | |
return preg_replace($pattern, $replacement, $html); | |
} |
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 class="posts"> | |
{{ articles:preview limit="2" }} | |
<div class="post" style="border:none;margin:0;"> | |
<h2><a href="story/{{ article_slug }}">{{ article_title }}</a></h2> | |
<div class="meta"> | |
<p class="pub_date">{{ helper:date timestamp=created }}</p> | |
</div> | |
{{ if thumb_id }} | |
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
system/cms/core/Public_Controller.php, around line 103: | |
if($this->uri->segment(1) !== 'story') | |
{ | |
$this->template->set_metadata('canonical', site_url($this->uri->uri_string()), 'link'); | |
} |
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
{{ streams:cycle stream="articles" namespace="cope" paginate="yes" pag_segment="2" limit="10" order_by="created" sort="desc" }} | |
<!--{{ total }} entries returned--> | |
<div> | |
{{ entries }} | |
<p>{{ title }}</p> | |
<p> | |
{{ streams:departments }} |
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
# Add class to body tag | |
page.bodyTag > | |
page.bodyTagCObject = TEXT | |
page.bodyTagCObject.value= industrial | |
page.bodyTagCObject.wrap = <body class="|"> |
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
#!/usr/bin/env bash | |
# Upgrade Base Packages | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# Install Web Packages | |
sudo apt-get install -y apache2 | |
rm -rf /var/www | |
ln -fs /vagrant /var/www |
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
<script> | |
var configYouTubePlayer = { | |
// The YouTube video ID that identifies the video that the player will load. | |
videoID: 'Rk6_hdRtJOE', | |
// The height of the video player. The default value is 390. | |
height: 390, | |
// The width of the video player. The default value is 640. | |
width: 640, |
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
var majors = new Array( | |
"Accounting", | |
"Applied Studies", | |
"Art", | |
"Biblical Studies", | |
"Biology", | |
"Business Administration", | |
"Chemistry", | |
"Christian Ministry", | |
"Communication", |
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
var grad_degrees = new Array( | |
"EDS - Director of Special Education: Exceptional Child", | |
"EDS - Dirirector of Special Education: Education Leadership", | |
"EDS - Educational Leadership: Superintendent", | |
"EDS - Educational Leadership: Building Administrator", | |
"EDD - Educational Leadership", | |
"MA - Christian Education", | |
"MA - Missional Leadership", | |
"MA - Pastoral Ministry", | |
"MA - Spiritual Formation", |
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
function Model() { | |
this.init = function() { | |
alert('model init'); | |
} | |
} | |
module.exports = function() { | |
return new Model(); |