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 | |
$args = array( 'hide_empty=0' ); | |
$terms = get_terms( 'status', $args ); | |
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) { | |
$count = count( $terms ); | |
$i = 0; | |
$term_list = '<ul class="spec-project-cat-ul">'; | |
foreach ( $terms as $term ) { | |
$i++; | |
$term_list .= '<li class="col-xs-4 remove-padding"><a href="' . esc_url( get_term_link( $term ) ) . '" alt="' . esc_attr( sprintf( __( 'View all %s projects', 'themeaxe' ), $term->name ) ) . '">' . $term->name . '</a></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
<?php | |
if (function_exists( 'add_theme_support' )){ | |
add_filter('manage_posts_columns', 'posts_columns', 5); // All posts column list | |
add_action('manage_posts_custom_column', 'posts_custom_columns', 5, 2); // Cloumn content | |
add_filter('manage_pages_columns', 'posts_columns', 5); // All pages column list | |
add_action('manage_pages_custom_column', 'posts_custom_columns', 5, 2); // Cloumn content | |
add_filter('manage_projects_posts_columns', 'posts_columns', 1); // Only custom post 'project' column list | |
add_action('manage_projects_posts_custom_column', 'posts_custom_columns', 1, 2); // Column content | |
} |
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 | |
function ec_mail_name( $email ){ | |
return 'Joe Doe'; // new email name from sender. | |
} | |
add_filter( 'wp_mail_from_name', 'ec_mail_name' ); | |
function ec_mail_from ($email ){ | |
return '[email protected]'; // new email address from sender. | |
} | |
add_filter( 'wp_mail_from', 'ec_mail_from' ); |
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-ellisis { | |
width: 250px; | |
overflow: hidden; | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
} |
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 name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, shrink-to-fit=no" /> |
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 | |
// Reference: http://www.w3schools.com/php/php_ref_filter.asp | |
$bool = filter_var($bool, FILTER_VALIDATE_BOOLEAN); | |
$email = filter_var($email, FILTER_SANITIZE_EMAIL); | |
$newstr = filter_var($str, FILTER_SANITIZE_STRING); | |
$url = filter_var($var, FILTER_SANITIZE_URL); | |
// Example: Mail validation | |
$email = "[email protected]"; | |
// Remove all illegal characters from email |
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
html { | |
/* Adjust font size */ | |
font-size: 100%; | |
-webkit-text-size-adjust: 100%; | |
/* Font varient */ | |
font-variant-ligatures: none; | |
-webkit-font-variant-ligatures: none; | |
/* Smoothing */ | |
text-rendering: optimizeLegibility; | |
-moz-osx-font-smoothing: grayscale; |
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 | |
add_action('do_meta_boxes', 'themeaxe_image_box'); | |
function themeaxe_image_box() { | |
remove_meta_box( 'postimagediv', 'Tiles', 'side' ); | |
add_meta_box('postimagediv', __('Custom Image'), 'post_thumbnail_meta_box', 'Tiles', 'normal', 'high'); | |
} |
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
<Files *.*> | |
ForceType application/octet-stream | |
</Files> |