Subversion Repositories ZenDark

Compare Revisions

Regard whitespace Rev 27 → Rev 26

/content-single.php
8,21 → 8,21
<h1 id="post-title"><?php the_title(); ?></h1>
<span class="entry-meta-top"><?php
// Show the author's name if the blog has more than one author
if (zendark_count_authors() > 1) {
if (sdt_count_authors() > 1) {
the_author(); echo ' &bull; ';
}
?><?php the_date() ?> <?php the_time() ?> <?php edit_post_link(__('Edit', 'zendark'), ' &bull; ', ''); ?></span>
?><?php the_date() ?> <?php the_time() ?> <?php edit_post_link(__('Edit', 'sdt'), ' &bull; ', ''); ?></span>
</header>
<div class="entry-content">
<?php the_content(__('Continue reading ⇾', 'zendark')); ?>
<?php wp_link_pages(array( 'before' => '<div class="page-link">'.__('Pages:', 'zendark'), 'after' => '</div>')); ?>
<?php the_content(__('Continue reading ⇾', 'sdt')); ?>
<?php wp_link_pages(array( 'before' => '<div class="page-link">'.__('Pages:', 'sdt'), 'after' => '</div>')); ?>
</div><!-- .entry-content -->
<footer class="entry-meta-bottom">
<?php printf(_n("category: ", "categories: ", count(get_the_category()), 'zendark')); the_category(', '); ?><br />
<?php printf(_n("tag: ", "tags: ", count(get_the_tags()), 'zendark')); the_tags('', ', ', ''); ?><br />
<a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__('Permalink to %s', 'zendark'), the_title_attribute('echo=0')); ?>" rel="bookmark"><?php _e('permalink', 'zendark'); ?></a>
<?php if (comments_open()) { ?> &bull; <a href="#respond" title="<?php _e('Write a comment', 'zendark'); ?>"><?php _e('reply', 'zendark'); ?></a><?php } ?>
<?php if (pings_open()) { ?> &bull; <a href="<?php trackback_url() ?>" title="<?php _e('Trackback URL', 'zendark'); ?>"><?php _e('trackback', 'zendark'); ?></a><?php } ?>
&bull; <?php post_comments_feed_link(__('comments RSS', 'zendark')) ?>
<?php printf(_n("category: ", "categories: ", count(get_the_category()), 'sdt')); the_category(', '); ?><br />
<?php printf(_n("tag: ", "tags: ", count(get_the_tags()), 'sdt')); the_tags('', ', ', ''); ?><br />
<a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__('Permalink to %s', 'sdt'), the_title_attribute('echo=0')); ?>" rel="bookmark"><?php _e('permalink', 'sdt'); ?></a>
<?php if (comments_open()) { ?> &bull; <a href="#respond" title="<?php _e('Write a comment', 'sdt'); ?>"><?php _e('reply', 'sdt'); ?></a><?php } ?>
<?php if (pings_open()) { ?> &bull; <a href="<?php trackback_url() ?>" title="<?php _e('Trackback URL', 'sdt'); ?>"><?php _e('trackback', 'sdt'); ?></a><?php } ?>
&bull; <?php post_comments_feed_link(__('comments RSS', 'sdt')) ?>
</footer>
</article>
/CHANGELOG
1,3 → 1,3
Version 1.0.0 (r27) (2011-10-16)
Version 1.0.0 (r26) (2011-10-16)
* Initial release
/searchform.php
4,6 → 4,6
*/
?>
<form method="get" class="searchform" action="<?php echo esc_url(home_url('/')); ?>">
<input type="text" class="s" name="s" placeholder="<?php esc_attr_e('Search', 'zendark'); ?>" />
<input type="image" class="ssubmit" src="<?php get_template_directory_uri(); ?>/images/search.png" alt="<?php _e('Search', 'zendark'); ?>" />
<input type="text" class="s" name="s" placeholder="<?php esc_attr_e('Search', 'sdt'); ?>" />
<input type="image" class="ssubmit" src="<?php get_template_directory_uri(); ?>/images/search.png" alt="<?php _e('Search', 'sdt'); ?>" />
</form>
/footer.php
8,9 → 8,9
</div><!-- #main -->
 
<footer id="main-footer">
<?php _e('Licence: ', 'zendark'); ?> <a href="<?php _e('http://creativecommons.org/licenses/by-nc-sa/3.0/', 'zendark'); ?>" title="<?php _e('Creative Commons Attribution, Non-commercial, Share-alike 3.0', 'zendark'); ?>" target="_blank">CC BY-NC-SA</a> &bull;
<?php _e('Platform: ', 'zendark'); ?> <a href="http://www.wordpress.org/" title="<?php _e('Go to the WordPress website', 'zendark'); ?>" target="_blank">WordPress</a> &bull;
<?php _e('Theme: ', 'zendark'); ?> <a href="http://www.iacchi.org/progetti/zendark/" title="<?php _e('Go to the theme website', 'zendark'); ?>" target="_blank">ZenDark</a>
<?php _e('Licence: ', 'sdt'); ?> <a href="<?php _e('http://creativecommons.org/licenses/by-nc-sa/3.0/', 'sdt'); ?>" title="<?php _e('Creative Commons Attribution, Non-commercial, Share-alike 3.0', 'sdt'); ?>" target="_blank">CC BY-NC-SA</a> &bull;
<?php _e('Platform: ', 'sdt'); ?> <a href="http://www.wordpress.org/" title="<?php _e('Go to the WordPress website', 'sdt'); ?>" target="_blank">WordPress</a> &bull;
<?php _e('Theme: ', 'sdt'); ?> <a href="http://www.iacchi.org/progetti/sdt/" title="<?php _e('Go to the theme website', 'sdt'); ?>" target="_blank">Simple Dark Theme</a>
</footer><!-- #main-footer -->
 
</div><!-- #page -->
/functions.php
1,6 → 1,6
<?php
// Add localisation support
load_theme_textdomain( 'zendark', TEMPLATEPATH . '/languages' );
load_theme_textdomain( 'sdt', TEMPLATEPATH . '/languages' );
$locale = get_locale();
$locale_file = TEMPLATEPATH ."/languages/$locale.php";
if (is_readable($locale_file)) require_once($locale_file);
15,42 → 15,42
if (!isset($content_width)) $content_width = 700;
 
