Exemplo n.º 1
0
 /**
  * @test
  */
 public function itCanUseHelperToStoreTypeAndResolve()
 {
     $field = schema()->type('user', UserType::class);
     $instance = graphql()->type('user');
     $this->assertInstanceOf(ObjectType::class, $instance);
     $this->assertEquals('User', $instance->name);
 }
Exemplo n.º 2
0
    ?>
    <article id="page-contact" <?php 
    post_class();
    ?>
 <?php 
    schema();
    ?>
>
        <header class="entry-header">
            <?php 
    echo do_shortcode('[bigContact map=on]');
    the_title('<h1 class="entry-title" ' . schema('name', false, false) . '>', '</h1>');
    ?>
        </header><!-- .entry-header -->
        <div class="entry-content" <?php 
    schema('mainContentOfPage');
    ?>
>
            <?php 
    the_content();
    ?>
        </div><!-- .entry-content -->
        <footer class="entry-meta">
            <?php 
    edit_post_link(__('Edit', 'bigblank'));
    ?>
        </footer><!-- .entry-meta -->
    </article><!-- #page-contact -->
    <?php 
}
get_footer('layout');
Exemplo n.º 3
0
><?php 
    printf(__('About %s', 'bigblank'), get_the_author());
    ?>
</h2>
                    <p <?php 
    schema('description');
    ?>
><?php 
    the_author_meta('description');
    ?>
</p>
                    <a href="<?php 
    echo esc_url(get_author_posts_url(get_the_author_meta('ID')));
    ?>
" class="author-link" rel="author" <?php 
    schema('url');
    ?>
>
                        <?php 
    printf(__('View all posts by %s <span class="meta-nav">&rarr;</span>', 'bigblank'), get_the_author());
    ?>
                    </a><!-- .author-link	-->
                </div><!-- .author-description -->
            </div><!-- .author-info -->
        <?php 
}
?>
            
    </footer>
</article><!-- #post-## -->
Exemplo n.º 4
0
<?php

/**
 * Adding layout class to our main content
 * Always call get_footer('layout'); to close tags opened here.
 */
$layout = bigblank_get_layout();
$schema = '';
if (is_home() || is_archive()) {
    $schema = schema(false, 'Blog', false);
    if (is_author()) {
        $schema = schema(false, 'ProfilePage', false);
    }
}
?>
<div id="content" class="site-content<?php 
echo $layout ? ' ' . $layout : '';
?>
"<?php 
echo $schema;
?>
>
    <div id="main" role="main">
Exemplo n.º 5
0
 /**
  * Print HTML with meta information for the current post-date/time and author.
  *
  *
  * @return void
  */
 function bigblank_posted_on()
 {
     // Set up and print post meta information.
     printf('<a href="%1$s" class="entry-date updated" rel="bookmark" ' . schema('url', false, false) . '><time class="published" datetime="%2$s" ' . schema('datePublished', false, false) . '>%3$s</time></a> <a class="author vcard url" href="%4$s" rel="author" ' . schema('author', false, false) . '><span class="fn">%5$s</span></a>', esc_url(get_permalink()), esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_url(get_author_posts_url(get_the_author_meta('ID'))), get_the_author());
 }
Exemplo n.º 6
0
?>
        <?php 
bigblank_print($youtube, '<a href="', '"><i class="fa fa-youtube-play"></i></a>');
?>
        <?php 
bigblank_print($pinterest, '<a href="', '"><i class="fa fa-pinterest"></i></a>');
?>
        <?php 
if (has_term('', 'department')) {
    ?>
            <span class="entry-meta entry-categories department">
                <?php 
    echo get_the_term_list($post->ID, 'department', '', ', ', '');
    ?>
            </span>
        <?php 
}
?>
    </header>
    <section class="entry-content" <?php 
schema('description');
?>
>
        <?php 
the_content();
?>
        <?php 
edit_post_link(__('Edit', 'bigblank'));
?>
    </section>
</article>
Exemplo n.º 7
0
/**
 * The template for displaying Comments
 *
 * The area of the page that contains comments and the comment form.
 *
 */
/*
 * If the current post is protected by a password and the visitor has not yet
 * entered the password we will return early without loading the comments.
 */
if (post_password_required()) {
    return;
}
?>
<div id="comments" class="comments-area" <?php 
schema(false, 'Comment');
?>
>
    <?php 
if (have_comments()) {
    ?>
        <h2 class="comments-title">
            <?php 
    printf(_n('One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'bigblank'), number_format_i18n(get_comments_number()), get_the_title());
    ?>
        </h2>
        <?php 
    if (get_comment_pages_count() > 1 && get_option('page_comments')) {
        ?>
            <nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
                <h3 class="screen-reader-text"><?php 
Exemplo n.º 8
0
    ?>
>
            <div class="entry-attachment" <?php 
    schema(false, 'ImageObject');
    ?>
>
                <div class="attachment">
                    <?php 
    bigblank_the_attached_image();
    ?>
                </div><!-- .attachment -->
                <?php 
    if (has_excerpt()) {
        ?>
                    <div class="entry-caption" <?php 
        schema('caption');
        ?>
>
                        <?php 
        the_excerpt();
        ?>
                    </div><!-- .entry-caption -->
                <?php 
    }
    ?>
            </div><!-- .entry-attachment -->
            <?php 
    the_content();
    wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'bigblank') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
    ?>
        </div><!-- .entry-content -->
Exemplo n.º 9
0
 *
 * If you'd like to further customize these archive views, you may create a
 * new template file for each specific one. For example, Big Blank
 * already has tag.php for Tag archives, category.php for Category archives,
 * and author.php for Author archives.
 *
 * @link http://codex.wordpress.org/Template_Hierarchy
 *
 */
get_header();
get_header('layout');
if (have_posts()) {
    ?>
    <header class="page-header">
        <h1 class="page-title" <?php 
    schema('name');
    ?>
>
            <?php 
    if (is_day()) {
        printf(__('Daily Archives: %s', 'bigblank'), get_the_date());
    } elseif (is_month()) {
        printf(__('Monthly Archives: %s', 'bigblank'), get_the_date(_x('F Y', 'monthly archives date format', 'bigblank')));
    } elseif (is_year()) {
        printf(__('Yearly Archives: %s', 'bigblank'), get_the_date(_x('Y', 'yearly archives date format', 'bigblank')));
    } elseif (is_tax()) {
        $term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
        echo $term->name;
    } else {
        _e('Archives', 'bigblank');
    }