function presscore_display_share_buttons_for_image($place = '', $options = array()) { $default_options = array('class' => array('album-share-overlay')); $options = wp_parse_args($options, $default_options); return presscore_display_share_buttons($place, $options); }
protected function get_slide_share_buttons() { if (!function_exists('presscore_get_share_buttons_list') || !$this->settings['show_share_buttons']) { return ''; } $html = presscore_display_share_buttons('photo', array('echo' => false, 'class' => 'album-share-overlay')); return $html; }
// post content the_content(); } ?> <?php wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', LANGUAGE_ZONE), 'after' => '</div>')); ?> <?php $post_tags = ''; $config = presscore_get_config(); if ($config->get('post.meta.fields.tags')) { $post_tags = presscore_get_post_tags_html(); } $share_buttons = presscore_display_share_buttons('post', array('echo' => false)); if ($share_buttons || $post_tags) { printf('<div class="post-meta wf-mobile-collapsed">%s</div>', $post_tags . $share_buttons); } ?> <?php // 'theme options' -> 'general' -> 'show author info on blog post pages' if ($config->get('post.author_block')) { presscore_display_post_author(); } ?> <?php presscore_display_related_posts(); ?>
<?php if (have_posts()) { while (have_posts()) { the_post(); ?> <?php do_action('presscore_before_loop'); ?> <?php the_content(); ?> <?php presscore_display_share_buttons('page'); ?> <?php comments_template('', true); ?> <?php } ?> <?php } else { ?> <?php
<?php do_action('presscore_before_post_content'); ?> <?php $img_meta = wp_get_attachment_image_src($post->ID, 'full'); $img_args = array('img_meta' => $img_meta, 'img_id' => $post->ID, 'options' => array('w' => 890, 'z' => false), 'custom' => 'data-dt-img-description="' . esc_attr(get_the_excerpt()) . '"', 'class' => 'alignnone rollover rollover-zoom dt-single-mfp-popup dt-mfp-item mfp-image', 'title' => get_the_title(), 'wrap' => '<a %HREF% %CLASS% %CUSTOM% %TITLE%><img %IMG_CLASS% %SRC% %ALT% %SIZE% /></a>'); if (isset($img_meta[1]) && $img_meta[1] < 890) { $img_args['wrap'] = "\n" . '<img %IMG_CLASS% %SRC% %SIZE% %ALT%/>' . "\n"; $img_args['class'] = ''; $img_args['img_class'] = 'alignleft'; $img_args['custom'] = ''; } dt_get_thumb_img($img_args); the_content(); presscore_display_share_buttons('photo'); ?> </article> <?php do_action('presscore_after_post_content'); ?> <?php } ?> <?php } ?>
} // layout switch ($media_layout) { case 'left': $before_content .= sprintf('%s<div class="wf-cell %s project-content">', $media_html_with_wrap, $content_container_class); $after_content = '</div>' . $after_content; break; case 'right': $before_content .= '<div class="wf-cell ' . $content_container_class . ' project-content">'; $after_content .= sprintf('%s', $media_html_with_wrap); break; } // if media disabled } else { $before_content .= '<div class="wf-cell wf-1 project-content">'; $after_content = '</div>' . $after_content; } $show_navigation = presscore_is_post_navigation_enabled(); $project_link = presscore_get_project_link('btn-link btn-project-link'); echo $before_content; if ($show_navigation || $project_link) { echo '<div class="project-navigation">'; presscore_post_navigation_controller(); echo $project_link; echo '</div>'; } the_content(); echo presscore_new_posted_on('dt_portfolio'); presscore_display_share_buttons('portfolio_post'); wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', LANGUAGE_ZONE), 'after' => '</div>')); echo $after_content;