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
$loop = new WP_Query (array( | |
'cat' => '1', | |
'posts_per_page'=> -1 | |
)); |
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
/** | |
* | |
* @author pixeline | |
* @link https://github.com/eddiemachado/bones/issues/90 | |
* | |
*/ | |
/* Remove Width/Height attributes from images, for easier image responsivity. */ | |
add_filter( 'post_thumbnail_html', 'remove_thumbnail_dimensions', 10 ); |
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
<div class="author-box"> | |
<h3><?php echo $content->info>displayname; ?></h3> | |
<?php if ( isset ( $content->info->imageurl ) ) { ?><img src="<?php echo $content->info->imageurl; ?>" alt="<?php echo $content->displayname; ?>" class="auth-img"><?php } ?> | |
<?php if ( isset ( $content->info->bioblurb ) ) { ?><p><?php echo $content->info->bioblurb; ?></p><?php } ?> | |
</div> |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<pluggable type="plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schemas.habariproject.org/pluggable/0.8"> | |
<name></name> | |
<license url="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License 2.0</license> | |
<author url="http://miklb.com">Michael Bishop</author> | |
<version>0.1</version> | |
<url>http://miklb.com/</url> | |
<description><![CDATA[Description of plugin goes here.]]></description> | |
<copyright>2013</copyright> |
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
javascript:var%20w=window,d=document,gS='getSelection';window.open('http://example.com/admin/publish?quote='+encodeURIComponent((''+(w[gS]?w[gS]():d[gS]?d[gS]():d.selection.createRange().text)).replace(/(^\s+|\s+$)/g,''))+'&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(d.title.replace(/\u200b/g, '')));void(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
public function action_modify_form_jambo ( $form ) { | |
$this->add_template('canon_submit', dirname(__FILE__).'/forms/formcontrol_submit.php', true); | |
$this->add_template( 'canon_email', dirname(__FILE__).'/forms/formcontrol_email.php' ); | |
$form->jambo_submit->template = 'canon_submit'; | |
$form->jambo_email->template = 'canon_email'; | |
$form->append( 'fieldset', 'jambo_commenterinfo', _t( 'Have a Question?' ) ); | |
$form->move_before( $form->jambo_commenterinfo, $form->jambo_name ); | |
$form->jambo_name->move_into($form->jambo_commenterinfo); | |
$form->jambo_email->move_into( $form->jambo_commenterinfo ); | |
$form->jambo_message->move_into( $form->jambo_commenterinfo ); |
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 .=$itemopen . '### [' . $bookmark->title . '](' . $bookmark->url . ') "\n"' . $bookmark->description . '"\n"'; |
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
/** | |
* tiger in the snow (HTML5) | |
*/ | |
figure { | |
min-width: 178px; | |
/** outline: solid 1px red; /* uncomment rule to see figure outline */ | |
position: relative; | |
} | |
img:hover { |
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
## Again, note the snippet abbreviation from the safari_link_clipboard snippet | |
## This should be a default plain text snippet | |
%snippet:slink#% | |
[%filltext:name=Title%](%clipboard%) |
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
public function filter_post_featuredimage_image($featuredimage_image, $post) | |
{ | |
if ($post->content_type == Post::type('entry')) { | |
if (!empty($post->info->featuredimage_image)) { | |
return $post->info->featuredimage_image; | |
} | |
preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->content, $matches); | |
if (sizeof($matches[1]) > 0) { |