/** * Output the opening markup for the attachment meta element. * * @since 1.0.0 * @access public * @return void */ function alpha_attachment_meta_open() { echo '<div ' . alpha_get_attr('attachment-meta') . '>'; }
/** * Output the markup for the primary menu toggle button. * * @since 1.0.0 * @access public * @return void */ function alpha_menu_toggle() { if (has_nav_menu('primary') || has_nav_menu('secondary')) { printf('<button %s>%s</button>', alpha_get_attr('menu-toggle', 'primary'), apply_filters('alpha_menu_toggle_text', '')); } }
/** * Output the opening markup for the entry footer element. * * @since 1.0.0 * @access public * @return void */ function alpha_entry_footer_open() { echo '<footer ' . alpha_get_attr('entry-footer') . '>'; }
/** * Output an HTML element's attributes. * * @since 1.0.0 * @access public * @param string $slug the slug/ID of the element (e.g., 'sidebar'). * @param string $context a specific context (e.g., 'primary'). * @param array $attr A list of attributes to be merged. * @return void */ function alpha_attr($slug, $context = '', $attr = array()) { echo alpha_get_attr($slug, $context, $attr); }
/** * Output the archive description. * * @since 1.0.0 * @access public * @return void */ function alpha_archive_description() { if (!is_paged() && ($desc = get_the_archive_description())) { printf('<div %s>%s</div><!-- .archive-description -->', alpha_get_attr('archive-description'), $desc); } }
<?php /** * The secondary nav menu template. * * @package Alpha\TemplateParts * @subpackage Alpha * @author Robert Neu * @copyright Copyright (c) 2015, WP Site Care, LLC * @since 1.0.0 */ ?> <nav <?php alpha_attr('menu', 'secondary'); ?> > <span id="menu-secondary-title" class="screen-reader-text"> <?php // Translators: %s is the nav menu name. This is the nav menu title shown to screen readers. printf(_x('%s', 'nav menu title', 'alpha'), alpha_get_menu_location_name('secondary')); ?> </span> <?php wp_nav_menu(array('theme_location' => 'secondary', 'container' => '', 'menu_id' => 'secondary', 'menu_class' => 'nav-menu secondary', 'fallback_cb' => '', 'items_wrap' => '<div ' . alpha_get_attr('wrap', 'secondary-menu') . '><ul id="%s" class="%s">%s</ul></div>')); ?> </nav><!-- #menu-secondary -->
<?php edit_comment_link(); ?> </header><!-- .comment-meta --> <div <?php alpha_attr('comment-content'); ?> > <?php if (!$comment->comment_approved) { ?> <p class="alert"> <?php esc_attr_e('Your comment is awaiting moderation.', 'alpha'); ?> </p> <?php } ?> <?php comment_text(); ?> </div><!-- .comment-content --> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'before' => sprintf('<footer %s>', alpha_get_attr('comment-meta')), 'after' => '</footer>'))); ?> </article>
/** * Output the opening tag for a wrapping <div>. * * @since 1.0.0 * @access public * @return void */ function alpha_wrap_open() { echo '<div ' . alpha_get_attr('wrap') . '>'; }