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="line"></div> |
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
/*Icon Fonts for List replacements*/ | |
.fa-ul { | |
padding-left: 0; | |
margin-left: 2.142857142857143em; | |
list-style-type: none; | |
} | |
.fa-ul > li { | |
position: relative; | |
} | |
.fa { |
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
function remove_menus () { | |
global $menu; | |
$restricted = array(__('Dashboard'), __('Posts'), __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools'), __('Users'), __('Settings'), __('Comments'), __('Plugins')); | |
end ($menu); | |
while (prev($menu)){ | |
$value = explode(' ',$menu[key($menu)][0]); | |
if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){unset($menu[key($menu)]);} | |
} | |
} | |
add_action('admin_menu', 'remove_menus'); |
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
URL Redirect Assets: | |
All Domains | |
^/assets/(img|js|css|fonts)/(.*)$ | |
/wp-content/themes/theme-name/assets/$1/$2 | |
break | |
URL Redirect Plugins: | |
All Domains | |
^/plugins/(.*)$ | |
/wp-content/plugins/$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
//Make ShadowBox responsive | |
.tubepress_container, .youtube-player { | |
position: relative; overflow: hidden; max-width: 100%; height: 100%;} |
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 | |
$children = get_pages('child_of=' . $post->ID); | |
if (count($children) != 0) { | |
?> | |
DO something | |
<?php } else { ?> | |
DO else | |
<?php } ?> |
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 | |
$yourImageThumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'image-thumb-size'); //get attached post thumbnail and resize | |
if ( '' != get_the_post_thumbnail() ) { | |
?> | |
<img src="<?php echo $yourImageThumb[0]; ?>" class="img-responsive" alt="<?php echo $post->post_title; ?>"> | |
<?php } else {?> | |
<img src="http://placehold.it/260x195&text=default" class="img-responsive"> | |
<?php } ?> |
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
.click-panel { | |
position:relative; | |
.default-link { | |
position:absolute; | |
width:100%; | |
height:100%; | |
top:0; | |
left: 0; | |
z-index: 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
<?php include(TEMPLATEPATH . '/your/file/path.php'); ?> |