<?php if ( ! is_user_logged_in()  && ! is_subscriber()) { ?>
    <div class="container-fluid">
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="role-notif">
                        <p style="text-align: center;"><iframe src="https://player.vimeo.com/video/362285427" width="100%" height="320" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe></p>
                        <p>
                            Have you ever stopped at a river or stream and watched another fly angler catch trout and then try and decipher what exactly they are doing so successfully?
                            The Anglers Journal Blog is a great source for hearing what the experts are doing on the rivers of the Northwest.  Where, when, how and the flies they use when they are fly
                            fishing. The Anglers Journal Blog is a play by play announcement of how an expert will fly fish a certain section of a tailwater or freestone river.  Add to that a flair for
                            story telling and you will enjoy reading and learning something new in every blog to try on your own home water.  
                        </p>
                        <a href="<?php echo get_permalink(3645); ?>" class="tribe-button">BECOME A MEMBER</a>
                    </div>
                    <div class="role-notif">
                        <h5>Please login to view this post.</h5>
                        <h5>Already have an account? <br> <a href="<?php echo get_permalink(2871); ?>" class="tribe-button">Login here</a></h5>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php } else { ?>
    <div class="container-fluid">
        <div class="container">
            <div class="row">
                <?php if ( $title == 'ANGLERS WRITERS JOURNAL ARCHIVES' ) { ?>
                    <?php foreach ( $posts as $value) { ?>
                        <div class="col-sm-12 col-md-4 col-lg-4 pb-5">
                            <article id="post-<?php echo $value->ID ?>" >
                                <section>
                                    <?php
                                        $content = preg_replace( '/<img[^>]+./', '', $value->post_content );
                                        $trimmed = mb_strimwidth($content , 0, 350, '...');
                                    ?>
                                    <div class="text-center">
                                        <img src="<?php echo get_the_post_thumbnail_url( $value->ID ); ?>" alt="" style="width:200px; height:200px">
                                    </div>
                                    <?php echo $trimmed; ?>
                                </section>
                                <section>
                                    <a href="<?php echo get_the_permalink( $value->ID ); ?>"> View More </a>
                                </section>
                            </article>
                        </div>
                    <?php } //end foreach?>
                <?php } else if ($title == 'ANGLERS VIDEO JOURNAL ARCHIVES') {?>
                    <?php foreach ( $posts as $value) { ?>
                        <div class="col-sm-12 col-md-4 col-lg-4 pb-5">
                            <article id="post-<?php echo $value->ID ?>" >
                                <section>
                                    <h3><?php echo $value->post_title; ?></h3>
                                    <img class="w-100" src="<?php echo get_the_post_thumbnail_url( $value->ID ); ?>" alt="">
                                </section>
                                <section>
                                    <a href="<?php echo get_the_permalink( $value->ID ); ?>"> View More </a>
                                </section>
                            </article>
                            
                        </div>
                    <?php } //end foreach?>
                <?php } else {?>
                    <?php foreach ( $posts as $value) { ?>
                        <div class="col-sm-12 col-md-4 col-lg-4 pb-5">
                            <article id="post-<?php echo $value->ID ?>" >
                                <section>
                                    <?php
                                        $content = preg_replace( '/<img[^>]+./', '', $value->post_content );
                                        $trimmed = mb_strimwidth($content , 0, 350, '...');
                                    ?>
                                    <div class="text-center">
                                        <img src="<?php echo get_the_post_thumbnail_url( $value->ID ); ?>" alt="" style="width:200px; height:200px">
                                    </div>
                                    <?php echo $trimmed; ?>
                                </section>
                                <section>
                                    <a href="<?php echo get_the_permalink( $value->ID ); ?>"> View More </a>
                                </section>
                            </article>
                        </div>
                    <?php } //end foreach?>
                <?php } ?>
            </div>
        </div>
    </div>
<?php } ?>