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 | |
$req_uri = $_SERVER['REQUEST_URI']; | |
$view = 'page'; | |
if ( $req_uri == '/' || $req_uri == '/about/' ) { | |
$view = 'page'; | |
} else { | |
$view = 'post'; | |
} | |
?> | |
<body id="<?php echo $view; ?>"> |
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 | |
$conn = mysql_connect('DBHOST:3306', 'DBUSER', 'DBPASS'); | |
mysql_select_db('SCHEMA', $conn) or die('Cannot connect to the database'); | |
?> |
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
#include "SDL/SDL.h" | |
#include "SDL/SDL_image.h" | |
#include "SDL/SDL_ttf.h" | |
#include <string> | |
// set up my drawing window | |
const int SCREEN_WIDTH = 1024; | |
const int SCREEN_HEIGHT = 768; | |
const int SCREEN_BPP = 32; | |
const int CONSOLE_WIDTH = 200; |
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 | |
is_home(); | |
is_single(); | |
is_page(); | |
is_search(); | |
is_404(); | |
?> |
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
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^js/(.+)$ js/$1 [L] | |
RewriteRule ^css/(.+)$ css/$1 [L] | |
RewriteRule ^images/(.+)$ images/$1 [L] | |
RewriteCond %{SCRIPT_FILENAME} !-f | |
RewriteCond %{SCRIPT_FILENAME} !-d | |
RewriteRule ^(.+)$ index.php?path=$1&%{QUERY_STIRNG} [L] |
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 XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
<head> | |
<title><?php echo $AppName->title(); ?></title> | |
<link rel="stylesheet" type="text/css" href="/css/reset-fonts-grids.css" /> | |
<link rel="stylesheet" type="text/css" href="/css/appname.css" /> | |
<?php | |
if ( $AppName->view_css() ) { | |
?> |
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
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule (.) /index.php?path=$1 [L] |
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
# BEGIN W3 Total Cache | |
<IfModule mod_setenvif.c> | |
SetEnvIfNoCase Accept-Encoding (gzip) APPEND_EXT=.$1 | |
</IfModule> | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} \/$ | |
RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register).php|wp-.*\.php|index\.php) [ | |
OR] |
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
376a377,381 | |
> | |
> // Facebook "Like" button fork, http://ericharrison.info/142 | |
> $socials .= '<br /><iframe src="http://www.facebook.com/plugins/like.php?href=' . $fetch_url . '&layout=standard&show-faces=false&width=450&action=like&font=lucida+grande&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:30px; display:block;"></iframe>' . "\n"; | |
> // end of Facebook "Like" button fork. | |
> |
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
RECIPE_NAME.zip | |
++ RECIPE_README.md | |
++ includes/ | |
includes/PainfreeConfig-RECIPENAME.php | |
includes/RECIPENAME.php | |
++ templates/ | |
templates/(ANY RECIPE TEMPLATES) | |
++ htdocs/ | |
htdocs/images/(ANY RECIPE PUBLIC IMAGES) | |
htdocs/css/(ANY RECIPE PUBLIC CSS) |
OlderNewer