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
$template_name = 'my-custom-template.php'; | |
$path = locate_template( $template_name ); | |
if ( empty( $path ) ) | |
$path = dirname( __FILE__ ) . '/' . $template_name; |
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
Need to be fixed for inclusion | |
------------------------------ | |
* The function ```register_sidebar()``` needs to be called during the ```widgets_init``` hook. Please refer to Twenty Twelve's function.php file for an example of how to do this. | |
* The template tag ```the_title()``` may not be printed inside an attribute. Please use ```the_title_attribute()``` instead. This code was found in line 14 of 404.php, line 11 of archive.php, line 9 of header.php, line 11 of index.php, line 11 of page.php, line 13 of search.php, and line 11 of single.php. | |
* Please move the function definition for ```blackzebra_custom_styles()``` into functions.php. | |
* Please remove the additional enqueue for a child theme from ```blackzebra_custom_styles()```. It is best to let the child theme make this decision. | |
* Please remove the favicon from header.php. | |
* Please remove the Atom Link from header.php. This functionality should be taken care of by ```add_theme_support( 'automatic-feed-links' )``` | |
* Table headings are the same color as the |
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 | |
if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) { | |
/* translators: used between list items, there is a space after the comma. */ | |
$tag_list = get_the_tag_list( '', __( ', ', '_s' ) ); | |
if ( $tag_list && _s_categorized_blog() ) | |
echo '<span class="entry-tags">' . $tag_list . '</span>'; | |
} | |
if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { | |
/* translators: used between list items, there is a space after the comma. */ |
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
This is basically a list of words in languages that I do not know. I created it to help when researching/testing various fonts. Feel free to add stuff! | |
Russian | |
======= | |
На западе она граничит с Норвегией, Финляндией, Балтийскими государствами, Белоруссией и Украиной. |
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
/** | |
* An Example of how Twenty Twelve Enqueues a Google font. | |
* | |
* This is interesting because it allows translators to disable the font | |
* as well as conditionally load subsets. | |
*/ | |
function test_theme_enqueue_opensans() { | |
/* translators: If there are characters in your language that are not supported | |
by Open Sans, translate this to 'off'. Do not translate into your own language. */ |
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
.entry-content:after { | |
clear: both; | |
content: ''; | |
display: block; | |
} |
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 | |
/** | |
* Post Label. | |
* | |
* Returns a noun representing the type or format of the global | |
* post object. This function is used internally by the | |
* raven_entry_meta_taxonomy() function to create a sentence much | |
* like the following: "This Status Update is filed under News." | |
* where "Status Update" is the post label and "News" is the category. |
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
/** | |
* Exclude asides from the blog queries. | |
*/ | |
function mytheme_pre_get_posts( $query = false ) { | |
// Bail if not home, not a query, not main query. | |
if ( ! is_home() || ! is_a( $query, 'WP_Query' ) || ! $query->is_main_query() ) | |
return $query; | |
// Exclude aside formatted posts from the main query. |
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 | |
final class MfieldsDumpHook { | |
/** | |
* A list of hooks to dump | |
*/ | |
private static $hooks = null; |
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 | |
$audio = get_children( array( | |
'post_parent' => get_the_ID(), | |
'post_type' => 'attachment', | |
'post_mime_type' => 'audio', | |
'orderby' => 'menu_order', | |
'order' => 'ASC' | |
) ); | |
?> |