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
<style> | |
span{ display: inline-block; vertical align: middle; } | |
.placeholder { height: 100% } | |
</style> | |
<span>Your content here!</span> | |
<span class="placeholder"></span> |
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
module.exports = function(config) { | |
config.set({ | |
frameworks: ['browserify', 'mocha', 'chai'], | |
//specify browserify preproccesor so we can use server-side components | |
preprocessors: { | |
'test/*' : ['browserify'] | |
}, |
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
{ | |
"dependencies": { | |
"react": "^0.11.1" | |
}, | |
"devDependencies": { | |
"browserify": "^4.2.1", | |
"karma": "^0.12.22", | |
"karma-chai": "^0.1.0", | |
"karma-mocha": "^0.1.9", | |
"karma-browserify": "^0.2.1", |
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
=background-image($bg,$bg-retina) | |
background-image: $bg | |
+retina | |
background-image: $bg-retina | |
background-size: contain | |
=retina | |
//detect retina with pixel density | |
@content |
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
public class TextHelper{ | |
private static TypeFace typeface = null; | |
public static void setTypeface(Context context, TextView textview){ | |
if(this.typeface == null){ | |
this.typeface = Typeface.createFromAsset(context.getAssets(), "Helvetica_Neue.ttf"); | |
} | |
textview.setTypeface(face); | |
} |
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="clearfix"> | |
<?php $metabox->the_field('cta-feature-img'); ?> | |
<?php $wpalchemy_media_access->setGroupName('cta-feature-img')->setInsertButtonLabel('Insert CTA Image')->setTab('type'); ?> | |
<p> | |
<span class="help">CTA Image - Please upload the Page CTA image at the dimensions: 280px x 146px</span> | |
<?php echo $wpalchemy_media_access->getField(array('name' => $metabox->get_the_name(), 'value' => $metabox->get_the_value())); ?> | |
<?php echo $wpalchemy_media_access->getButton(array('label' => 'Upload CTA Image')); ?> | |
<?php $metabox->the_field('cta-feature-img-meta'); ?> | |
<?php echo $wpalchemy_media_access->getMetaField(array('groupname'=>'cta-feature-img','name' => $metabox->get_the_name(), 'value' => $metabox->get_the_value())); ?> |
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 | |
include('MediaAccessBase.php'); | |
/** | |
* @author Jack Mahoney | |
*/ | |
class WPAlchemy_MediaAccess extends WPAlchemy_MediaAccess_Base{ | |
public $meta_field_class_name = 'media-meta-field'; |
NewerOlder