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 | |
$my_email_address = "[email protected]"; | |
$my_email_address_cloaked = antispambot( $my_email_address ); | |
echo $my_email_address_cloaked; | |
?> | |
// you can cloak email addresses anywhere in your posts wit this shortcode | |
<?php | |
function antispambot_sc( $atts ) { |
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 | |
while( have_posts() ) : the_post(); | |
$content_parts = get_extended( get_the_content() ); | |
echo '<h1 class="post-title">' . get_the_title() . '</h1>'; | |
echo '<p class="intro">' . $content_parts['main'] . '</p>'; | |
echo '<!-- Paste your ad code here. -->'; | |
echo '<div class="article">' . $content_parts['extended'] . '</div>'; | |
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 | |
$custom_style_file = get_template_directory_uri() . '/css/custom_style.css'; | |
function custom_styles() { | |
wp_enqueue_style( 'custom-style', $custom_style_file ); | |
$headline_font_weight = get_theme_mod( 'headline-font-weight' ); | |
$custom_style = '.headline { font-weight: ' . $headline_font_weight . '; }'; | |
wp_add_inline_style( 'custom-inline-style', $custom_style ); | |
} | |
add_action( 'wp_enqueue_scripts', 'custom_styles' ); |
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
INSERT INTO `local_bellevue`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('4', 'derek', MD5('HoodRiver072812'), 'Derek Shirk', '[email protected]', 'http://www.brewhousepdx.com/', '2011-06-07 04:04:04', '', '0', 'Derek Shirk'); | |
INSERT INTO `local_bellevue`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '4', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); | |
INSERT INTO `local_bellevue`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '4', 'wp_user_level', '10'); |
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
// ----------------------------------------------------------------------------------------- | |
// Remove auto generated feed links | |
// ----------------------------------------------------------------------------------------- | |
function my_remove_feeds() { | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); | |
remove_action( 'wp_head', 'feed_links', 2 ); | |
} | |
add_action( 'after_setup_theme', 'my_remove_feeds' ); |
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
// ----------------------------------------------------------------------------------------- | |
// Remove jquery migrate js | |
// ----------------------------------------------------------------------------------------- | |
function dequeue_jquery_migrate( &$scripts){ | |
if(!is_admin()){ | |
$scripts->remove( 'jquery'); | |
$scripts->add( 'jquery', false, array( 'jquery-core' ), '1.10.2' ); | |
} | |
} |
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
/*---------------------------------------------------------------- | |
Perfect Fourth (http://type-scale.com) | |
----------------------------------------------------------------*/ | |
h1 { | |
font-size: 2.369em; | |
} | |
h2 { | |
font-size: 1.777em; |
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
@mixin linx ($link, $visit, $hover, $active) { | |
a { | |
color: $link; | |
&:visited { | |
color: $visit; | |
} | |
&:hover { | |
color: $hover; | |
} | |
&:active { |
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
$box-style1: 5px, solid, red; | |
$box-style2: (bStyle: dotted, bColor: blue, bWidth: medium); | |
@mixin boxy($bWidth, $bStyle, $bColor) { | |
border-width: $bWidth; | |
border-style: $bStyle; | |
border-color: $bColor; | |
} | |
.first { |
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 | |
global $post,$wp_query; | |
get_header(); | |
?> | |
<!-- Blog Header --> | |
<div class="blog-header-wrapper"> | |
<?php | |
$color = oneengine_option('header_blog_color'); | |
$img = oneengine_option('header_blog_img', false, 'url'); | |
$repeat = oneengine_option('header_blog_repeat'); |
OlderNewer