function converio_draw_project_video_metabox($post) { global $post; $data = get_post_custom($post->ID); $video = isset($data['project_meta_video']) ? esc_attr($data['project_meta_video'][0]) : ''; wp_nonce_field('converio_project_video_metabox_nonce', 'project_video_metabox_nonce'); ?> <p><label for="project_video"><?php esc_attr_e('Put the video embedding code here:', 'converio'); ?> </label><textarea name="project_video" id="project_video" rows="5" cols="30" class="widefat"><?php echo converio_sanitize_text_decode($video); ?> </textarea></p> <?php }
if (!dynamic_sidebar('footer-widget-area')) { } ?> </section> <?php } ?> <section class="bottom"> <?php $show_footer_content = get_theme_mod('show_footer_content'); if ($show_footer_content) { $footer_content = get_theme_mod('footer_content'); echo converio_sanitize_text_decode($footer_content); } else { ?> <p><?php esc_attr_e('2013-2014', 'converio'); ?> <?php if (is_front_page() & !is_paged()) { ?> <a href="<?php echo esc_url('http://thememotive.com/converio/'); ?> "><?php esc_attr_e('Converio', 'converio'); ?> </a><?php
if (converio_ext_get_featured_image_id('featured-image-3', get_post_type())) { ?> <article><?php converio_ext_the_featured_image('featured-image-3', get_post_type(), 'thumbnail-large'); ?> </article> <?php } ?> </div> </section> <?php } elseif ($video_iframe) { echo '<div class="video post-mb10">' . converio_sanitize_text_decode($video_iframe) . '</div>'; } elseif ($audio_iframe) { echo converio_sanitize_text_decode($audio_iframe); } elseif (has_post_thumbnail()) { ?> <div class="img large"><a href="<?php the_permalink(); ?> "><?php the_post_thumbnail('thumbnail-large'); ?> </a></div> <?php } ?> <?php
?> > <?php if ($hide_top == 1) { ?> <section class="top <?php if ($topbar_links == 'social' || $topbar_links == 'search') { echo 'with-social'; } ?> "> <div> <p class="top-message"> <?php if ($top_header_msg != '') { echo converio_sanitize_text_decode($top_header_msg); } ?> </p> <?php if ($topbar_links == 'menu') { ?> <button type="button" class="btn btn-navbar btn-top collapsed" data-toggle="collapse" data-target=".top-navi > ul"><?php esc_attr_e('Menu', 'converio'); ?> </button> <nav class="top-navi menu-container"> <?php wp_nav_menu(array('fallback_cb' => 'converio_page_menu', 'depth' => '0', 'theme_location' => 'secondary', 'link_before' => '', 'link_after' => '', 'container' => false, 'menu_class' => '', 'walker' => new Converio_Walker_Nav_Menu())); ?> </nav>
.e404 article form+p, a.play {font-family: <?php echo esc_attr($primary_font); ?> ;} </style> <?php } ?> <?php $custom_css = get_theme_mod('custom_css'); if ($custom_css) { ?> <style type="text/css"> <?php echo converio_sanitize_text_decode($custom_css); ?> </style> <?php } ?> <!--[if lt IE 9]> <script src="<?php echo get_template_directory_uri(); ?> /js/html5.js"></script> <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?> /styles/style-ie.css" media="screen"></script> <![endif]-->
if (converio_ext_get_featured_image_id('featured-image-3', get_post_type())) { ?> <article><?php converio_ext_the_featured_image('featured-image-3', get_post_type(), 'thumbnail-medium'); ?> </article> <?php } ?> </div> </section> <?php } elseif ($video_iframe) { echo '<div class="video post-mb10">' . converio_sanitize_text_decode($video_iframe) . '</div>'; } elseif ($audio_iframe) { echo '<div class="add-music">' . converio_sanitize_text_decode($audio_iframe) . '</div>'; } elseif ($quote_content) { echo '<blockquote class="quote-typography">'; echo '<p><a href="'; echo the_permalink(); echo '">' . esc_attr($quote_content) . '</a></p>'; echo '<small>— ' . esc_attr($quote_author) . '</small>'; echo '</blockquote>'; } elseif (has_post_thumbnail()) { ?> <p class="post-mb10"><a href="<?php the_permalink(); ?> "><?php the_post_thumbnail('thumbnail-medium'); ?>
function converio_analytics() { $analytics = get_theme_mod('analytics') ? get_theme_mod('analytics') : false; echo converio_sanitize_text_decode($analytics); }
} $skill_list = implode("", $skill_list); ?> <section class="main single"> <article> <h2 class="entry-title"><?php the_title(); ?> </h2> <?php if ($project_video) { ?> <div class="video"><?php echo converio_sanitize_text_decode($project_video); ?> </div> <?php } else { if (has_post_thumbnail()) { ?> <p><img src="<?php echo esc_url($feat_img); ?> " alt="<?php the_title(); ?> "></p> <?php }
function converio_draw_display_post_metabox($post) { global $post; $data = get_post_custom($post->ID); $video_iframe = isset($data['single_meta_video_iframe']) ? $data['single_meta_video_iframe'][0] : ''; $audio_iframe = isset($data['single_meta_audio_iframe']) ? $data['single_meta_audio_iframe'][0] : ''; $quote_content = isset($data['single_meta_quote_content']) ? esc_attr($data['single_meta_quote_content'][0]) : ''; $quote_author = isset($data['single_meta_quote_author']) ? esc_attr($data['single_meta_quote_author'][0]) : ''; wp_nonce_field('converio_display_metabox_nonce', 'display_metabox_nonce'); ?> <p><label for="single_video_iframe"><?php esc_attr_e('Video iframe (YouTube, Vimeo)', 'converio'); ?> </label><textarea name="single_video_iframe" id="single_video_iframe" rows="5" cols="30" class="widefat"><?php echo converio_sanitize_text_decode($video_iframe); ?> </textarea></p> <p><label for="single_audio_iframe"><?php esc_attr_e('Music iframe (SoundCloud)', 'converio'); ?> </label><textarea name="single_audio_iframe" id="single_audio_iframe" rows="5" cols="30" class="widefat"><?php echo converio_sanitize_text_decode($audio_iframe); ?> </textarea></p> <p><label for="single_quote_content"><?php esc_attr_e('Quote', 'converio'); ?> </label><textarea name="single_quote_content" id="single_quote_content" rows="5" cols="30" class="widefat"><?php echo esc_attr($quote_content); ?> </textarea></p> <p><label for="single_quote_author"><?php esc_attr_e('Quote Author', 'converio'); ?> </label><input name="single_quote_author" id="single_quote_author" type="text" class="widefat" value="<?php echo esc_attr($quote_author); ?> "></p> <?php }