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
cd /Volumes/DATA/Dropbox/Development/vhosts/development.tjhole.dev | |
wget http://wordpress.org/latest.tar.gz | |
tar xfz latest.tar.gz | |
mv wordpress INSTALLNAME |
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
meta.foundation-mq-small { | |
font-family: "only screen and (min-width: 768px)"; | |
width: 768px; } | |
meta.foundation-mq-medium { | |
font-family: "only screen and (min-width:1280px)"; | |
width: 1280px; } | |
meta.foundation-mq-large { | |
font-family: "only screen and (min-width:1440px)"; |
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
<script type="text/javascript" | |
src="http://maps.google.com/maps/api/js?sensor=false"> | |
</script> | |
<script type="text/javascript"> | |
var $map = jQuery.noConflict(); | |
$map( document ).ready(function() { | |
var latlng = new google.maps.LatLng(<?php the_field('location_gps');?>); | |
var myOptions = { | |
zoom: 17, | |
center: latlng, |
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 $images = get_field('gallery'); if( $images ): ?> | |
<div id="slider" class="flexslider"> | |
<ul class="slides"> | |
<?php foreach( $images as $image ): ?> | |
<li> | |
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
<p><?php echo $image['caption']; ?></p> | |
</li> | |
<?php endforeach; ?> |
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
-webkit-transition: all 1s ease-in-out; | |
-moz-transition: all 1s ease-in-out; | |
-o-transition: all 1s ease-in-out; | |
transition: all 1s ease-in-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 $categories = get_the_category(); foreach($categories as $category) { echo $category->name . ' '; } ?> |
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(get_field('repeater_field_name')): ?> | |
<ul> | |
<?php while(has_sub_field('repeater_field_name')): ?> | |
<li>sub_field_1 = <?php the_sub_field('sub_field_1'); ?>, sub_field_2 = <?php the_sub_field('sub_field_2'); ?>, etc</li> | |
<?php endwhile; ?> | |
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 | |
$attachment_id = get_field('field_name'); | |
$size = "full"; // (thumbnail, medium, large, full or custom size) | |
$image = wp_get_attachment_image_src( $attachment_id, $size ); | |
// url = $image[0]; | |
// width = $image[1]; | |
// height = $image[2]; | |
?> | |
<img src="<?php echo $image[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
<?php if(get_field('repeater_field_name')): ?> | |
<ul> | |
<?php while(has_sub_field('repeater_field_name')): ?> | |
<li> | |
<?php the_sub_field('sub_field_1'); ?> | |
<?php the_sub_field('sub_field_2'); ?> | |
</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
add_action( 'admin_menu', 'adjust_the_wp_menu', 999 ); | |
function adjust_the_wp_menu() { | |
remove_submenu_page( 'themes.php', 'theme-editor.php'); | |
remove_submenu_page( 'themes.php', 'themes.php'); | |
remove_submenu_page( 'themes.php', 'customize.php'); | |
remove_submenu_page( 'themes.php', 'widgets.php'); | |
remove_submenu_page( 'jetpack', 'jetpack'); | |
remove_submenu_page( 'index.php', 'update-core.php'); | |
} | |
add_action( 'login_head', 'namespace_login_style' ); |
OlderNewer