<?php /** * Gets the appropriate Mid-Blogroll Widgets * @param post_count integer, the current number of posts in the blogroll */ $post_count = ai_get_var('post_count'); if (!empty($post_count)) { $sidebar = $post_count / 2; if (!is_active_sidebar('mid-roll-' . $sidebar)) { return; } else { ?> <div class="widget-area mid-roll <?php echo esc_attr('mid-roll-' . $sidebar); ?> " role="complementary"> <div class="container"> <?php dynamic_sidebar('mid-roll-' . $sidebar); ?> </div> </div> <?php } }
<?php /** * Social Share Bar Module * * @param optional string title The title of the post to share * @param optional string url The permalink of the post to share */ $title = ai_get_var('title'); $url = ai_get_var('url'); if (empty($title) || empty($url)) { $url = home_url(); $title = "High School Insider"; } ?> <span class="trb_socialize_bar"> <a target="_blank" class="trb_socialize_item" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode($url); ?> " style="padding-left: 0px;"> <i class="LATFacebook"></i> </a> <a target="_blank" class="trb_socialize_item" href="https://twitter.com/home?status=<?php echo urlencode($title); ?> +<?php echo urlencode($url); ?> "> <i class="LATTwitter"></i> </a>