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="hidden-sm-up"> | |
visible XS | |
</div> | |
<div class="hidden-md-up hidden-xs-down"> | |
visible SM | |
</div> | |
<div class="hidden-lg-up hidden-sm-down"> | |
visible MD | |
</div> | |
<div class="hidden-xl-up hidden-md-down"> |
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
body { | |
-webkit-font-smoothing: antialiased; | |
-moz-font-smoothing: antialiased; | |
font-smoothing: antialiased; | |
text-rendering: optimizeLegibility; | |
-webkit-text-size-adjust: 100%; | |
} |
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 | |
$field_name = 'field'; | |
$field_label = 'Field'; | |
?> | |
//INPUT FIELD | |
<div class="form-group <?php echo $_ERROR[$field_name] ? ' has-danger' : ''; ?>"> | |
<label for="<?php echo $field_name; ?>" | |
class="col-sm-0 control-label"><?php echo $field_label; ?></label> |
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 | |
require '_config.php'; | |
$twitteruser = 'webfwd'; | |
$tweetexpire = 60 * 30; // Seconds | |
$tweetfile = DOCROOT.'/twitter.txt'; | |
use Abraham\TwitterOAuth\TwitterOAuth; | |
if (!file_exists($tweetfile) || (time()-filemtime($tweetfile)) > $tweetexpire) { | |
$connection = new TwitterOAuth( |
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
$xl-down: "max-width: 9999px"; | |
$lg-down: "max-width: 1199px"; | |
$md-down: "max-width: 991px"; | |
$sm-down: "max-width: 767px"; | |
$xs-down: "max-width: 575px"; | |
$xl-up: "min-width: 1200px"; | |
$lg-up: "min-width: 992px"; | |
$md-up: "min-width: 768px"; | |
$sm-up: "min-width: 576px"; |
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 | |
get_header(); | |
if (have_posts()) : | |
while (have_posts()) : | |
the_post(); | |
the_content(); | |
endwhile; | |
endif; | |
get_sidebar(); | |
get_footer(); |
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
User-agent: * | |
Disallow: / |
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
/* add the following CSS to the image tag of image you want to vertically align inside the col */ | |
img { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
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
add_action('get_footer', 'show_template'); | |
function show_template() | |
{ | |
global $template; | |
if ($_SERVER['REMOTE_ADDR'] == 'ip_address') echo basename($template); | |
} |
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
function your_custom_pagination() { | |
global $wp_query; | |
$total = $wp_query->max_num_pages; | |
if ( $total > 1 ) { | |
if ( !$current_page = get_query_var('paged') ) { | |
$current_page = 1; | |
} | |
echo paginate_links(array( | |
'base' => get_pagenum_link(1) . '%_%', | |
'format' => '?paged=%#%', |
OlderNewer