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
#!/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
# 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
{{ 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
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
<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
<?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="grid_8 alpha"> | |
<div class="posts"> | |
{{ articles:preview limit="4" where="`messenger_issue`='summer_2014'" }} | |
<div class="post"> | |
<h2><a href="story/{{ article_slug }}">{{ article_title }}</a></h2> | |
<div class="meta"> | |
<p class="pub_date">{{ helper:date timestamp=article_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
image original dimensions (???x???) | |
files/large/1 | |
files/thumb/1/auto/auto | |
files/thumb/1/auto/auto/fill | |
files/thumb/1/auto/auto/fit | |
max default dimensions (100x100) with aspect ratio | |
files/thumb/1 |
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
<VirtualHost *:443> | |
SSLEngine On | |
SSLCertificateFile /etc/apache2/ssl/yourdomain_com.crt | |
SSLCertificateKeyFile /etc/apache2/ssl/yourdomain_com.key | |
SSLCACertificateFile /etc/apache2/ssl/yourdomain_com.cer | |
ServerAdmin [email protected] | |
ServerName www.yourdomain.com | |
DocumentRoot /var/www/yourdomain.com/public_html/ | |
ErrorLog /var/www/yourdomain.com/logs/error.log |