Skip to content
Browse files

Make the Cakifo textdomain static due to changes in Hybrid Core

  • Loading branch information...
1 parent ed41bbe commit d5b6def29015d4aab828d01af741e87e64ba4e17 @jayj committed Oct 20, 2011
View
4 404.php
@@ -20,10 +20,10 @@
<article id="post-0" class="<?php hybrid_entry_class(); ?>">
- <h1 class="error-404-title entry-title"><?php _e( "Oops! 404! 404!.. Help!.. We can't find the page!", hybrid_get_textdomain() ); ?></h1>
+ <h1 class="error-404-title entry-title"><?php _e( "Oops! 404! 404!.. Help!.. We can't find the page!", 'cakifo' ); ?></h1>
<div class="entry-content">
- <p><?php printf( __( "You tried going to %s but it doesn't exist. All is not lost! You can search for what you're looking for.", hybrid_get_textdomain() ), '<code>' . esc_html( $_SERVER['REQUEST_URI'] ) . '</code>' ); ?></p>
+ <p><?php printf( __( "You tried going to %s but it doesn't exist. All is not lost! You can search for what you're looking for.", 'cakifo' ), '<code>' . esc_html( $_SERVER['REQUEST_URI'] ) . '</code>' ); ?></p>
<?php get_search_form(); // Loads the searchform.php template ?>
View
8 attachment.php
@@ -28,7 +28,7 @@
<header class="entry-header">
<?php
echo apply_atomic_shortcode( "attachment_metadeta", '<div class="entry-format">' . sprintf(
- __( 'Published on [entry-published] in <a href="%1$s" title="Return to %2$s" rel="gallery">%2$s</a> [entry-edit-link before=" | "]', hybrid_get_textdomain() ),
+ __( 'Published on [entry-published] in <a href="%1$s" title="Return to %2$s" rel="gallery">%2$s</a> [entry-edit-link before=" | "]', 'cakifo' ),
esc_url( get_permalink( $post->post_parent ) ),
get_the_title( $post->post_parent )
) . '</div>' );
@@ -42,7 +42,7 @@
if ( wp_attachment_is_image( get_the_ID() ) ) :
?>
<p class="attachment-image">
- <a href="<?php echo wp_get_attachment_url( get_the_ID() ); ?>" title="<?php esc_attr_e( 'View full size', hybrid_get_textdomain() ); ?>">
+ <a href="<?php echo wp_get_attachment_url( get_the_ID() ); ?>" title="<?php esc_attr_e( 'View full size', 'cakifo' ); ?>">
<?php echo wp_get_attachment_image( get_the_ID(), 'full', false, array( 'class' => 'aligncenter' ) ); ?>
</a>
</p> <!-- .attachment-image -->
@@ -57,7 +57,7 @@
<?php hybrid_attachment(); // Function for handling non-image attachments ?>
<p class="download">
- <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download &quot;%1$s&quot;', hybrid_get_textdomain() ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
+ <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download &quot;%1$s&quot;', 'cakifo' ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
</p> <!-- .download -->
<?php endif; ?>
@@ -71,7 +71,7 @@
</div> <!-- .headline-list -->
<div id="attachment-gallery" class="headline-list last">
- <h4><?php _e( 'Gallery', hybrid_get_textdomain() ); ?></h4>
+ <h4><?php _e( 'Gallery', 'cakifo' ); ?></h4>
<?php echo apply_atomic_shortcode( 'attachment_gallery', sprintf( '[gallery id="%1$s" exclude="%2$s" columns="5" size="small"]', $post->post_parent, get_the_ID() ) ); ?>
</div> <!-- #attachment-gallery -->
</div> <!-- #image-info -->
View
2 comment.php
@@ -31,7 +31,7 @@
<div class="comment-content comment-text">
<?php if ( '0' == $comment->comment_approved ) : ?>
- <?php echo apply_atomic_shortcode( 'comment_moderation', '<p class="alert comment-awaiting-moderation">' . __( 'Your comment is awaiting moderation.', hybrid_get_textdomain() ) . '</p>' ); ?>
+ <?php echo apply_atomic_shortcode( 'comment_moderation', '<p class="alert comment-awaiting-moderation">' . __( 'Your comment is awaiting moderation.', 'cakifo' ) . '</p>' ); ?>
<?php endif; ?>
<?php comment_text( $comment->comment_ID ); ?>
View
10 comments.php
@@ -11,7 +11,7 @@
/* Kill the page if trying to access this template directly. */
if ( 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) )
- die( __( 'Please do not load this page directly. Thanks!', hybrid_get_textdomain() ) );
+ die( __( 'Please do not load this page directly. Thanks!', 'cakifo' ) );
/* If a post password is required or no comments are given and comments/pings are closed, return */
if ( post_password_required() || ( ! have_comments() && ! comments_open() && ! pings_open() ) )
@@ -22,7 +22,7 @@
<?php if ( have_comments() ) : ?>
- <h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', hybrid_get_textdomain() ), __( 'One Response', hybrid_get_textdomain() ), __( '% Responses', hybrid_get_textdomain() ) ); ?></h3>
+ <h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', 'cakifo' ), __( 'One Response', 'cakifo' ), __( '% Responses', 'cakifo' ) ); ?></h3>
<?php do_atomic( 'before_comment_list' );// cakifo_before_comment_list ?>
@@ -34,7 +34,7 @@
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<nav class="pagination comment-pagination">
- <h3 class="assistive-text"><?php _e( 'Comment navigation', hybrid_get_textdomain() ); ?></h3>
+ <h3 class="assistive-text"><?php _e( 'Comment navigation', 'cakifo' ); ?></h3>
<?php paginate_comments_links(); ?>
</nav> <!-- .comment-navigation -->
<?php endif; ?>
@@ -44,13 +44,13 @@
<?php if ( pings_open() && !comments_open() ) : ?>
<p class="comments-closed pings-open warning">
- <?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', hybrid_get_textdomain() ), get_trackback_url() ); ?>
+ <?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'cakifo' ), get_trackback_url() ); ?>
</p> <!-- .comments-closed .pings-open .warning -->
<?php elseif ( !comments_open() ) : ?>
<p class="comments-closed warning">
- <?php _e( 'Comments are closed.', hybrid_get_textdomain() ); ?>
+ <?php _e( 'Comments are closed.', 'cakifo' ); ?>
</p> <!-- .comments-closed .warning -->
<?php endif; ?>
View
28 functions/admin.php
@@ -27,7 +27,7 @@ function cakifo_theme_settings_meta_boxes() {
/* Add a Featured content box */
add_meta_box(
'cakifo-theme-meta-box',// Custom meta box ID
- __( 'Cakifo settings', hybrid_get_textdomain() ),
+ __( 'Cakifo settings', 'cakifo' ),
'cakifo_theme_meta_box', // Custom callback function
'appearance_page_theme-settings', // Page to load on, leave as is
'normal',
@@ -43,18 +43,18 @@ function cakifo_theme_meta_box() { ?>
<tr>
<th>
- <label for="<?php echo hybrid_settings_field_id( 'featured_show' ); ?>"><?php _e( 'Show Featured Content slider?', hybrid_get_textdomain() ); ?></label>
+ <label for="<?php echo hybrid_settings_field_id( 'featured_show' ); ?>"><?php _e( 'Show Featured Content slider?', 'cakifo' ); ?></label>
</th>
<td>
<p><input id="featured_show" name="<?php echo hybrid_settings_field_name( 'featured_show' ); ?>" type="checkbox" value="1" <?php checked( hybrid_get_setting( 'featured_show' ), 1 ); ?> /></p>
- <p><?php _e( 'Check to display the "Featured Content" slider', hybrid_get_textdomain() ); ?></p>
+ <p><?php _e( 'Check to display the "Featured Content" slider', 'cakifo' ); ?></p>
</td>
</tr>
<tr>
<th>
- <label for="<?php echo hybrid_settings_field_id( 'featured_category' ); ?>"><?php _e( 'Featured Category:', hybrid_get_textdomain() ); ?></label>
+ <label for="<?php echo hybrid_settings_field_id( 'featured_category' ); ?>"><?php _e( 'Featured Category:', 'cakifo' ); ?></label>
</th>
<td>
@@ -71,28 +71,28 @@ function cakifo_theme_meta_box() { ?>
</select>
</p>
- <p><?php _e( 'Leave blank to use sticky posts', hybrid_get_textdomain() ); ?></p>
+ <p><?php _e( 'Leave blank to use sticky posts', 'cakifo' ); ?></p>
</td>
</tr>
<tr>
<th>
- <label for="<?php echo hybrid_settings_field_id( 'featured_posts' ); ?>"><?php _e( 'Featured Posts:', hybrid_get_textdomain() ); ?></label>
+ <label for="<?php echo hybrid_settings_field_id( 'featured_posts' ); ?>"><?php _e( 'Featured Posts:', 'cakifo' ); ?></label>
</th>
<td>
<p><input type="number" min="-1" id="<?php echo hybrid_settings_field_id( 'featured_posts' ); ?>" name="<?php echo hybrid_settings_field_name( 'featured_posts' ); ?>" value="<?php echo esc_attr( hybrid_get_setting( 'featured_posts' ) ); ?>" class="small-text" /></p>
- <p><?php _e( 'How many featured posts should be shown? <code>-1</code> will show all posts in the category.', hybrid_get_textdomain() ); ?>
- <?php printf( __( '%s is the default', hybrid_get_textdomain() ), '<code>5</code>' ); ?></p>
+ <p><?php _e( 'How many featured posts should be shown? <code>-1</code> will show all posts in the category.', 'cakifo' ); ?>
+ <?php printf( __( '%s is the default', 'cakifo' ), '<code>5</code>' ); ?></p>
</td>
</tr>
<tr>
<th>
- <label for="<?php echo hybrid_settings_field_id( 'headlines_category' ); ?>"><?php _e( 'Headline Categories:', hybrid_get_textdomain() ); ?></label>
+ <label for="<?php echo hybrid_settings_field_id( 'headlines_category' ); ?>"><?php _e( 'Headline Categories:', 'cakifo' ); ?></label>
</th>
<td>
<p>
- <label for="<?php echo hybrid_settings_field_id( 'headlines_category' ); ?>"><?php _e( 'Multiple categories may be chosen by holding the <code>Ctrl</code> key and selecting.', hybrid_get_textdomain() ); ?></label>
+ <label for="<?php echo hybrid_settings_field_id( 'headlines_category' ); ?>"><?php _e( 'Multiple categories may be chosen by holding the <code>Ctrl</code> key and selecting.', 'cakifo' ); ?></label>
<br />
<select id="<?php echo hybrid_settings_field_id( 'headlines_category' ); ?>" name="<?php echo hybrid_settings_field_name( 'headlines_category' ); ?>[]" multiple="multiple" style="height:150px;">
@@ -104,23 +104,23 @@ function cakifo_theme_meta_box() { ?>
</td>
</tr>
<tr>
- <th><label for="<?php echo hybrid_settings_field_id( 'headlines_num_posts' ); ?>"><?php _e( 'Headlines Posts:', hybrid_get_textdomain() ); ?></label></th>
+ <th><label for="<?php echo hybrid_settings_field_id( 'headlines_num_posts' ); ?>"><?php _e( 'Headlines Posts:', 'cakifo' ); ?></label></th>
<td>
<p><input type="number" min="1" id="<?php echo hybrid_settings_field_id( 'headlines_num_posts' ); ?>" name="<?php echo hybrid_settings_field_name( 'headlines_num_posts' ); ?>" value="<?php echo esc_attr( hybrid_get_setting( 'headlines_num_posts' ) ); ?>" class="small-text" /></p>
- <p><?php _e( 'How many posts should be shown per headline category?', hybrid_get_textdomain() ); ?> <?php printf( __( '%s is the default', hybrid_get_textdomain() ), '<code>4</code>' ); ?></p></p>
+ <p><?php _e( 'How many posts should be shown per headline category?', 'cakifo' ); ?> <?php printf( __( '%s is the default', 'cakifo' ), '<code>4</code>' ); ?></p></p>
</td>
</tr>
<tr>
<?php $current_user = wp_get_current_user(); ?>
<th>
- <label for="<?php echo hybrid_settings_field_id( 'twitter_username' ); ?>"><?php _e( 'Twitter username:', hybrid_get_textdomain() ); ?></label>
+ <label for="<?php echo hybrid_settings_field_id( 'twitter_username' ); ?>"><?php _e( 'Twitter username:', 'cakifo' ); ?></label>
</th>
<td>
<p><input type="text" id="<?php echo hybrid_settings_field_id( 'twitter_username' ); ?>" name="<?php echo hybrid_settings_field_name( 'twitter_username' ); ?>" value="<?php if ( hybrid_get_setting( 'twitter_username' ) != '' ) echo esc_attr( hybrid_get_setting( 'twitter_username' ) ); elseif( isset( $current_user->twitter ) ) echo esc_attr( $current_user->twitter ); ?>" /></p>
- <p><?php _e( 'Your Twitter username (if you have one)', hybrid_get_textdomain() ); ?>
+ <p><?php _e( 'Your Twitter username (if you have one)', 'cakifo' ); ?>
</td>
</tr>
View
10 functions/shortcodes.php
@@ -43,7 +43,7 @@ function cakifo_rss_link_shortcode( $atts ) {
extract( shortcode_atts( array(
'before' => '',
'after' => '',
- 'text' => __( 'RSS', hybrid_get_textdomain() ),
+ 'text' => __( 'RSS', 'cakifo' ),
), $atts ) );
return $before . '<a href="' . esc_url( get_bloginfo( 'rss2_url' ) ) . '" class="rss-link">' . $text . '</a>' . $after;
@@ -64,7 +64,7 @@ function cakifo_twitter_shortcode( $atts ) {
'before' => '',
'after' => '',
'username' => hybrid_get_setting( 'twitter_username' ),
- 'text' => __( 'Follow me on Twitter', hybrid_get_textdomain() )
+ 'text' => __( 'Follow me on Twitter', 'cakifo' )
), $atts ) );
if ( empty( $username ) )
@@ -88,7 +88,7 @@ function cakifo_entry_delicious_link_shortcode( $atts ) {
'after' => '',
), $atts) );
- return $before . '<a href="http://delicious.com/save" onclick="window.open(\'http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=\'+encodeURIComponent(\'' . get_permalink() . '\')+\'&amp;title=\'+encodeURIComponent(\'' . the_title_attribute( 'echo=0' ) . '\'),\'delicious\', \'toolbar=no,width=550,height=550\'); return false;" class="delicious-share-button">' . __( 'Delicious', hybrid_get_textdomain() ) . '</a>' . $after;
+ return $before . '<a href="http://delicious.com/save" onclick="window.open(\'http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=\'+encodeURIComponent(\'' . get_permalink() . '\')+\'&amp;title=\'+encodeURIComponent(\'' . the_title_attribute( 'echo=0' ) . '\'),\'delicious\', \'toolbar=no,width=550,height=550\'); return false;" class="delicious-share-button">' . __( 'Delicious', 'cakifo' ) . '</a>' . $after;
}
/**
@@ -106,7 +106,7 @@ function cakifo_entry_digg_link_shortcode( $atts ) {
$url = 'http://digg.com/submit?phase=2&amp;url=' . urlencode( get_permalink( get_the_ID() ) ) . '&amp;title="' . urlencode( the_title_attribute( 'echo=0' ) );
- return $before . '<a href="' . esc_url( $url ) . '" title="' . __( 'Digg this entry', hybrid_get_textdomain() ) . '" class="digg-share-button">' . __( 'Digg', hybrid_get_textdomain() ) . '</a>' . $after;
+ return $before . '<a href="' . esc_url( $url ) . '" title="' . __( 'Digg this entry', 'cakifo' ) . '" class="digg-share-button">' . __( 'Digg', 'cakifo' ) . '</a>' . $after;
}
/**
@@ -333,7 +333,7 @@ function cakifo_entry_format_shortcode( $atts ) {
// If there's no post title, return a clickable '(No title)'.
if ( empty( $title ) && ! is_singular() && 'link_category' !== get_query_var( 'taxonomy' ) )
- $title = "<{$atts['heading']} class='entry-title no-entry-title'><a href='" . get_permalink() . "' rel='bookmark'>" . __( '(Untitled)', hybrid_get_textdomain() ) . "</a></{$atts['heading']}>";
+ $title = "<{$atts['heading']} class='entry-title no-entry-title'><a href='" . get_permalink() . "' rel='bookmark'>" . __( '(Untitled)', 'cakifo' ) . "</a></{$atts['heading']}>";
return $title;
}*/
View
39 functions/sidebars.php
@@ -32,14 +32,11 @@ function cakifo_register_sidebars() {
if ( !is_array( $sidebars[0] ) )
return;
- /* Get the theme textdomain. */
- $domain = hybrid_get_textdomain();
-
/* Set up the primary sidebar arguments. */
$primary = array(
'id' => 'primary',
- 'name' => __( 'Primary', $domain ),
- 'description' => __( 'The main (primary) widget area, most often used as a sidebar.', $domain ),
+ 'name' => __( 'Primary', 'cakifo' ),
+ 'description' => __( 'The main (primary) widget area, most often used as a sidebar.', 'cakifo' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s widget-%2$s">',
'after_widget' => '</aside>',
'before_title' => '<h2 class="widget-title">',
@@ -49,8 +46,8 @@ function cakifo_register_sidebars() {
/* Set up the secondary sidebar arguments. */
$secondary = array(
'id' => 'secondary',
- 'name' => __( 'Secondary', $domain ),
- 'description' => __( 'The second most important widget area, most often used as a secondary sidebar.', $domain ),
+ 'name' => __( 'Secondary', 'cakifo' ),
+ 'description' => __( 'The second most important widget area, most often used as a secondary sidebar.', 'cakifo' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s widget-%2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
@@ -60,8 +57,8 @@ function cakifo_register_sidebars() {
/* Set up the subsidiary sidebar arguments. */
$subsidiary = array(
'id' => 'subsidiary',
- 'name' => __( 'Subsidiary', $domain ),
- 'description' => __( 'A widget area loaded in the footer of the site.', $domain ),
+ 'name' => __( 'Subsidiary', 'cakifo' ),
+ 'description' => __( 'A widget area loaded in the footer of the site.', 'cakifo' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s widget-%2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
@@ -71,8 +68,8 @@ function cakifo_register_sidebars() {
/* Set up the header sidebar arguments. */
$header = array(
'id' => 'header',
- 'name' => __( 'Header', $domain ),
- 'description' => __( 'Displayed within the site\'s header area.', $domain ),
+ 'name' => __( 'Header', 'cakifo' ),
+ 'description' => __( 'Displayed within the site\'s header area.', 'cakifo' ),
'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-wrap widget-inside">',
'after_widget' => '</div></div>',
'before_title' => '<h3 class="widget-title">',
@@ -82,8 +79,8 @@ function cakifo_register_sidebars() {
/* Set up the before content sidebar arguments. */
$before_content = array(
'id' => 'before-content',
- 'name' => __( 'Before Content', $domain ),
- 'description' => __( 'Loaded before the page\'s main content area.', $domain ),
+ 'name' => __( 'Before Content', 'cakifo' ),
+ 'description' => __( 'Loaded before the page\'s main content area.', 'cakifo' ),
'before_widget' => '<section id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-wrap widget-inside">',
'after_widget' => '</div></section>',
'before_title' => '<h3 class="widget-title">',
@@ -93,8 +90,8 @@ function cakifo_register_sidebars() {
/* Set up the after content sidebar arguments. */
$after_content = array(
'id' => 'after-content',
- 'name' => __( 'After Content', $domain ),
- 'description' => __( 'Loaded after the page\'s main content area.', $domain ),
+ 'name' => __( 'After Content', 'cakifo' ),
+ 'description' => __( 'Loaded after the page\'s main content area.', 'cakifo' ),
'before_widget' => '<section id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-wrap widget-inside">',
'after_widget' => '</div></section>',
'before_title' => '<h3 class="widget-title">',
@@ -104,8 +101,8 @@ function cakifo_register_sidebars() {
/* Set up the after singular sidebar arguments. */
$after_singular = array(
'id' => 'after-singular',
- 'name' => __( 'After Singular', $domain ),
- 'description' => __( 'Loaded on singular post (page, attachment, etc.) views before the comments area.', $domain ),
+ 'name' => __( 'After Singular', 'cakifo' ),
+ 'description' => __( 'Loaded on singular post (page, attachment, etc.) views before the comments area.', 'cakifo' ),
'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
@@ -115,8 +112,8 @@ function cakifo_register_sidebars() {
/* Set up the after single sidebar arguments. */
$after_single = array(
'id' => 'after-single',
- 'name' => __( 'After Single', $domain ),
- 'description' => __( 'Loaded on single post views before the comments area.', $domain ),
+ 'name' => __( 'After Single', 'cakifo' ),
+ 'description' => __( 'Loaded on single post views before the comments area.', 'cakifo' ),
'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
@@ -126,8 +123,8 @@ function cakifo_register_sidebars() {
/* Set up the 404 error page arguments. */
$error_page = array(
'id' => 'error-page',
- 'name' => __( 'Error Page', $domain ),
- 'description' => __( 'Loaded on 404 error pages', $domain ),
+ 'name' => __( 'Error Page', 'cakifo' ),
+ 'description' => __( 'Loaded on 404 error pages', 'cakifo' ),
'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widget-title">',
View
4 functions/upgrade.php
@@ -96,11 +96,11 @@ function cakifo_update_notice() {
if ( $update_available ) :
$update = get_transient( 'cakifo-update-check' );
$update_url = wp_nonce_url( 'update.php?action=upgrade-theme&amp;theme=cakifo', 'upgrade-theme_cakifo' );
- $update_onclick = __( 'Upgrading Cakifo will overwrite the current installed version of Cakifo. Are you sure you want to upgrade?. "Cancel" to stop, "OK" to upgrade.', hybrid_get_textdomain() );
+ $update_onclick = __( 'Upgrading Cakifo will overwrite the current installed version of Cakifo. Are you sure you want to upgrade?. "Cancel" to stop, "OK" to upgrade.', 'cakifo' );
// The notice
echo '<div class="update-nag">';
- printf( __('Cakifo %s is available. <a href="%s">Check out what\'s new</a> or <a href="%s" onclick="return cakifo_confirm_upgrade(\'%s\');">update now</a>. ', hybrid_get_textdomain() ),
+ printf( __( 'Cakifo %s is available. <a href="%s">Check out what\'s new</a> or <a href="%s" onclick="return cakifo_confirm_upgrade(\'%s\');">update now</a>. ', 'cakifo' ),
esc_html( $update['new_version'] ),
esc_url( $update['url'] ),
$update_url,
View
24 loop-meta.php
@@ -12,7 +12,7 @@
<?php do_atomic( 'before_loop_meta' ); // cakifo_before_loop_meta ?>
-<?php if ( ( is_home() && !is_front_page() ) && hybrid_get_setting( 'featured_show' ) ) : ?>
+<?php if ( ( is_home() && ! is_front_page() ) && hybrid_get_setting( 'featured_show' ) ) : ?>
<?php global $wp_query; ?>
@@ -30,7 +30,7 @@
<div class="loop-meta">
- <h1 class="loop-title"><?php printf( __( 'Category Archives: %s', hybrid_get_textdomain() ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>
+ <h1 class="loop-title"><?php printf( __( 'Category Archives: %s', 'cakifo' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>
<div class="loop-description">
<?php echo category_description(); ?>
@@ -42,7 +42,7 @@
<div class="loop-meta">
- <h1 class="loop-title"><?php printf( __( 'Tag Archives: %s', hybrid_get_textdomain() ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?></h1>
+ <h1 class="loop-title"><?php printf( __( 'Tag Archives: %s', 'cakifo' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?></h1>
<div class="loop-description">
<?php echo tag_description(); ?>
@@ -55,7 +55,7 @@
<div class="loop-meta">
<h1 class="loop-title">
- <?php printf( __( 'Post format: %s', hybrid_get_textdomain() ), '<span>' . get_post_format_string( get_post_format( get_the_ID() ) ) . '</span>' ); ?>
+ <?php printf( __( 'Post format: %s', 'cakifo' ), '<span>' . get_post_format_string( get_post_format( get_the_ID() ) ) . '</span>' ); ?>
</h1>
<div class="loop-description">
@@ -70,7 +70,7 @@
<h1 class="loop-title">
<?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?>
- <?php printf( __( 'Archives: %s', hybrid_get_textdomain() ), '<span>' . $term->name . '</span>' ); ?>
+ <?php printf( __( 'Archives: %s', 'cakifo' ), '<span>' . $term->name . '</span>' ); ?>
</h1>
<div class="loop-description">
@@ -85,7 +85,7 @@
<div id="hcard-<?php the_author_meta( 'user_nicename', $user_id ); ?>" class="loop-meta vcard">
- <h1 class="loop-title"><?php printf( __( 'Author: %s', hybrid_get_textdomain() ), '<span class="fn n">' . get_the_author_meta( 'display_name', $user_id ) . '</span>' ); ?></h1>
+ <h1 class="loop-title"><?php printf( __( 'Author: %s', 'cakifo' ), '<span class="fn n">' . get_the_author_meta( 'display_name', $user_id ) . '</span>' ); ?></h1>
<div class="loop-description">
<?php $desc = get_the_author_meta( 'description', $user_id ); ?>
@@ -108,13 +108,13 @@
<?php $results = absint( $wp_query->found_posts ); ?>
<h1 class="loop-title">
- <?php printf( _n( "%d Search Result for:", "%d Search Results for:", $results, hybrid_get_textdomain() ), $results ); ?>
+ <?php printf( _n( "%d Search Result for:", "%d Search Results for:", $results, 'cakifo' ), $results ); ?>
<span><?php echo esc_attr( get_search_query() ); ?></span>
</h1>
<div class="loop-description">
<p>
- <?php printf( __( 'You are browsing the search results for &quot;%1$s&quot;', hybrid_get_textdomain() ), esc_attr( get_search_query() ) ); ?>
+ <?php printf( __( 'You are browsing the search results for &quot;%1$s&quot;', 'cakifo' ), esc_attr( get_search_query() ) ); ?>
</p>
</div> <!-- .loop-description -->
@@ -124,11 +124,11 @@
<div class="loop-meta">
- <h1 class="loop-title"><?php _e( 'Archives by date', hybrid_get_textdomain() ); ?></h1>
+ <h1 class="loop-title"><?php _e( 'Archives by date', 'cakifo' ); ?></h1>
<div class="loop-description">
<p>
- <?php _e( 'You are browsing the site archives by date.', hybrid_get_textdomain() ); ?>
+ <?php _e( 'You are browsing the site archives by date.', 'cakifo' ); ?>
</p>
</div> <!-- .loop-description -->
@@ -152,11 +152,11 @@
<div class="loop-meta">
- <h1 class="loop-title"><?php _e( 'Archives', hybrid_get_textdomain() ); ?></h1>
+ <h1 class="loop-title"><?php _e( 'Archives', 'cakifo' ); ?></h1>
<div class="loop-description">
<p>
- <?php _e( 'You are browsing the site archives.', hybrid_get_textdomain() ); ?>
+ <?php _e( 'You are browsing the site archives.', 'cakifo' ); ?>
</p>
</div> <!-- .loop-description -->
View
12 loop-nav.php
@@ -13,7 +13,7 @@
<?php if ( is_singular( 'post' ) ) : ?>
<nav class="pagination post-pagination clearfix">
- <h3 class="assistive-text"><?php _e( 'Post navigation', hybrid_get_textdomain() ); ?></h3>
+ <h3 class="assistive-text"><?php _e( 'Post navigation', 'cakifo' ); ?></h3>
<?php previous_post_link( '%link', '<span class="previous">&larr; %title</span>' ); ?>
<?php next_post_link( '%link', '<span class="next">%title &rarr;</span>' ); ?>
</nav> <!-- .pagination.post-pagination -->
@@ -22,17 +22,17 @@
elseif ( ! is_singular() && current_theme_supports( 'loop-pagination' ) ) :
loop_pagination( array(
- 'before' => '<nav class="pagination loop-pagination"><h3 class="assistive-text">' . __( 'Post navigation', hybrid_get_textdomain() ) . '</h3>',
+ 'before' => '<nav class="pagination loop-pagination"><h3 class="assistive-text">' . __( 'Post navigation', 'cakifo' ) . '</h3>',
'after' => '</nav>',
'mid_size' => 2,
- 'prev_text' => __( '&larr; Previous', hybrid_get_textdomain() ),
- 'next_text' => __( 'Next &rarr;', hybrid_get_textdomain() )
+ 'prev_text' => __( '&larr; Previous', 'cakifo' ),
+ 'next_text' => __( 'Next &rarr;', 'cakifo' )
) );
- elseif ( ! is_singular() && $nav = get_posts_nav_link( array( 'sep' => '', 'prelabel' => '<span class="previous">' . __( '&larr; Previous', hybrid_get_textdomain() ) . '</span>', 'nxtlabel' => '<span class="next">' . __( 'Next &rarr;', hybrid_get_textdomain() ) . '</span>' ) ) ) : ?>
+ elseif ( ! is_singular() && $nav = get_posts_nav_link( array( 'sep' => '', 'prelabel' => '<span class="previous">' . __( '&larr; Previous', 'cakifo' ) . '</span>', 'nxtlabel' => '<span class="next">' . __( 'Next &rarr;', 'cakifo' ) . '</span>' ) ) ) : ?>
<nav class="pagination">
- <h3 class="assistive-text"><?php _e( 'Post navigation', hybrid_get_textdomain() ); ?></h3>
+ <h3 class="assistive-text"><?php _e( 'Post navigation', 'cakifo' ); ?></h3>
<?php echo $nav; ?>
</nav> <!-- .pagination.loop-pagination -->
View
20 loop.php
@@ -41,7 +41,7 @@
$format = 'standard';
if ( 'post' == get_post_type() )
- echo apply_atomic_shortcode( "byline_{$format}", '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</div>' );
+ echo apply_atomic_shortcode( "byline_{$format}", '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-edit-link before=" | "]', 'cakifo' ) . '</div>' );
?>
</header> <!-- .entry-header -->
@@ -59,38 +59,38 @@
<div class="entry-content">
<div class="note">
<?php echo get_avatar( get_the_author_meta( 'ID' ), apply_atomic( 'status_avatar', '48' ) ); ?>
- <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', hybrid_get_textdomain() ) ); ?>
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'cakifo' ) ); ?>
</div>
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
</div> <!-- .entry-content -->
<?php elseif ( has_post_format( 'quote' ) || has_post_format( 'image' ) || has_post_format( 'gallery' ) ) : ?>
<div class="entry-content">
- <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', hybrid_get_textdomain() ) ); ?>
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'cakifo' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
</div> <!-- .entry-content -->
<?php elseif ( is_archive() || is_search() ) : // Only display Excerpts for Archives and Search ?>
<div class="entry-summary">
- <?php the_excerpt( __( 'Continue reading <span class="meta-nav">&raquo;</span>', hybrid_get_textdomain() ) ); ?>
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ <?php the_excerpt( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'cakifo' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
</div> <!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
- <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', hybrid_get_textdomain() ) ); ?>
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'cakifo' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
</div> <!-- .entry-content -->
<?php endif; ?>
<?php
/* Entry meta */
if ( 'post' == get_post_type() )
- echo apply_atomic_shortcode( "entry_meta_{$format}", '<footer class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="| Tagged "] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</footer>' );
+ echo apply_atomic_shortcode( "entry_meta_{$format}", '<footer class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="| Tagged "] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'cakifo' ) . '</footer>' );
?>
<div class="clear"></div>
View
2 menu-primary.php
@@ -19,7 +19,7 @@
<?php do_atomic( 'open_menu_primary' ); // cakifo_open_menu_primary ?>
<nav class="menu">
- <h3 class="assistive-text"><?php _e( 'Main menu', hybrid_get_textdomain() ); ?></h3>
+ <h3 class="assistive-text"><?php _e( 'Main menu', 'cakifo' ); ?></h3>
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
View
6 searchform.php
@@ -16,17 +16,17 @@
elseif ( is_404() )
$value = 'value="' . esc_attr( basename($_SERVER['REQUEST_URI']) ) . '"'; // Requested URI for 404 page
else
- $value= 'placeholder="' . esc_attr__( 'Search', hybrid_get_textdomain() ) . '"'; // Or Search as placeholder
+ $value= 'placeholder="' . esc_attr__( 'Search', 'cakifo' ) . '"'; // Or Search as placeholder
?>
<div class="search">
<form method="get" class="search-form" action="<?php echo trailingslashit( home_url() ); ?>">
<label>
- <span class="assistive-text"><?php _e( 'Search', hybrid_get_textdomain() ); ?></span>
+ <span class="assistive-text"><?php _e( 'Search', 'cakifo' ); ?></span>
<input class="search-text" type="search" name="s" <?php echo $value; ?> />
</label>
- <input class="search-submit" type="submit" value="<?php esc_attr_e( 'Search', hybrid_get_textdomain() ); ?>" />
+ <input class="search-submit" type="submit" value="<?php esc_attr_e( 'Search', 'cakifo' ); ?>" />
</form> <!-- .search-form -->
</div> <!-- .search -->
View
2 section-headlines.php
@@ -67,7 +67,7 @@
<div class="details">
<?php echo apply_atomic( 'headline_entry_title', the_title( '<h3 class="' . esc_attr( $post->post_type ) . '-title entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h3>', false ) ); ?>
- <?php echo apply_atomic_shortcode( 'headline_meta', '<span class="headline-meta">' . __( '[entry-published pubdate="no"] by [entry-author]', hybrid_get_textdomain() ) . '</span>' ); ?>
+ <?php echo apply_atomic_shortcode( 'headline_meta', '<span class="headline-meta">' . __( '[entry-published pubdate="no"] by [entry-author]', 'cakifo' ) . '</span>' ); ?>
</div> <!-- .details -->
<?php do_atomic( 'close_headline_list_item' ); // cakifo_close_headline_list_item ?>
View
4 section-recentposts.php
@@ -15,7 +15,7 @@
<?php $posts_page = ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) ) ? get_permalink( get_option( 'page_for_posts' ) ) : home_url( '/' ); ?>
- <h1 class="section-title"><a href="<?php echo esc_url( $posts_page ); ?>" title="<?php _e( 'See more posts', hybrid_get_textdomain() ); ?>"><?php _e( 'Recent Posts', hybrid_get_textdomain() ); ?></a></h1>
+ <h1 class="section-title"><a href="<?php echo esc_url( $posts_page ); ?>" title="<?php _e( 'See more posts', 'cakifo' ); ?>"><?php _e( 'Recent Posts', 'cakifo' ); ?></a></h1>
<?php
// Display our recent posts, ignoring Aside, Link, Quote and Status posts
@@ -64,7 +64,7 @@
<div class="details">
<?php echo apply_atomic( 'recent_post_entry_title', the_title( '<h2 class="' . esc_attr( $post->post_type ) . '-title entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>', false ) ); ?>
- <?php echo apply_atomic_shortcode( 'recent_posts_meta', '<span class="recent-posts-meta">' . __( '[entry-published] by [entry-author]', hybrid_get_textdomain() ) . '</span>' ); ?>
+ <?php echo apply_atomic_shortcode( 'recent_posts_meta', '<span class="recent-posts-meta">' . __( '[entry-published] by [entry-author]', 'cakifo' ) . '</span>' ); ?>
<div class="entry-summary">
<?php cakifo_the_excerpt( 20 ); ?>
View
5 section-slider.php
@@ -40,7 +40,7 @@
<section id="slider">
- <h3 class="assistive-text"><?php _e( 'Featured Posts', hybrid_get_textdomain() ); ?></h3>
+ <h3 class="assistive-text"><?php _e( 'Featured Posts', 'cakifo' ); ?></h3>
<div class="inner-slider">
@@ -95,7 +95,6 @@
// Change the width and height attributes
$video = preg_replace( array( '/width=".*?"/', '/height=".*?"/' ), array( 'width="' . $thumbnail_size['width'] . '"', 'height="' . round( 600 / 2.3 ) . '"' ), $video );
- // The video
echo '<div class="slider-video">' . $video . '</div>';
}
@@ -110,7 +109,7 @@
<div class="entry-summary">
<?php echo apply_atomic_shortcode( 'slider_entry_title', '[entry-title]' ); ?>
<?php the_excerpt(); ?>
- <a class="more-link" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php _e( 'Continue reading <span class="meta-nav">&raquo;</span>', hybrid_get_textdomain() ); ?></a>
+ <a class="more-link" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php _e( 'Continue reading <span class="meta-nav">&raquo;</span>', 'cakifo' ); ?></a>
</div> <!-- .entry-summary -->
<?php do_atomic( 'close_slide' ); // cakifo_close_slide ?>
View
10 template-archives.php
@@ -36,11 +36,11 @@
?>
<div class="entry-content">
- <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', hybrid_get_textdomain() ) ); ?>
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'cakifo' ) ); ?>
<?php do_atomic( 'before_archives' ); //cakifo_before_archives ?>
- <h2><?php _e( 'Archives by category', hybrid_get_textdomain() ); ?></h2>
+ <h2><?php _e( 'Archives by category', 'cakifo' ); ?></h2>
<ul class="xoxo category-archives">
<?php
@@ -52,7 +52,7 @@
?>
</ul> <!-- .xoxo .category-archives -->
- <h2><?php _e( 'Archives by month', hybrid_get_textdomain() ); ?></h2>
+ <h2><?php _e( 'Archives by month', 'cakifo' ); ?></h2>
<ul class="xoxo monthly-archives">
<?php
@@ -65,10 +65,10 @@
<?php do_atomic( 'after_archives' ); //cakifo_after_archives ?>
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
</div> <!-- .entry-content -->
- <?php edit_post_link( __( 'Edit', hybrid_get_textdomain() ), '<div class="entry-meta">', '</div>' ); ?>
+ <?php edit_post_link( __( 'Edit', 'cakifo' ), '<div class="entry-meta">', '</div>' ); ?>
<div class="clear"></div>
View
6 template-bookmarks.php
@@ -36,7 +36,7 @@
?>
<div class="entry-content">
- <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', hybrid_get_textdomain() ) ); ?>
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'cakifo' ) ); ?>
<?php do_atomic( 'before_bookmarks' ); //cakifo_before_bookmarks ?>
@@ -59,10 +59,10 @@
<?php do_atomic( 'after_bookmarks' ); //cakifo_after_bookmarks ?>
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
</div> <!-- .entry-content -->
- <?php edit_post_link( __( 'Edit', hybrid_get_textdomain() ), '<div class="entry-meta">', '</div>' ); ?>
+ <?php edit_post_link( __( 'Edit', 'cakifo' ), '<div class="entry-meta">', '</div>' ); ?>
<div class="clear"></div>

0 comments on commit d5b6def

Please sign in to comment.
Something went wrong with that request. Please try again.