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 | |
// is the user logged in? | |
if (is_user_logged_in()) { | |
// you could also add other parameters here to limit who has access to the page: | |
// if (is_user_logged_in() && is_author()) { | |
?> | |
<!-- Code here --> | |
<?php |
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
array: <?php echo is_array($var); ?><br> | |
boolean: <?php echo is_bool($var); ?><br> | |
float: <?php echo is_float($var); ?><br> | |
integer: <?php echo is_int($var); ?><br> | |
null: <?php echo is_null($var); ?><br> | |
number: <?php echo is_numeric($var); ?><br> | |
string: <?php echo is_string($var); ?><br> |
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
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]--> | |
<head> | |
<meta charset="<?php bloginfo( 'charset' ); ?>"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title><?php wp_title( '|', true, 'right' ); ?> <?php $site_title = get_bloginfo('name'); ?><?php echo get_bloginfo ('name'); ?></title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
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 | |
$args = array( | |
'post_type' => 'slide-show', | |
'post_status' => 'publish', | |
'orderby' => 'menu_order', | |
'order' => 'DESC', | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'slide-show-category', |
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 | |
header("Location: destination.php"); | |
exit; | |
?> |
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
// jQuery Plugin Boilerplate | |
// A boilerplate for kick-starting jQuery plugins development | |
// version 1.3, May 07th, 2011 | |
// by Stefan Gabos | |
// with help from Roger Padilla, Shinya, JohannC, Steven Black, Rob Lifford | |
// remember to change every instance of "pluginName" to the name of your plugin! | |
(function($) { | |
// here it goes! |
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
<small role="contentinfo">© <?php echo date("Y") ?> <span itemprop="name" itemscope itemtype="http://schema.org/Organization"><?php bloginfo('name'); ?></span></small> |
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
<address itemtype="http://schema.org/PostalAddress" itemscope=""> | |
<span itemprop="streetAddress">Street Address</span><br> | |
<span itemprop="addressLocality">City</span>, <span itemprop="addressRegion">STATE</span> <span itemprop="postalCode">ZipCode</span> | |
</address> |