Esempio n. 1
0
?>
">
    <div class="<?php 
raindrops_dinamic_class('yui-b', true);
?>
">
        <div class="<?php 
echo raindrops_yui_class_modify();
?>
" id="container">
            <!-- content -->
            <div class="<?php 
raindrops_dinamic_class('yui-u first', true);
?>
" <?php 
raindrops_doctype_elements('', 'role="main"');
?>
>
<?php 
raindrops_prepend_loop();
?>

                <h2 id="archives-title" class="page-title">
                    <?php 
if (is_year()) {
    $one_year = query_posts("posts_per_page=-1&year={$ye}");
    $output = raindrops_get_year($one_year, $ye);
    wp_reset_query();
    esc_html_e('Yearly Archives', 'raindrops');
} elseif (is_month()) {
    $one_month = query_posts("posts_per_page=-1&year={$ye}&monthnum={$mo}");
Esempio n. 2
0
        ?>
                            </div>
                            <br class="clear" />
                            <div class="postmetadata">
                                <?php 
        the_category(', ');
        echo "&nbsp;";
        edit_post_link(esc_html__('Edit', 'raindrops') . raindrops_link_unique('Post', $post->ID), '<span class="edit-link">', '</span>');
        raindrops_delete_post_link(esc_html__('Trash', 'raindrops') . raindrops_link_unique('Post', $post->ID), '<span class="edit-link">', '</span>');
        ?>
                            </div>
                            <?php 
        comments_template('', true);
        ?>
                            </<?php 
        raindrops_doctype_elements('div', 'article');
        ?>
>
							</div><?php 
        raindrops_after_article();
        ?>
                        </div>
                        <?php 
    }
    //endwhile
    raindrops_next_prev_links("nav-below");
}
//end have post
?>
            </div>
            <?php 
Esempio n. 3
0
 function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0)
 {
     global $wp_query;
     $classes = empty($item->classes) ? array() : (array) $item->classes;
     $class_names = esc_attr(implode(' ', apply_filters('nav_menu_css_class', array_filter($classes), $item)));
     // build html
     $output .= '<li id="nav-menu-item-' . $item->ID . '" class="' . $class_names . '">';
     // link attributes
     $attributes = !empty($item->attr_title) ? ' title="' . esc_attr($item->attr_title) . '"' : '';
     $attributes .= !empty($item->target) ? ' target="' . esc_attr($item->target) . '"' : '';
     $attributes .= !empty($item->xfn) ? ' rel="' . esc_attr($item->xfn) . '"' : '';
     $attributes .= !empty($item->url) ? ' href="' . esc_attr($item->url) . '"' : '';
     $item_id = url_to_postid($item->url);
     if ($item_id == 0) {
     } else {
         $item->title = $item->title;
         $raindrops_aria_hidden = raindrops_doctype_elements('', 'aria-hidden="true"', false);
         $item->title = sprintf('<span class="raindrops_unique_identifier" %3$s>[Link to %1$s]</span>%2$s', $item_id, $item->title, $raindrops_aria_hidden);
     }
     $item_output = sprintf('%1$s<a%2$s>%3$s%4$s%5$s</a>%6$s', !empty($args->before) ? $args->before : '', $attributes, !empty($args->link_before) ? $args->link_before : '', apply_filters('raindrops_nav_menu_title', $item->title, $item->ID), !empty($args->link_after) ? $args->link_after : '', !empty($args->after) ? $args->after : '');
     // build html
     $output .= apply_filters('raindrops_unique_identifier_walker_nav_menu_start_el', $item_output, $item, $depth, $args);
 }
Esempio n. 4
0
// raindrops_disable_keyboard_focus
?>
		
        <div id="<?php 
echo esc_attr(raindrops_warehouse('raindrops_page_width'));
?>
" class="<?php 
echo esc_attr('yui-' . raindrops_warehouse('raindrops_col_width'));
?>
 hfeed">
		<?php 
raindrops_prepend_doc();
?>
<header id="top">
			<div id="hd" <?php 
raindrops_doctype_elements('', 'role="banner"');
?>
>
				<?php 
