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
rm /usr/local/var/postgres/postmaster.pid | |
yarn run stylelint -q app/assets/**/*.scss | |
bundle exec erblint "app/**/*.{html,js,svg,text}{+*,}.erb" | |
git config --global alias.rom '!TMP_CURR_BRANCH=$(git branch --show-current) && git checkout master && git pull && git checkout $TMP_CURR_BRANCH && git rebase master && unset TMP_CURR_BRANCH' |
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 | |
//wp_get_attachment_image_src( $attachment_id, $size, $icon ); | |
$featureimage = wp_get_attachment_image_src( get_post_thumbnail_id() ); | |
$featureimage_url = $featureimage[0]; | |
echo $featureimage_url; | |
// https://css-tricks.com/snippets/wordpress/get-featured-image-url/ | |
$thumb_id = get_post_thumbnail_id(); | |
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail-size', true); | |
$thumb_url = $thumb_url_array[0]; |
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
Loading my main page | |
16:33:53 - action:muplugins_loaded | |
16:33:53 - action:registered_taxonomy | |
16:33:53 - action:registered_taxonomy | |
16:33:53 - action:registered_taxonomy | |
16:33:53 - action:registered_taxonomy | |
16:33:53 - action:registered_taxonomy | |
16:33:53 - action:registered_post_type | |
16:33:53 - action:registered_post_type |
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 | |
// Remove WP Stuff from the head | |
remove_action( 'wp_head', 'rsd_link' ); | |
remove_action( 'wp_head', 'wlwmanifest_link' ); | |
remove_action( 'wp_head', 'wp_generator' ); | |
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); | |
remove_action( 'wp_head', 'index_rel_link' ); | |
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); | |
remove_action( 'wp_head', 'wp_shortlink_wp_head' ); |
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 | |
function osu_twentyten_continue_reading_link() { | |
return ' <a href="'. get_permalink() . '">' . __( 'Read on <span class="meta-nav">→</span>', 'twentyten-child' ) . '</a>'; | |
} | |
function osu_twentyten_auto_excerpt_more( $more ) { | |
return ' …' . osu_twentyten_continue_reading_link(); | |
} |
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
/* IE upgrade overlay */ | |
#ie-warning-overlay { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
z-index: 2000; | |
filter: alpha(opacity=90); |
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
<!--[if lt IE 8]> <div id="ie-warning-overlay"> <div id="ie-warning"> <h1>Did you know that your copy of Internet Explorer is terribly out of date?</h1> <p> To get the best possible experience using our website, we recommend that you upgrade to the latest version or use another web browser. Any of the following will provide a superior experience, not only on this site, but across the web. </p> <p>Just click one of the icons below to get to the download page.</p> <ul> <li> <a href="http://microsoft.com/ie"> <img alt="Download Internet Explorer" src="images/browser_ie.gif" /> <p>Internet Explorer 9+</p> </a> </li> <li> <a href="http://mozilla.org/firefox"> <img alt="Download Firefox" src="images/browser_firefox.gif" /> <p>Firefox</p> </a> </li> <li> <a href="http://google.com/chrome"> <img alt="Download Chrome" src="images/browser_chrome.gif" /> <p>Google Chrome</p> </a> </li> <li> <a href="http://apple.com/safari"> <img alt="Download Safari" src="images/browser_safari.gif" /> <p>Safari</p> </a> </li> <li> <a h |
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 | |
function custom_excerpt_length( $length ) { | |
return 120; | |
} add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); | |
function new_excerpt_more( $more ) { | |
return ' <a class="read-more" href="' . get_permalink( get_the_ID() ) . '">' . __( 'Read More', 'your-text-domain' ) . '</a>'; | |
} |
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
@for $i from 1 through 4 { | |
&:nth-child(#{$i}) { | |
background-color: $color_secondary; | |
} | |
$color_secondary: lighten( $color_secondary, 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
<% link_to('path/to/link.html', { :class => 'link_class', :"id" => 'link_id', :title => 'Sass and Compass for designers book image', :"data-icon" => 'd' }) do %> | |
<%= image_tag('hutt_logo_primary.png', :alt => 'image alt text', :class => "image_class", :id => 'image_id') %> | |
<% end %> |
NewerOlder