/**
 * Adding the content back in when the user is logged in
 * @return [type] [description]
 */
function thememix_private_page_content()
{
    if (is_user_logged_in()) {
        genesis_do_post_content();
    } else {
        echo '<p>' . __('Please log in to view this content.', 'thememix-pro-genesis') . '</p>';
        $args = array('form_id' => 'loginform', 'redirect' => (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'id_username' => 'user_login', 'id_password' => 'user_pass', 'id_remember' => 'rememberme', 'id_submit' => 'wp-submit', 'label_username' => __('Username', 'thememix-pro-genesis'), 'label_password' => __('Password', 'thememix-pro-genesis'), 'label_remember' => __('Remember Me', 'thememix-pro-genesis'), 'label_log_in' => __('Log In', 'thememix-pro-genesis'));
        wp_login_form($args);
    }
}
//* Video post format
$content = get_the_content();
$title = get_the_title();
$permalink = get_permalink();
wp_enqueue_script('jquery_fitvids');
echo '<div class="media_container">';
$embed = get_post_meta($post->ID, 'zp_video_format_embed', true);
if (!empty($embed)) {
    echo stripslashes(htmlspecialchars_decode($embed));
    ?>
                <script type="text/javascript">
    				jQuery(document).ready(function(){
						//fitvideo
						jQuery(".media_container").fitVids();
					});
					
				</script>
            <?php 
} else {
    zp_video($post->ID, 640);
}
echo '</div>';
echo '<div class="post_content">';
do_action('genesis_entry_header');
do_action('genesis_before_entry_content');
printf('<div %s>', genesis_attr('entry-content'));
genesis_do_post_content();
echo '</div>';
//* end .entry-content
echo '</div>';
Example #3
0
/**
 * Wrapper for the Genesis post content function which has no method to return.
 *
 * @since  0.1.0
 * @access public
 * @return string
 */
function genlib_get_post_content()
{
    ob_start();
    genesis_do_post_content();
    return ob_get_clean();
}
Example #4
0
function sk_masonry_title_content()
{
    echo '<div class="title-content">';
    genesis_do_post_title();
    genesis_do_post_content();
    echo '</div>';
}