if (raindrops_is_place_of_site_title() == true) {
    echo raindrops_site_title();
}
echo raindrops_site_description();
?>
               
			</div>
            <?php 
/**
 * Custom Header
 */
$raindrops_title_in_the_header_check = raindrops_warehouse_clone('raindrops_place_of_site_title');
Esempio n. 5
0
/**
 * Template part file for default sidebar.
 *
 *
 * @package Raindrops
 * @since Raindrops 0.1
 */
if (!defined('ABSPATH')) {
    exit;
}
global $template;
do_action('raindrops_pre_part_' . basename(__FILE__, '.php') . '_' . basename($template));
?>
<<?php 
raindrops_doctype_elements('div', 'nav');
?>
 class="lsidebar">
<ul>
    <?php 
if (!dynamic_sidebar('sidebar-1')) {
    raindrops_sidebar_menus('default');
}
?>
</ul>
</<?php 
raindrops_doctype_elements('div', 'nav');
?>
>		
<?php 
do_action('raindrops_after_part_' . basename(__FILE__, '.php') . '_' . basename($template));
Esempio n. 6
0
 function raindrops_display_recent_post_group_by_category($limit_posts = 5, $args = array())
 {
     global $raindrops_group_by_category_icon;
     $raindrops_get_post_array_group_by_category = raindrops_get_post_array_group_by_category($limit_posts, $args);
     $raindrops_date_format = get_option('date_format') . ' ' . get_option('time_format');
     $result = apply_filters('raindrops_display_recent_post_group_by_category_before', '');
     $wrap_html = '<ul class="xoxo">%1$s</ul>';
     $category_title = '<li class="post-group-by-category-title"><h3 class="post-group_by-category-title category-title %3$s"><a href="%1$s">%2$s</a></h3><ul>';
     $entry_item = '<li><a href="%1$s">%3$s</a><p><span title="%4$s">%2$s</span> </p>';
     $entry_item = '<li>' . '<a href="%1$s" class="post-group_by-category-entry-title %8$s">%3$s</a>' . '<%4$s class="entry-date updated post-group-by-category-time" %5$s>%2$s</%4$s>' . '<span class="author vcard">' . ' <a class="url fn n post-group_by-category-author" href="%6$s">%7$s</a>' . '</span></li>';
     $loop_end_html = '</ul></li>';
     $raindrops_group_by_category_icon = apply_filters('raindrops_group_by_category_icon', true);
     foreach ($raindrops_get_post_array_group_by_category as $key => $vals) {
         $cat_id = get_cat_ID($key);
         $cat_property = get_category($cat_id);
         $cat_slug = sanitize_html_class($cat_property->slug);
         $cat_slug = apply_filters('raindrops_post_group_by_category_title_class', $cat_slug, $key);
         if (!empty($vals)) {
             $result .= sprintf($category_title, get_category_link($cat_id), $key, $cat_slug);
         }
         foreach ($vals as $val) {
             $permalink = esc_url(get_permalink($val));
             $date = get_the_time($raindrops_date_format, $val);
             $thumbnail = '';
             if (has_post_thumbnail($val) && !post_password_required() && true == $raindrops_group_by_category_icon) {
                 $thumbnail .= "\n" . str_repeat("\t", 11) . '<span class="h2-thumb">';
                 $thumbnail .= get_the_post_thumbnail($val, array(48, 48), array("style" => "vertical-align:middle;", "alt" => esc_attr__('Featured Image', 'raindrops')));
                 $thumbnail .= "\n" . str_repeat("\t", 11) . '</span>';
             }
             if (!has_post_thumbnail($val) && !is_singular() && !post_password_required() && true == $raindrops_group_by_category_icon) {
                 $thumbnail = apply_filters('raindrops_title_thumbnail', $thumbnail, '<span class="h2-thumb">', '</span>');
             }
             $entry_title_text = sprintf('<span class="entry-title-text">%1$s</span>', get_the_title($val));
             $title = apply_filters('raindrops_display_recent_post_group_by_category_post_thumb', $thumbnail) . $entry_title_text;
             if (empty($thumbnail)) {
                 $thumbnail_class = 'no-thumb';
             } else {
                 $thumbnail_class = 'has-thumb';
             }
             $time_element = raindrops_doctype_elements('span', 'time', false);
             $attribute_time = raindrops_doctype_elements('', 'datetime="' . esc_attr(get_the_date('c')) . '"', false);
             $author = raindrops_blank_fallback(get_the_author(), 'Somebody');
             $author = wp_kses($author, array());
             $author_link = get_author_posts_url(get_the_author_meta('ID'));
             $author_link = esc_url($author_link);
             $result .= sprintf($entry_item, $permalink, $date, $title, $time_element, $attribute_time, $author_link, $author, $thumbnail_class);
         }
         $result .= $loop_end_html;
     }
     $result = sprintf($wrap_html, $result);
     return apply_filters('raindrops_display_recent_post_group_by_category', $result);
 }
