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 if (is_page('home')) { ?> | |
<?php } elseif (is_page('enter-page-here')) { ?> | |
<?php } else { ?> | |
<?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
<?php include('template-name-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
<?php $my_query = new WP_Query('category_name=sctv&showposts=1'); ?> | |
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?> | |
<?php endwhile; ?> |
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 | |
/** | |
* The Header for our theme. | |
* | |
* Displays all of the <head> section and everything up till <div id="main"> | |
* | |
* @package WordPress | |
* @subpackage Boilerplate | |
* @since Boilerplate 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
if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9 | |
add_theme_support( 'post-thumbnails' ); | |
set_post_thumbnail_size( 600, 50, true ); // Normal post thumbnails | |
add_image_size( 'thumb',150, 9999 ); // Permalink thumbnail | |
} |
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 while(has_sub_field('ads','option')): ?> | |
<?php if(get_row_layout() == '728_x_90_leaderboard'): ?> | |
<!-- leaderboard AD --> | |
<span class="leaderboard"> | |
<?php if(get_sub_field('ad_image_728_x_90')) { ?> | |
<a class="ad" href="<?php the_sub_field('ad_link_728_x_90'); ?>" target="_blank"> | |
<?php $image = wp_get_attachment_image_src(get_sub_field('ad_image_728_x_90'), 'large'); ?> | |
<img src="<?php echo $image[0]; ?>" alt="" /> | |
</a> |
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 if (is_mobile() ) : ?> | |
<?php else : ?> | |
<?php endif; ?> |
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
tar zcvf - /folder-to-back-up/ | ssh [email protected] "cat > /folder-to-back-up-to/backup.tar.gz" |