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
.content a { | |
&:link, | |
&:visited, | |
&:active { | |
position: relative; | |
color: $grey-dark; | |
text-decoration: none; | |
transition: color 0.2s ease-out; | |
} |
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 | |
function the_content_readmore($more_link_text = null, $stripteaser = 0) { | |
$content = get_the_content($more_link_text, $stripteaser); | |
$content = apply_filters('the_content', $content); | |
$content = explode("</p>", $content); | |
foreach ($content as $key => $value){ | |
if ($value != null || $value != ''){ | |
if ( !stripos( $content[$key], '<iframe' ) === false ){ | |
echo $content[$key]; | |
for($i = $key+1; $i < count($content); $i++ ){ |
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
(function($) { | |
$('a.external').click(function() { | |
window.open(this.href); | |
return false; | |
}); | |
})(jQuery); |
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(document).ready(function($) { | |
$('.container').each(function() { | |
var highestBox = 0; | |
$('.post', this).each(function() { | |
if ($(this).height() > highestBox) { | |
highestBox = $(this).height(); | |
} | |
}); | |
$('.post', this).height(highestBox); | |
}); |
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 ( have_posts() ) : ?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<?php get_template_part( 'content', 'index' ); ?> | |
<?php endwhile; ?> | |
<?php if ( function_exists('wp_pagenavi') ) : wp_pagenavi(); else : ?> | |
<!-- pagination --> |
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
update wp_posts set post_content = replace(post_content,'replace_this','with_this'); |
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
Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit.</a> Donec semper risus id neque vulputate elementum. Ut diam neque, vestibulum non, sagittis quis, commodo id, purus. Vivamus sagittis, odio non rhoncus adipiscing, elit ipsum pulvinar est, vitae malesuada velit orci sed arcu. Nulla facilisi. Integer vulputate pretium neque. Nulla aliquam orci non neque. Fusce tempor placerat sapien. Vivamus diam. Nullam velit. Donec viverra, urna posuere hendrerit vestibulum, purus elit hendrerit arcu, at pellentesque massa ante sit amet nisl. Proin sed tortor quis nibh feugiat malesuada. Nam nonummy augue at sem. <a href="#">Vestibulum gravida est sed enim.</a> | |
<h3>Nullam auctor eros non tellus</h3> | |
<ul> | |
<li><a href="#">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</a></li> | |
<li><a href="#">Nulla iaculis adipiscing felis.</a></li> | |
<li><a href="#">Aliquam sollicitudin tellus sed odio.</a></li> | |
<li>Praesent a velit eu orci eleifend blandit.</li> | |
<li>Etiam hendrerit est in tellus.</li> |
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
<p>Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit.</a> Donec semper risus id neque vulputate elementum. Ut diam neque, vestibulum non, sagittis quis, commodo id, purus. Vivamus sagittis, odio non rhoncus adipiscing, elit ipsum pulvinar est, vitae malesuada velit orci sed arcu. Nulla facilisi. Integer vulputate pretium neque. Nulla aliquam orci non neque. Fusce tempor placerat sapien. Vivamus diam. Nullam velit. Donec viverra, urna posuere hendrerit vestibulum, purus elit hendrerit arcu, at pellentesque massa ante sit amet nisl. Proin sed tortor quis nibh feugiat malesuada. Nam nonummy augue at sem. <a href="#">Vestibulum gravida est sed enim.</a></p> | |
<h3>Nullam auctor eros non tellus</h3> | |
<ul> | |
<li><a href="#">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</a></li> | |
<li><a href="#">Nulla iaculis adipiscing felis.</a></li> | |
<li><a href="#">Aliquam sollicitudin tellus sed odio.</a></li> | |
<li>Praesent a velit eu orci eleifend blandit.</li> | |
<li>Etiam hendrerit est in tellus |
NewerOlder