Esempio n. 7
0
/**
 * Template part file for Sidebar.
 * This template is not used except, when special.
 * This template will be used when not exists sidebar-default or sidebar-extra templates
 *
 * @package Raindrops
 */
if (!defined('ABSPATH')) {
    exit;
}
global $template;
do_action('raindrops_pre_part_' . basename(__FILE__, '.php') . '_' . basename($template));
?>
<div class="sidebar" <?php 
raindrops_doctype_elements('', 'role="complementary"');
?>
>
    <ul>
        <?php 
if (!dynamic_sidebar('sidebar-1')) {
    wp_list_pages('title_li=<h2 class="h2">' . esc_html__('Pages', 'raindrops') . '</h2>');
    ?>
            <li>
                <h2 class="h2"><?php 
    esc_html_e('Archives', 'raindrops');
    ?>
</h2>
                <ul>
                    <?php 
    wp_get_archives('type=monthly');
Esempio n. 8
0
} else {
    ?>
                        <p><?php 
    esc_html_e('No posts by this author.', 'raindrops');
    ?>
</p>
                        <?php 
}
//if ( have_posts( ) )
?>
                </dl>
                <?php 
raindrops_next_prev_links("nav-below");
?>
            </<?php 
raindrops_doctype_elements('div', 'main');
?>
>                
            </div>
            <?php 
if (3 == $raindrops_current_column) {
    ?>
                <div class="yui-u">
                    <?php 
    raindrops_prepend_extra_sidebar();
    get_sidebar('extra');
    raindrops_append_extra_sidebar();
    ?>
                </div>
                <?php 
} elseif ($rsidebar_show && false == $raindrops_current_column) {
Esempio n. 9
0
            <?php 
    dynamic_sidebar('sidebar-4');
    ?>
        </ul>
    <?php 
}
//end if ( is_active_sidebar( 'sidebar-4' ) )
?>
    <br class="clear" />
</div>
<!--footer-widget end-->
	<?php 
raindrops_footer_text();
?>
    <?php 
raindrops_append_footer();
?>
</<?php 
raindrops_doctype_elements('div', 'footer');
?>
>
    <?php 
raindrops_append_doc();
?>
</div>
    <?php 
wp_footer();
?>
</body>
</html><?php 
do_action('raindrops_after_part_' . basename(__FILE__, '.php') . '_' . basename($template));
Esempio n. 10
0
/**
 * Template part file for extra sidebar.
 *
 *
 * @package Raindrops
 * @since Raindrops 0.1
 */
if (!defined('ABSPATH')) {
    exit;
}
global $template;
do_action('raindrops_pre_part_' . basename(__FILE__, '.php') . '_' . basename($template));
?>
<<?php 
raindrops_doctype_elements('div', 'aside');
?>
 class="rsidebar">
<ul>
    <?php 
if (!dynamic_sidebar('sidebar-2')) {
    raindrops_sidebar_menus('extra');
}
?>
</ul>
</<?php 
raindrops_doctype_elements('div', 'aside');
?>
>
<?php 
do_action('raindrops_after_part_' . basename(__FILE__, '.php') . '_' . basename($template));