// This theme uses wp_nav_menu() in one location.
function zendark_register_nav_menu() {
register_nav_menu('primary', __('Primary Menu', 'zendark'));
function sdt_register_nav_menu() {
register_nav_menu('primary', __('Primary Menu', 'sdt'));
}
add_action('init', 'zendark_register_nav_menu');
add_action('init', 'sdt_register_nav_menu');
 
// Sets the post excerpt length to 40 words.
function zendark_excerpt_length($length) {
function sdt_excerpt_length($length) {
return 40;
}
add_filter('excerpt_length', 'zendark_excerpt_length');
add_filter('excerpt_length', 'sdt_excerpt_length');
 
// Returns a "Continue Reading" link for excerpts
function zendark_continue_reading_link() {
return '<a href="'.esc_url(get_permalink()).'">'.__('Continue reading ⇾', 'zendark').'</a>';
function sdt_continue_reading_link() {
return '<a href="'.esc_url(get_permalink()).'">'.__('Continue reading ⇾', 'sdt').'</a>';
}
 
// Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and zendark_continue_reading_link().
function zendark_auto_excerpt_more($more) {
return '&hellip;<br />'.zendark_continue_reading_link();
// Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and sdt_continue_reading_link().
function sdt_auto_excerpt_more($more) {
return '&hellip;<br />'.sdt_continue_reading_link();
}
add_filter('excerpt_more', 'zendark_auto_excerpt_more');
add_filter('excerpt_more', 'sdt_auto_excerpt_more');
 
// Display navigation to next/previous pages when applicable
function zendark_content_nav( $nav_id ) {
function sdt_content_nav( $nav_id ) {
global $wp_query;
 
if ( $wp_query->max_num_pages > 1 ) : ?>
<nav id="<?php echo $nav_id; ?>">
<div class="nav-next"><?php previous_posts_link( __('⇽ Newer posts', 'zendark')); ?></div>
<div class="nav-previous"><?php next_posts_link( __('Older posts ⇾', 'zendark')); ?></div>
<div class="nav-next"><?php previous_posts_link( __('⇽ Newer posts', 'sdt')); ?></div>
<div class="nav-previous"><?php next_posts_link( __('Older posts ⇾', 'sdt')); ?></div>
</nav><!-- #<?php echo $nav_id; ?> -->
<?php endif;
}
 
// Count authors number (users with writing rights)
function zendark_count_authors(){
function sdt_count_authors(){
$number = 0;
$result = count_users();
foreach($result['avail_roles'] as $role => $count)
59,10 → 59,10
}
 
// Register sidebars
function zendark_widgets_init() {
function sdt_widgets_init() {
 
register_sidebar( array(
'name' => __( 'Main Sidebar', 'zendark' ),
'name' => __( 'Main Sidebar', 'sdt' ),
'id' => 'sidebar-1',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => "</aside>",
70,7 → 70,7
'after_title' => '</h3>',
) );
}
add_action('widgets_init', 'zendark_widgets_init');
add_action('widgets_init', 'sdt_widgets_init');
 
/*
* Adds two classes to the array of body classes.
77,26 → 77,26
* The first is if the site has only had one author with published posts.
* The second is if a singular post being displayed
*/
function zendark_body_classes($classes) {
function sdt_body_classes($classes) {
if (!is_multi_author()) { $classes[] = 'single-author'; }
if (is_singular() && !is_home()) $classes[] = 'singular';
return $classes;
}
add_filter('body_class', 'zendark_body_classes');
add_filter('body_class', 'sdt_body_classes');
 
// Get the first parent of a page
function zendark_get_root_parent($page_id) {
function sdt_get_root_parent($page_id) {
global $wpdb;
$parent = $wpdb->get_var("SELECT post_parent FROM $wpdb->posts WHERE post_type='page' AND ID = '$page_id'");
if ($parent == 0) return $page_id;
else return zendark_get_root_parent($parent);
else return sdt_get_root_parent($parent);
}
 
 
// Add class to menu <li> for first parent page
add_filter('nav_menu_css_class', 'zendark_special_nav_class', 10, 2);
function zendark_special_nav_class($classes, $item){
if($item->object_id == zendark_get_root_parent(get_the_ID())){
add_filter('nav_menu_css_class', 'sdt_special_nav_class', 10, 2);
function sdt_special_nav_class($classes, $item){
if($item->object_id == sdt_get_root_parent(get_the_ID())){
$classes[] = "current_page_parent_function";
}
return $classes;
124,7 → 124,7
/* Function to generate comments, I believe it's
* necessary if you want paged comments.
*/
function zendark_comment($comment, $args, $depth) {
function sdt_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
 
if ($comment->comment_type != "trackback" && $comment->comment_type != "pingback") : ?>
136,20 → 136,20
?>
<div>
<div class="comment-meta">
<span class="comment-author"><?php comment_author_link() ?></span> <?php edit_comment_link( __( 'Edit', 'zendark' ), ' &bull; ', '' ); ?><br />
<span class="comment-author"><?php comment_author_link() ?></span> <?php edit_comment_link( __( 'Edit', 'sdt' ), ' &bull; ', '' ); ?><br />
<?php printf('<span class="comment-datetime"><a href="%1$s"><time pubdate datetime="%2$s">%3$s</time></a></span>',
esc_url(get_comment_link($comment->comment_ID)),
get_comment_time('c'),
/* translators: 1: date, 2: time */
sprintf(__('%1$s %2$s', 'zendark'), get_comment_date(), get_comment_time())
sprintf(__('%1$s %2$s', 'sdt'), get_comment_date(), get_comment_time())
); ?>
</div>
<?php comment_reply_link(array_merge($args, array('reply_text' => __( 'reply', 'zendark'), 'login_text' => __( 'login to reply', 'zendark'), 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
<?php comment_reply_link(array_merge($args, array('reply_text' => __( 'reply', 'sdt'), 'login_text' => __( 'login to reply', 'sdt'), 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
</div>
</header>
<div class="comment-content">
<?php if ($comment->comment_approved == '0') : ?>
<div class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation', 'zendark'); ?></div>
<div class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation', 'sdt'); ?></div>
<?php endif; ?>
<?php comment_text(); ?>
</div>
159,7 → 159,7
}
 
// Function to generate trackback/pingback
function zendark_trackback($comment, $args, $depth) {
function sdt_trackback($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
 
if ($comment->comment_type == "trackback" || $comment->comment_type == "pingback") : ?>
172,7 → 172,7
}
 
// Function to count trackback/pingback
function zendark_trackback_number($comments) {
function sdt_trackback_number($comments) {
$numero_trackback = 0;
foreach ($comments as $comment) :
if ($comment->comment_type == "trackback" || $comment->comment_type == "pingback") $numero_trackback++;
184,7 → 184,7
* in case of paged comments. If you find a way to nicely separate comments
* and pingbacks/trackbacks in paged comments, please tell me.
*/
function zendark_all_comment($comment, $args, $depth) {
function sdt_all_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
 
if ($comment->comment_type != "trackback" && $comment->comment_type != "pingback") : ?>
196,20 → 196,20
?>
<div>
<div class="comment-meta">
<span class="comment-author"><?php comment_author_link() ?></span> <?php edit_comment_link( __( 'Edit', 'zendark' ), ' &bull; ', '' ); ?><br />
<span class="comment-author"><?php comment_author_link() ?></span> <?php edit_comment_link( __( 'Edit', 'sdt' ), ' &bull; ', '' ); ?><br />
<?php printf('<span class="comment-datetime"><a href="%1$s"><time pubdate datetime="%2$s">%3$s</time></a></span>',
esc_url(get_comment_link($comment->comment_ID)),
get_comment_time('c'),
/* translators: 1: date, 2: time */
sprintf(__('%1$s %2$s', 'zendark'), get_comment_date(), get_comment_time())
sprintf(__('%1$s %2$s', 'sdt'), get_comment_date(), get_comment_time())
); ?>
</div>
<?php comment_reply_link(array_merge($args, array('reply_text' => __( 'reply', 'zendark'), 'login_text' => __( 'login to reply', 'zendark'), 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
<?php comment_reply_link(array_merge($args, array('reply_text' => __( 'reply', 'sdt'), 'login_text' => __( 'login to reply', 'sdt'), 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
</div>
</header>
<div class="comment-content">
<?php if ($comment->comment_approved == '0') : ?>
<div class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation', 'zendark'); ?></div>
<div class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation', 'sdt'); ?></div>
<?php endif; ?>
<?php comment_text(); ?>
</div>
/style.css
1,6 → 1,6
/*
Theme Name: ZenDark
Theme URI: http://www.iacchi.org/progetti/zendark/
Theme Name: Simple Dark Theme
Theme URI: http://www.iacchi.org/progetti/sdt/
Author: Iacopo Benesperi
Author URI: http://www.iacchi.org/
Description: A lightweight dark theme for WordPress. It's built looking at the code of Twenty Eleven, and it features two layouts for pages (with sidebar on the left or on the right), widget and custom menu support. It comes with built-in fonts (the DejaVu font family). It also features a template page thought to display the content of a Zenphoto installation (on the same domain) within WordPress using an iframe: since this theme is based on the colour scheme of the Default dark Zenphoto theme, the integration is seamless.
/languages/it_IT.mo
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/languages/it_IT.po
3,9 → 3,9
msgid ""
msgstr ""
"Project-Id-Version: Simple Dark Theme 1.0\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/zendark\n"
"POT-Creation-Date: 2011-10-21 13:56:05+00:00\n"
"PO-Revision-Date: 2011-10-21 15:57+0100\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/sdt\n"
"POT-Creation-Date: 2011-10-16 13:06:11+00:00\n"
"PO-Revision-Date: 2011-10-17 16:01+0100\n"
"Last-Translator: Iacopo Benesperi <iacchi@iacchi.org>\n"
"Language-Team: Iacopo Benesperi <posta@iacchi.org>\n"
"Language: \n"
130,14 → 130,14
#: content-single.php:14
#: content.php:19
#: content-page.php:16
#: functions.php:139
#: functions.php:199
#: functions.php:132
#: functions.php:192
msgid "Edit"
msgstr "Modifica"
 
#: content-single.php:17
#: content.php:28
#: functions.php:31
#: functions.php:28
msgid "Continue reading ⇾"
msgstr "Continua a leggere ⇾"
 
148,7 → 148,7
msgstr "Pagine:"
 
#: content-single.php:21
#: content.php:39
#: content.php:38
msgid "category: "
msgid_plural "categories: "
msgstr[0] "categoria: "
155,7 → 155,7
msgstr[1] "categorie: "
 
#: content-single.php:22
#: content.php:40
#: content.php:39
msgid "tag: "
msgid_plural "tags: "
msgstr[0] "tag: "
175,8 → 175,8
msgstr "Scrivi un commento"
 
#: content-single.php:24
#: functions.php:147
#: functions.php:207
#: functions.php:140
#: functions.php:200
msgid "reply"
msgstr "rispondi"
 
334,35 → 334,35
msgid "Zenphoto URL"
msgstr "URL Zenphoto"
 
#: functions.php:19
#: functions.php:16
msgid "Primary Menu"
msgstr "Menu principale"
 
#: functions.php:46
#: functions.php:43
msgid "⇽ Newer posts"
msgstr "⇽ Post più recenti"
 
#: functions.php:47
#: functions.php:44
msgid "Older posts ⇾"
msgstr "Post più vecchi ⇾"
 
#: functions.php:65
#: functions.php:62
msgid "Main Sidebar"
msgstr "Barra laterale principale"
 
#. translators: 1: date, 2: time
#: functions.php:144
#: functions.php:204
#: functions.php:137
#: functions.php:197
msgid "%1$s %2$s"
msgstr "%1$s %2$s"
 
#: functions.php:147
#: functions.php:207
#: functions.php:140
#: functions.php:200
msgid "login to reply"
msgstr "collegati per rispondere"
 
#: functions.php:152
#: functions.php:212
#: functions.php:145
#: functions.php:205
msgid "Your comment is awaiting moderation"
msgstr "Il commento è in attesa di moderazione"
 
375,12 → 375,12
msgstr "Permalink:"
 
#. Theme Name of the plugin/theme
msgid "ZenDark"
msgstr "ZenDark"
msgid "Simple Dark Theme"
msgstr "Simple Dark Theme"
 
#. Theme URI of the plugin/theme
msgid "http://www.iacchi.org/progetti/zendark/"
msgstr "http://www.iacchi.org/progetti/zendark/"
msgid "http://www.iacchi.org/progetti/sdt/"
msgstr "http://www.iacchi.org/progetti/sdt/"
 
#. Description of the plugin/theme
msgid "A lightweight dark theme for WordPress. It's built looking at the code of Twenty Eleven, and it features two layouts for pages (with sidebar on the left or on the right), widget and custom menu support. It comes with built-in fonts (the DejaVu font family). It also features a template page thought to display the content of a Zenphoto installation (on the same domain) within WordPress using an iframe: since this theme is based on the colour scheme of the Default dark Zenphoto theme, the integration is seamless."
398,9 → 398,6
msgid "dark, light, gray, two-columns, left-sidebar, right-sidebar, fixed-width, custom-menu, translation-ready"
msgstr "dark, light, gray, two-columns, left-sidebar, right-sidebar, fixed-width, custom-menu, translation-ready"
 
#~ msgid "Simple Dark Theme"
#~ msgstr "Simple Dark Theme"
 
#~ msgid "tags: "
#~ msgstr "tag: "
 
618,6 → 615,9
#~ msgid "Content on left"
#~ msgstr "Contenuti a sinistra"
 
#~ msgid "Dark"
#~ msgstr "Scuro"
 
#~ msgid "Light"
#~ msgstr "Chiaro"
 
/content.php
5,7 → 5,7
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__('Permalink to %s', 'zendark'), the_title_attribute('echo=0')); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__('Permalink to %s', 'sdt'), the_title_attribute('echo=0')); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php
/* display the meta infos only if it's not a page, otherwise pages
* get the infos during searches.
13,10 → 13,10
if ($post->post_type != 'page') : ?>
<span class="entry-meta-top"><?php
// Show the author's name if the blog has more than one author
if(zendark_count_authors() > 1) {
if(sdt_count_authors() > 1) {
the_author(); echo ' &bull; ';
}
?><?php the_date() ?> <?php the_time() ?> &bull; <?php comments_popup_link(__('0 comments', 'zendark'),__('1 comment', 'zendark'),__('% comments', 'zendark'),'',__('Comments closed', 'zendark')); ?> <?php edit_post_link(__('Edit', 'zendark'), ' &bull; ', ''); ?></span>
?><?php the_date() ?> <?php the_time() ?> &bull; <?php comments_popup_link(__('0 comments', 'sdt'),__('1 comment', 'sdt'),__('% comments', 'sdt'),'',__('Comments closed', 'sdt')); ?> <?php edit_post_link(__('Edit', 'sdt'), ' &bull; ', ''); ?></span>
<?php endif; ?>
</header>
<?php if (!is_home()) : // Display the entire post only in the index ?>
25,8 → 25,8
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_content(__('Continue reading ⇾', 'zendark')); ?>
<?php wp_link_pages(array( 'before' => '<div class="page-link">'.__('Pages:', 'zendark'), 'after' => '</div>')); ?>
<?php the_content(__('Continue reading ⇾', 'sdt')); ?>
<?php wp_link_pages(array( 'before' => '<div class="page-link">'.__('Pages:', 'sdt'), 'after' => '</div>')); ?>
<div style="clear:both"></div>
</div><!-- .entry-content -->
<?php endif; ?>
36,8 → 36,8
*/
if ($post->post_type != 'page') : ?>
<footer class="entry-meta-bottom">
<?php printf(_n("category: ", "categories: ", count(get_the_category()), 'zendark')); the_category(', '); ?><br />
<?php printf(_n("tag: ", "tags: ", count(get_the_tags()), 'zendark')); the_tags('', ', ', ''); ?>
<?php printf(_n("category: ", "categories: ", count(get_the_category()), 'sdt')); the_category(', '); ?><br />
<?php printf(_n("tag: ", "tags: ", count(get_the_tags()), 'sdt')); the_tags('', ', ', ''); ?>
</footer>
<?php endif; ?>
</article>
/content-zenphoto.php
7,14 → 7,14
add_action('wp_head', '<script src="'.get_template_directory_uri().'/js/iframe.js" type="text/javascript"></script>');
 
// Recall Zenphoto installation URL
$options = get_option('zendark_theme_options');
$options = get_option('sdt_theme_options');
?>
<script src="<?php echo get_template_directory_uri(); ?>/js/iframe.js" type="text/javascript"></script>
 
<div id="iframe-title">
<?php _e('Permalink:', 'zendark'); ?> <a href="a" id="iframe-url">a</a>
<?php _e('Permalink:', 'sdt'); ?> <a href="a" id="iframe-url">a</a>
</div>
<div>
<iframe id="iframe-page" src="<?php echo $options['zenphoto_url']; ?>" height="100%"
onLoad="zendark_autoResize('iframe-page');zendark_getURL('iframe-page');" scrolling="no" frameborder="0"></iframe>
onLoad="sdt_autoResize('iframe-page');sdt_getURL('iframe-page');" scrolling="no" frameborder="0"></iframe>
</div>
/js/iframe.js
1,4 → 1,4
function zendark_autoResize(id){
function sdt_autoResize(id){
// form now on we try to push some css inside the iframe to
// modify #main width to 638px (maximum allowed to keep everything
// inside 700px) without editing the Zenphoto css
22,7 → 22,7
document.getElementById(id).height = (newheight) + "px";
}
 
function zendark_getURL(id){
function sdt_getURL(id){
var url;
var title;
 
/theme-options.php
4,35 → 4,35
*/
/*
* Register the form setting for our zendark_options array.
* Register the form setting for our sdt_options array.
*
* This function is attached to the admin_init action hook.
*
* This call to register_setting() registers a validation callback, zendark_theme_options_validate(),
* This call to register_setting() registers a validation callback, sdt_theme_options_validate(),
* which is used when the option is saved, to ensure that our option values are complete, properly
* formatted, and safe.
*
* We also use this function to add our theme option if it doesn't already exist.
*/
function zendark_theme_options_init() {
function sdt_theme_options_init() {
 
// If we have no options in the database, let's add them now.
if (false === zendark_get_theme_options())
add_option('zendark_theme_options', zendark_get_default_theme_options());
if (false === sdt_get_theme_options())
add_option('sdt_theme_options', sdt_get_default_theme_options());
 
register_setting(
'zendark_options', // Options group, see settings_fields() call in theme_options_render_page()
'zendark_theme_options', // Database option, see zendark_get_theme_options()
'zendark_theme_options_validate' // The sanitization callback, see zendark_theme_options_validate()
'sdt_options', // Options group, see settings_fields() call in theme_options_render_page()
'sdt_theme_options', // Database option, see sdt_get_theme_options()
'sdt_theme_options_validate' // The sanitization callback, see sdt_theme_options_validate()
);
}
add_action('admin_init', 'zendark_theme_options_init');
add_action('admin_init', 'sdt_theme_options_init');
 
/*
* Change the capability required to save the 'zendark_options' options group.
* Change the capability required to save the 'sdt_options' options group.
*
* @see zendark_theme_options_init() First parameter to register_setting() is the name of the options group.
* @see zendark_theme_options_add_page() The edit_theme_options capability is used for viewing the page.
* @see sdt_theme_options_init() First parameter to register_setting() is the name of the options group.
* @see sdt_theme_options_add_page() The edit_theme_options capability is used for viewing the page.
*
* By default, the options groups for all registered settings require the manage_options capability.
* This filter is required to change our theme options page to edit_theme_options instead.
42,10 → 42,10
* @param string $capability The capability used for the page, which is manage_options by default.
* @return string The capability to actually use.
*/
function zendark_option_page_capability($capability) {
function sdt_option_page_capability($capability) {
return 'edit_theme_options';
}
add_filter('option_page_capability_zendark_options', 'zendark_option_page_capability');
add_filter('option_page_capability_sdt_options', 'sdt_option_page_capability');
 
/*
* Add our theme options page to the admin menu, including some help documentation.
52,35 → 52,35
*
* This function is attached to the admin_menu action hook.
*/
function zendark_theme_options_add_page() {
function sdt_theme_options_add_page() {
$theme_page = add_theme_page(
__('Theme Options', 'zendark'), // Name of page
__('Theme Options', 'zendark'), // Label in menu
__('Theme Options', 'sdt'), // Name of page
__('Theme Options', 'sdt'), // Label in menu
'edit_theme_options', // Capability required
'theme_options', // Menu slug, used to uniquely identify the page
'zendark_theme_options_render_page' // Function that renders the options page
'sdt_theme_options_render_page' // Function that renders the options page
);
 
if (!$theme_page)
return;
 
$help = '<p>'.__('Some themes provide customization options that are grouped together on a Theme Options screen. If you change themes, options may change or disappear, as they are theme-specific. Your current theme, Simple Dark Theme, provides the following Theme Options:', 'zendark').'</p>' .
$help = '<p>'.__('Some themes provide customization options that are grouped together on a Theme Options screen. If you change themes, options may change or disappear, as they are theme-specific. Your current theme, Simple Dark Theme, provides the following Theme Options:', 'sdt').'</p>' .
'<ol>' .
'<li>'.__( '<strong>Zenphoto integration</strong>: You can insert the URL of your Zenphoto installation (if on the same domain of this WordPress installation) to integrate it on a WordPress page.', 'zendark').'</li>'.
'<li>'.__( '<strong>Zenphoto integration</strong>: You can insert the URL of your Zenphoto installation (if on the same domain of this WordPress installation) to integrate it on a WordPress page.', 'sdt').'</li>'.
'</ol>'.
'<p>'.__('Remember to click "Save Changes" to save any changes you have made to the theme options.', 'zendark').'</p>'.
'<p><strong>'.__('For more information:', 'zendark').'</strong></p>'.
'<p>'.__('<a href="http://codex.wordpress.org/Appearance_Theme_Options_Screen" target="_blank">Documentation on Theme Options</a>', 'zendark').'</p>'.
'<p>'.__('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>', 'zendark').'</p>';
'<p>'.__('Remember to click "Save Changes" to save any changes you have made to the theme options.', 'sdt').'</p>'.
'<p><strong>'.__('For more information:', 'sdt').'</strong></p>'.
'<p>'.__('<a href="http://codex.wordpress.org/Appearance_Theme_Options_Screen" target="_blank">Documentation on Theme Options</a>', 'sdt').'</p>'.
'<p>'.__('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>', 'sdt').'</p>';
 
add_contextual_help($theme_page, $help);
}
add_action('admin_menu', 'zendark_theme_options_add_page');
add_action('admin_menu', 'sdt_theme_options_add_page');
 
/*
* Returns the default options
*/
function zendark_get_default_theme_options() {
function sdt_get_default_theme_options() {
$default_theme_options = array(
'zenphoto_url' => 'http://'
);
89,30 → 89,30
/*
* Returns the options array
*/
function zendark_get_theme_options() {
return get_option('zendark_theme_options', zendark_get_default_theme_options());
function sdt_get_theme_options() {
return get_option('sdt_theme_options', sdt_get_default_theme_options());
}
 
/*
* Returns the options page
*/
function zendark_theme_options_render_page() {
function sdt_theme_options_render_page() {
?>
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php printf(__('%s Theme Options', 'zendark'), get_current_theme()); ?></h2>
<h2><?php printf(__('%s Theme Options', 'sdt'), get_current_theme()); ?></h2>
<?php settings_errors(); ?>
 
<form method="post" action="options.php" style="margin-top: 20px;">
<?php
settings_fields('zendark_options');
$options = zendark_get_theme_options();
$default_options = zendark_get_default_theme_options();
settings_fields('sdt_options');
$options = sdt_get_theme_options();
$default_options = sdt_get_default_theme_options();
?>
<fieldset>
<label><?php _e('Zenphoto URL:', 'zendark'); ?></label>
<legend class="screen-reader-text"><span><?php _e('Zenphoto URL', 'zendark'); ?></span></legend>
<input type="text" name="zendark_theme_options[zenphoto_url]" id="zenphoto-url" value="<?php echo esc_attr( $options['zenphoto_url'] ); ?>" size="60" />
<label><?php _e('Zenphoto URL:', 'sdt'); ?></label>
<legend class="screen-reader-text"><span><?php _e('Zenphoto URL', 'sdt'); ?></span></legend>
<input type="text" name="sdt_theme_options[zenphoto_url]" id="zenphoto-url" value="<?php echo esc_attr( $options['zenphoto_url'] ); ?>" size="60" />
</fieldset>
<?php submit_button(); ?>
</form>
123,13 → 123,13
/*
* Sanitize and validate form input. Accepts an array, return a sanitized array.
*/
function zendark_theme_options_validate($input) {
$output = $defaults = zendark_get_default_theme_options();
function sdt_theme_options_validate($input) {
$output = $defaults = sdt_get_default_theme_options();
 
// Zenphoto URL must be in our array
if (isset( $input['zenphoto_url']))
$output['zenphoto_url'] = $input['zenphoto_url'];
 
return apply_filters('zendark_theme_options_validate', $output, $input, $defaults);
return apply_filters('sdt_theme_options_validate', $output, $input, $defaults);
}
?>
/author.php
10,14 → 10,14
<?php if (have_posts()) : the_post(); ?>
 
<header id="search-header">
<h1 id="search-title"><?php printf(__('Author Archives: %s', 'zendark'), get_the_author()); ?></h1>
<h1 id="search-title"><?php printf(__('Author Archives: %s', 'sdt'), get_the_author()); ?></h1>
<?php
if (get_the_author_meta('description')) : ?>
<div class="author-archive-meta"><p><?php _e('About the author:', 'zendark'); echo ' '; the_author_meta('description'); ?></p></div>
<div class="author-archive-meta"><p><?php _e('About the author:', 'sdt'); echo ' '; the_author_meta('description'); ?></p></div>
<?php endif; ?>
</header>
 
<?php zendark_content_nav('nav-above'); ?>
<?php sdt_content_nav('nav-above'); ?>
 
<?php
//Reset the loop
36,16 → 36,16
 
<?php endwhile; ?>
 
<?php zendark_content_nav('nav-below'); ?>
<?php sdt_content_nav('nav-below'); ?>
 
<?php else : ?>
 
<div>
<header id="search-header">
<h1 id="search-title"><?php _e( 'Nothing Found', 'zendark' ); ?></h1>
<h1 id="search-title"><?php _e( 'Nothing Found', 'sdt' ); ?></h1>
</header><!-- .entry-header -->
<div id="search-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'zendark' ); ?></p>
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'sdt' ); ?></p>
<?php get_search_form(); ?>
</div><!-- #search-content -->
</div>
/search.php
10,10 → 10,10
<?php if (have_posts()) : ?>
 
<header id="search-header">
<h1 id="search-title"><?php printf(__('Search Results for: %s', 'zendark'), '<span>'.get_search_query().'</span>'); ?></h1>
<h1 id="search-title"><?php printf(__('Search Results for: %s', 'sdt'), '<span>'.get_search_query().'</span>'); ?></h1>
</header>
 
<?php zendark_content_nav('nav-above'); ?>
<?php sdt_content_nav('nav-above'); ?>
 
<?php /* Start the Loop */ ?>
<?php while (have_posts()) : the_post(); ?>
28,16 → 28,16
 
<?php endwhile; ?>
 
<?php zendark_content_nav('nav-below'); ?>
<?php sdt_content_nav('nav-below'); ?>
 
<?php else : ?>
 
<div>
<header id="search-header">
<h1 id="search-title"><?php _e('Nothing Found', 'zendark'); ?></h1>
<h1 id="search-title"><?php _e('Nothing Found', 'sdt'); ?></h1>
</header><!-- #search-header -->
<div id="search-content">
<p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'zendark'); ?></p>
<p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'sdt'); ?></p>
<?php get_search_form(); ?>
</div><!-- #search-content -->
</div>
/index.php
15,21 → 15,21
 
<?php
if (have_posts()) :
zendark_content_nav('nav-above');
sdt_content_nav('nav-above');
// Start the Loop
while (have_posts()) : the_post();
get_template_part('content', false);
endwhile;
zendark_content_nav('nav-below');
sdt_content_nav('nav-below');
else :
?>
<div>
<header id="search-header">
<h1 id="search-title"><?php _e( 'Nothing Found', 'zendark' ); ?></h1>
<h1 id="search-title"><?php _e( 'Nothing Found', 'sdt' ); ?></h1>
</header><!-- .entry-header -->
<div id="search-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'zendark' ); ?></p>
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'sdt' ); ?></p>
<?php get_search_form(); ?>
</div><!-- #search-content -->
</div>
/404.php
9,10 → 9,10
 
<div>
<header id="search-header">
<h1 id="search-title"><?php _e('Error 404', 'zendark'); ?></h1>
<h1 id="search-title"><?php _e('Error 404', 'sdt'); ?></h1>
</header><!-- #search-header -->
<div id="search-content">
<p><?php _e( 'The address you entered has no correspondance in this website. Try to search for what you&rsquo;re looking for.', 'zendark' ); ?></p>
<p><?php _e( 'The address you entered has no correspondance in this website. Try to search for what you&rsquo;re looking for.', 'sdt' ); ?></p>
<?php get_search_form(); ?>
</div><!-- #search-content -->
</div>
/sidebar.php
7,7 → 7,7
<?php if (!dynamic_sidebar('sidebar-1')) : ?>
<?php get_search_form(); ?>
<aside id="meta" class="widget">
<h3 class="widget-title"><?php _e('Meta', 'zendark'); ?></h3>
<h3 class="widget-title"><?php _e('Meta', 'sdt'); ?></h3>
<ul>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
/tag.php
10,7 → 10,7
<?php if (have_posts()) : ?>
 
<header id="search-header">
<h1 id="search-title"><?php printf(__('Tag Archives: %s', 'zendark'), single_tag_title('', false)); ?></h1>
<h1 id="search-title"><?php printf(__('Tag Archives: %s', 'sdt'), single_tag_title('', false)); ?></h1>
<?php
$tag_description = tag_description();
if (!empty($tag_description))
18,7 → 18,7
?>
</header>
 
<?php zendark_content_nav('nav-above'); ?>
<?php sdt_content_nav('nav-above'); ?>
 
<?php /* Start the Loop */ ?>
<?php while (have_posts()) : the_post(); ?>
33,16 → 33,16
 
<?php endwhile; ?>
 
<?php zendark_content_nav('nav-below'); ?>
<?php sdt_content_nav('nav-below'); ?>
 
<?php else : ?>
 
<div>
<header id="search-header">
<h1 id="search-title"><?php _e( 'Nothing Found', 'zendark' ); ?></h1>
<h1 id="search-title"><?php _e( 'Nothing Found', 'sdt' ); ?></h1>
</header><!-- .entry-header -->
<div id="search-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'zendark' ); ?></p>
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'sdt' ); ?></p>
<?php get_search_form(); ?>
</div><!-- #search-content -->
</div>
/category.php
10,7 → 10,7
<?php if (have_posts()) : ?>
 
<header id="search-header">
<h1 id="search-title"><?php printf(__('Category Archives: %s', 'zendark'), single_cat_title('', false)); ?></h1>
<h1 id="search-title"><?php printf(__('Category Archives: %s', 'sdt'), single_cat_title('', false)); ?></h1>
<?php
$category_description = category_description();
if (!empty($category_description))
18,7 → 18,7
?>
</header>
 
<?php zendark_content_nav('nav-above'); ?>
<?php sdt_content_nav('nav-above'); ?>
 
<?php /* Start the Loop */ ?>
<?php while (have_posts()) : the_post(); ?>
33,16 → 33,16
 
<?php endwhile; ?>
 
<?php zendark_content_nav('nav-below'); ?>
<?php sdt_content_nav('nav-below'); ?>
 
<?php else : ?>
 
<div>
<header id="search-header">
<h1 id="search-title"><?php _e( 'Nothing Found', 'zendark' ); ?></h1>
<h1 id="search-title"><?php _e( 'Nothing Found', 'sdt' ); ?></h1>
</header><!-- .entry-header -->
<div id="search-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'zendark' ); ?></p>
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'sdt' ); ?></p>
<?php get_search_form(); ?>
</div><!-- #search-content -->
</div>
/archive.php
17,18 → 17,18
<header id="search-header">
<h1 id="search-title">
<?php if (is_day()) : ?>
<?php printf(__('Daily Archives: %s', 'zendark'), get_the_date()); ?>
<?php printf(__('Daily Archives: %s', 'sdt'), get_the_date()); ?>
<?php elseif (is_month()) : ?>
<?php printf(__('Monthly Archives: %s', 'zendark'), get_the_date('F Y')); ?>
<?php printf(__('Monthly Archives: %s', 'sdt'), get_the_date('F Y')); ?>
<?php elseif ( is_year() ) : ?>
<?php printf(__('Yearly Archives: %s', 'zendark'), get_the_date('Y')); ?>
<?php printf(__('Yearly Archives: %s', 'sdt'), get_the_date('Y')); ?>
<?php else : ?>
<?php _e('Blog Archives', 'zendark'); ?>
<?php _e('Blog Archives', 'sdt'); ?>
<?php endif; ?>
</h1>
</header>
 
<?php zendark_content_nav('nav-above'); ?>
<?php sdt_content_nav('nav-above'); ?>
 
<?php /* Start the Loop */ ?>
<?php while (have_posts()) : the_post(); ?>
43,16 → 43,16
 
<?php endwhile; ?>
 
<?php zendark_content_nav('nav-below'); ?>
<?php sdt_content_nav('nav-below'); ?>
 
<?php else : ?>
 
<div>
<header id="search-header">
<h1 id="search-title"><?php _e( 'Nothing Found', 'zendark' ); ?></h1>
<h1 id="search-title"><?php _e( 'Nothing Found', 'sdt' ); ?></h1>
</header><!-- .entry-header -->
<div id="search-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'zendark' ); ?></p>
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'sdt' ); ?></p>
<?php get_search_form(); ?>
</div><!-- #search-content -->
</div>
/content-page.php
5,7 → 5,7
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
if (get_the_title() != get_the_title(zendark_get_root_parent(get_the_ID()))) { ?>
if (get_the_title() != get_the_title(sdt_get_root_parent(get_the_ID()))) { ?>
<header class="entry-header">
<h1 id="page-title"><?php the_title(); ?></h1>
</header>
12,8 → 12,8
<?php } ?>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages(array( 'before' => '<div class="page-link">'.__('Pages:', 'zendark'), 'after' => '</div>')); ?>
<?php edit_post_link(__('Edit', 'zendark'), '<span class="entry-meta-top">', '</span>'); ?>
<?php wp_link_pages(array( 'before' => '<div class="page-link">'.__('Pages:', 'sdt'), 'after' => '</div>')); ?>
<?php edit_post_link(__('Edit', 'sdt'), '<span class="entry-meta-top">', '</span>'); ?>
<div style="clear:both"></div>
</div><!-- .entry-content -->
</article>
/comments.php
5,7 → 5,7
?>
<div id="comments">
<?php if (post_password_required()) { ?>
<h3 class="comments-title"><?php _e( 'This post is password protected: enter the password to view any comments', 'zendark' ); ?></h3>
<h3 class="comments-title"><?php _e( 'This post is password protected: enter the password to view any comments', 'sdt' ); ?></h3>
</div><!-- #comments -->
<?php
/* Stop the rest of comments.php from being processed,
19,7 → 19,7
<?php if (have_comments()) : ?>
<h3 class="comments-title">
<?php
printf(_n('One comment on "%2$s"', '%1$s comments on "%2$s"', get_comments_number(), 'zendark'), number_format_i18n(get_comments_number()), get_the_title());
printf(_n('One comment on "%2$s"', '%1$s comments on "%2$s"', get_comments_number(), 'sdt'), number_format_i18n(get_comments_number()), get_the_title());
?>
</h3>
 
32,8 → 32,8
if (get_option('page_comments')) : // are there comments to navigate through
if (get_comment_pages_count() > 1) : ?>
<nav id="comment-nav-above">
<div class="nav-next"><?php next_comments_link(__('⇽ Newer Comments', 'zendark')); ?></div>
<div class="nav-previous"><?php previous_comments_link(__('Older Comments ⇾', 'zendark')); ?></div>
<div class="nav-next"><?php next_comments_link(__('⇽ Newer Comments', 'sdt')); ?></div>
<div class="nav-previous"><?php previous_comments_link(__('Older Comments ⇾', 'sdt')); ?></div>
</nav>
<?php endif; ?>
 
44,14 → 44,14
* define twentyeleven_comment() and that will be used instead.
* See twentyeleven_comment() in twentyeleven/functions.php for more.
*/
wp_list_comments(array('callback' => 'zendark_all_comment'));
wp_list_comments(array('callback' => 'sdt_all_comment'));
 
if (get_comment_pages_count() > 1) :
?>
<nav id="comment-nav-below">
<div class="nav-next"><?php next_comments_link(__('⇽ Newer Comments', 'zendark')); ?></div>
<div class="nav-previous"><?php previous_comments_link(__('Older Comments ⇾', 'zendark')); ?></div>
<div class="nav-next"><?php next_comments_link(__('⇽ Newer Comments', 'sdt')); ?></div>
<div class="nav-previous"><?php previous_comments_link(__('Older Comments ⇾', 'sdt')); ?></div>
</nav>
<?php endif; ?>
<?php endif; // check for comment navigation ?>
67,10 → 67,10
* define twentyeleven_comment() and that will be used instead.
* See twentyeleven_comment() in twentyeleven/functions.php for more.
*/
wp_list_comments(array('callback' => 'zendark_comment'));
wp_list_comments(array('callback' => 'sdt_comment'));
 
// Check if we have pingbacks/trackbacks before displaying them
if (zendark_trackback_number($comments) != 0) :
if (sdt_trackback_number($comments) != 0) :
?>
<h3 class="comments-title">Trackback e pingback</h3>
 
77,7 → 77,7
<?php
/* This way we separate comments from trackpacks/pingbacks
*/
wp_list_comments(array('callback' => 'zendark_trackback'));
wp_list_comments(array('callback' => 'sdt_trackback'));
endif;
endif; // check for comment navigation ?>
<?php endif; ?>
88,7 → 88,7
*/
if (!comments_open() && !pings_open() && !is_page()) :
?>
<h3 class="comments-title"><?php _e('Comments and trackbacks are closed', 'zendark'); ?></h3>
<h3 class="comments-title"><?php _e('Comments and trackbacks are closed', 'sdt'); ?></h3>
<?php endif; ?>
 
<?php
97,7 → 97,7
*/
if (!comments_open() && pings_open() && !is_page()) :
?>
<h3 class="comments-title"><?php _e('Comments are closed', 'zendark'); ?></h3>
<h3 class="comments-title"><?php _e('Comments are closed', 'sdt'); ?></h3>
<?php endif; ?>
 
<?php
106,7 → 106,7
*/
if (comments_open() && !pings_open() && !is_page()) :
?>
<h3 class="comments-title"><?php _e('Trackbacks are closed', 'zendark'); ?></h3>
<h3 class="comments-title"><?php _e('Trackbacks are closed', 'sdt'); ?></h3>
<?php endif; ?>
 
<?php
115,7 → 115,7
*/
if (comments_open() && !is_page() && !have_comments()) :
?>
<h3 class="comments-title"><?php printf(__('0 comments on "%1$s"', 'zendark'), get_the_title()); ?></h3>
<h3 class="comments-title"><?php printf(__('0 comments on "%1$s"', 'sdt'), get_the_title()); ?></h3>
<?php endif; ?>
 
<?php
126,22 → 126,22
 
// Code to generate form fields
$fields = array(
'author' => '<p class="comment-form-field"><label for="author">'.__('Name', 'zendark').($req ? ' *' : '').'</label><br /><input id="author" name="author" type="text" value="'.esc_attr($commenter['comment_author']).'" size="100"'.$aria_req.' /></p>',
'email' => '<p class="comment-form-field"><label for="email">'.__('Email', 'zendark').($req ? ' *' : '').'</label><br /><input id="email" name="email" type="text" value="'.esc_attr($commenter['comment_author_email']).'" size="100"'.$aria_req.' /></p>',
'url' => '<p class="comment-form-field"><label for="url">'.__('Website', 'zendark').'</label><br /><input id="url" name="url" type="text" value="'.esc_attr($commenter['comment_author_url']).'" size="100" /></p>'
'author' => '<p class="comment-form-field"><label for="author">'.__('Name', 'sdt').($req ? ' *' : '').'</label><br /><input id="author" name="author" type="text" value="'.esc_attr($commenter['comment_author']).'" size="100"'.$aria_req.' /></p>',
'email' => '<p class="comment-form-field"><label for="email">'.__('Email', 'sdt').($req ? ' *' : '').'</label><br /><input id="email" name="email" type="text" value="'.esc_attr($commenter['comment_author_email']).'" size="100"'.$aria_req.' /></p>',
'url' => '<p class="comment-form-field"><label for="url">'.__('Website', 'sdt').'</label><br /><input id="url" name="url" type="text" value="'.esc_attr($commenter['comment_author_url']).'" size="100" /></p>'
);
 
comment_form(array(
'title_reply' => __('Write a Comment', 'zendark'),
'comment_notes_before' => '<p class="comment-notes">'.__('Your email address will not be published.', 'zendark').($req ? __(' Required fields are marked with *', 'zendark') : '').'</p>',
'title_reply' => __('Write a Comment', 'sdt'),
'comment_notes_before' => '<p class="comment-notes">'.__('Your email address will not be published.', 'sdt').($req ? __(' Required fields are marked with *', 'sdt') : '').'</p>',
'fields' => apply_filters('comment_form_default_fields', $fields),
'logged_in_as' => '<p class="logged-in-as">'.sprintf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out ⇾</a>', 'zendark'), admin_url('profile.php'), $user_identity, wp_logout_url(apply_filters('the_permalink', get_permalink()))).'</p>',
'must_log_in' => '<p class="must-log-in">'.sprintf(__('You must be <a href="%s">logged in</a> to post a comment.', 'zendark'), wp_login_url(apply_filters('the_permalink', get_permalink()))).'</p>',
'comment_field' => '<p class="comment-form-comment"><label for="comment">'._x('Comment', 'noun', 'zendark').($req ? ' *' : '').'</label><br /><textarea id="comment" name="comment" cols="80" rows="8" aria-required="true"></textarea></p>',
'comment_notes_after' => '<p class="form-allowed-tags">'.sprintf(__('Allowed <abbr title="HyperText Markup Language">HTML</abbr> code: %s', 'zendark'), '<code>'.allowed_tags().'</code>').'</p>',
'label_submit' => __('Post Comment', 'zendark'),
'title_reply_to' => __('Leave a Reply to %s', 'zendark'),
'cancel_reply_link' => __('(Cancel reply)', 'zendark')
'logged_in_as' => '<p class="logged-in-as">'.sprintf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out ⇾</a>', 'sdt'), admin_url('profile.php'), $user_identity, wp_logout_url(apply_filters('the_permalink', get_permalink()))).'</p>',
'must_log_in' => '<p class="must-log-in">'.sprintf(__('You must be <a href="%s">logged in</a> to post a comment.', 'sdt'), wp_login_url(apply_filters('the_permalink', get_permalink()))).'</p>',
'comment_field' => '<p class="comment-form-comment"><label for="comment">'._x('Comment', 'noun', 'sdt').($req ? ' *' : '').'</label><br /><textarea id="comment" name="comment" cols="80" rows="8" aria-required="true"></textarea></p>',
'comment_notes_after' => '<p class="form-allowed-tags">'.sprintf(__('Allowed <abbr title="HyperText Markup Language">HTML</abbr> code: %s', 'sdt'), '<code>'.allowed_tags().'</code>').'</p>',
'label_submit' => __('Post Comment', 'sdt'),
'title_reply_to' => __('Leave a Reply to %s', 'sdt'),
'cancel_reply_link' => __('(Cancel reply)', 'sdt')
));
endif;
?>
/header.php
19,7 → 19,7
// Add a page number if necessary:
if ($paged >= 2 || $page >= 2)
echo sprintf(__('Page %s', 'zendark'), max($paged, $page)).' &#8211; ';
echo sprintf(__('Page %s', 'sdt'), max($paged, $page)).' &#8211; ';
// Add the blog name.
bloginfo('name');
74,7 → 74,7
*/
wp_nav_menu(array('theme_location' => 'primary', 'depth' => 1));
?>
<div id="menu-title"><h1><?php if (is_page()) { echo get_the_title(zendark_get_root_parent(get_the_ID())); } else { _e('Blog', 'zendark'); } ?></h1></div>
<div id="menu-title"><h1><?php if (is_page()) { echo get_the_title(sdt_get_root_parent(get_the_ID())); } else { _e('Blog', 'sdt'); } ?></h1></div>
</nav>
</header><!-- #main-header -->