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
{{ 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 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 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 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 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 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 admin@yourdomain.com | |
ServerName www.yourdomain.com | |
DocumentRoot /var/www/yourdomain.com/public_html/ | |
ErrorLog /var/www/yourdomain.com/logs/error.log |
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
{{ streams:cycle stream="employement_positions" limit="1" where="`position_slug`='[segment_2]'" }} | |
{{ entries }} | |
{{ if description != "" }} | |
<h3>Description of Position</h3> | |
<p>{{ description }}</p> | |
{{ endif }} | |
{{ /entries }} | |
{{ /streams:cycle }} |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<title>File Transfer Example</title> | |
<script type="text/javascript" charset="utf-8" src="phonegap-1.2.0.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
// Wait for PhoneGap to load | |
document.addEventListener("deviceready", onDeviceReady, false); | |
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 | |
print_r($_FILES); | |
$new_image_name = "namethisimage.jpg"; | |
move_uploaded_file($_FILES["file"]["tmp_name"], "/srv/www/upload/".$new_image_name); | |
?> |
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
<form method="post" id="infoForm"> | |
<input type="text" name="first_name" id="first_name" value="" placeholder="First Name" /> | |
<input type="text" name="last_name" id="last_name" value="" placeholder="Last Name" /> | |
<input type="text" name="email" id="email" value="" placeholder="Email" /> | |
<button type="submit">Submit</button> | |
</form> |
OlderNewer