echo stripslashes($mytheme_integration['single-page-top-code']); } the_content(); wp_link_pages(array('before' => '<div class="page-link"><strong>' . __('Pages:', 'dt_rise') . '</strong> ', 'after' => '</div>', 'next_or_number' => 'number', 'link_before' => '<span>', 'link_after' => '</span>')); echo '<ul class="social-bookmark">'; dtthemes_show_fblike('page'); dtthemes_show_googleplus('page'); dtthemes_show_twitter('page'); dtthemes_show_stumbleupon('page'); dtthemes_show_linkedin('page'); dtthemes_show_delicious('page'); dtthemes_show_pintrest('page'); dtthemes_show_digg('page'); echo '</ul>'; echo '<div class="social-share">'; dtthemes_mytheme_social_bookmarks('sb-page'); echo '</div>'; edit_post_link(__(' Edit ', 'dt_rise')); ?> <?php $mytheme_options = get_option(IAMD_THEME_SETTINGS); $mytheme_general = $mytheme_options['general']; $globally_disable_page_comment = array_key_exists('disable-page-comment', $mytheme_general) ? true : false; if (!$globally_disable_page_comment && isset($tpl_default_settings['comment'])) { ?> <!-- **Comment Entries** --> <?php comments_template('', true); ?>
?> </p> <?php if (isset($portfolio_settings['website'])) { echo '<a href="' . $weburl . '" title="" class="button small" target="_blank"> <span class="icon-globe"> </span>' . __(' Visit Website', 'dt_themes') . ' </a>'; } ?> </div> <?php echo $container_end; ?> <?php if (isset($portfolio_settings['show-social-share'])) { echo '<div class="social-share">'; dtthemes_mytheme_social_bookmarks('sb-portfolio'); echo '</div>'; } ?> </div> <?php } } ?> </div> <!-- Portfolio Single Entry End --> <?php if (!dtthemes_mytheme_option('general', 'disable-portfolio-comment')) { comments_template(); }
function dtthemes_load_portfolio_item_ajax_request() { $id = $_REQUEST['pid']; $args = array('post_type' => get_post_type($id), 'p' => $id); query_posts($args); the_post(); $portfolio_settings = get_post_meta($id, '_portfolio_settings', TRUE); $portfolio_settings = is_array($portfolio_settings) ? $portfolio_settings : array(); $post_layout = isset($portfolio_settings['layout']) ? $portfolio_settings['layout'] : 'single-portfloio-layout-two'; $tools_used = isset($portfolio_settings['tools-used']) ? "<p> <strong>" . __('Tools Used : ', 'dt_rise') . "</strong> {$portfolio_settings['tools-used']} </p>" : ""; $author = '<p> <strong>Author :</strong> ' . get_the_author() . '</p>'; $website = ""; $weburl = ""; if (isset($portfolio_settings['website'])) { $weburl = $portfolio_settings['website']; $website = preg_replace('#^[^:/.]*[:/]+#i', '', urldecode($weburl)); $website = preg_replace('!\\bwww3?\\..*?\\b!', '', $website); $website = "<p> <strong>" . __('Website : ', 'dt_rise') . "</strong> {$website} </p>"; } $likes = get_post_meta($id, '_likes'); echo '<div class="portfolio-single-entry"><div class="portfolio-single-entry-inner">'; echo '<div class="portfolio-single-image-container column dt-sc-two-third first">'; echo "<ul class='ajax-portfolio-slider portfolio-slider-{$id}'>"; $url = ''; if (array_key_exists("items", $portfolio_settings)) { foreach ($portfolio_settings['items'] as $item) { echo '<li>'; if (strpos($item, "vimeo")) { #For Vimeo $url = substr(strrchr($item, "/"), 1); echo "<iframe src='http://player.vimeo.com/video/{$url}' width='940' height='564' frameborder='0'></iframe>"; } elseif (strpos($item, "?v=")) { #For Youtube $url = substr(strrchr($item, "="), 1); echo "<iframe src='http://www.youtube.com/embed/{$url}?wmode=opaque' width='940' height='564' frameborder='0'></iframe>"; } else { echo "<img src='{$item}' width='940' height='564' />"; } echo '</li>'; } } else { echo "<li><img src='http://placehold.it/940x564&text=Add%20Image%20/%20Video%20%20to%20Portfolio' /></li>"; } echo "</ul>"; echo '</div>'; echo '<div class="column dt-sc-one-third"> <h3>' . get_the_title($id) . '</h3>'; the_terms($id, 'portfolio_entries', '<p class="tags"> <span class="icon-tag"> </span> ', ', ', '</p>'); echo '<p>' . the_content() . '</p>'; echo $tools_used . $website . $author; echo "<p> <strong>Likes : </strong>"; if (isset($likes[0])) { echo $likes[0]; } else { echo 0; } echo "</p>"; if (isset($portfolio_settings['website'])) { echo '<a href="' . $weburl . '" title="" class="button small" target="_blank"> <span class="icon-globe"> </span>' . __(' Visit Website', 'dt_rise') . ' </a>'; } echo '</div>'; if (isset($portfolio_settings['show-social-share'])) { echo '<div class="social-share">'; dtthemes_mytheme_social_bookmarks('sb-portfolio'); echo '</div>'; } echo '</div></div>'; echo '<script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function($){ if( ($(".portfolio-slider-' . $id . '").length) && $(".portfolio-slider-' . $id . '").find("li").length > 1) { $(".portfolio-slider-' . $id . '").bxSlider({auto:true, video:true, useCSS:false, pager:"", autoHover:true, adaptiveHeight:true}); } }); </script>'; die(1); }
?> <ul class="social-bookmark"> <?php dtthemes_show_fblike('post'); dtthemes_show_googleplus('post'); dtthemes_show_twitter('post'); dtthemes_show_stumbleupon('post'); dtthemes_show_linkedin('post'); dtthemes_show_delicious('post'); dtthemes_show_pintrest('post'); dtthemes_show_digg('post'); ?> </ul> <div class="social-share"> <?php dtthemes_mytheme_social_bookmarks('sb-post'); ?> </div> <?php edit_post_link(__(' Edit ', 'dt_rise')); ?> </div> <div class="hr"> </div> </div> <div class="clear"> </div> <!-- **Comment Entries** --> <?php if (!dtthemes_mytheme_option('general', 'global-post-comment') && !isset($tpl_default_settings['disable-comment'])) { ?>