?> </div> </div> <div class="clearfix"></div> </div> </div> </article> <?php if (is_single()) { ?> <div class="clearfix single-page-atts"> <div class="clearfix single-page-att"> <h6><?php echo __('Share This : ', 'be-themes'); ?> </h6> <div class="share-links clearfix"><?php echo be_get_share_button(get_the_permalink(), get_the_title()); ?> </div> </div> <div class="clearfix single-page-att"> <h6><?php echo __('Tags : ', 'be-themes'); ?> </h6> <?php echo get_the_tag_list('<div class="tagcloud">', '', '</div>'); ?> </div> </div> <?php }
function be_project_details($atts, $content) { extract(shortcode_atts(array('style' => 'style1', 'alignment' => 'left'), $atts)); global $be_themes_data; $alignment = !isset($alignment) || empty($alignment) ? 'left' : $alignment; $style = !isset($style) || empty($style) ? 'style1' : $style; if ($style == 'style2') { $alignment = 'initial'; } global $post; $output = ''; $post_type = get_post_type(); if ($post_type != 'portfolio') { return ''; } else { $output .= '<div class="portfolio-details ' . $style . '" style="text-align: ' . $alignment . '">'; if (!is_page_template('gallery.php') || !is_page_template('portfolio.php')) { if (get_post_meta($post->ID, 'be_themes_portfolio_client_name', true)) { $output .= '<div class="gallery-side-heading-wrap portfolio-client-name clearfix"><h6 class="gallery-side-heading">' . __('Client', 'be-themes') . '</h6>'; $output .= '<p><span class="project_client">' . get_post_meta($post->ID, 'be_themes_portfolio_client_name', true) . '</span></p></div>'; } if (get_post_meta($post->ID, 'be_themes_portfolio_project_date', true)) { $output .= '<div class="gallery-side-heading-wrap portfolio-project-date clearfix"><h6 class="gallery-side-heading">' . __('Project Date', 'be-themes') . '</h6>'; $output .= '<p><span class="project_client">' . get_post_meta($post->ID, 'be_themes_portfolio_project_date', true) . '</span></p></div>'; } if (get_be_themes_portfolio_category_list($post->ID, true)) { $output .= '<div class="gallery-side-heading-wrap portfolio-category clearfix"><div class="gallery-cat-list-wrap">'; $output .= '<h6 class="gallery-side-heading">' . __('Category', 'be-themes') . '</h6>'; $output .= '<p>' . get_be_themes_portfolio_category_list($post->ID, true) . '</p>'; $output .= '</div></div>'; } } $output .= '<div class="gallery-side-heading-wrap portfolio-share clearfix"><h6 class="gallery-side-heading">' . __('Share This', 'be-themes') . '</h6>'; $output .= '<p>'; $output .= be_get_share_button(get_permalink($post->ID), get_the_title($post->ID), $post->ID); $output .= '</p></div>'; if (get_post_meta($post->ID, 'be_themes_portfolio_visitsite_url', true)) { if (!isset($be_themes_data['portfolio_visit_site_style']) || empty($be_themes_data['portfolio_visit_site_style'])) { $be_themes_data['portfolio_visit_site_style'] = 'style1'; } $output .= '<a href="' . get_post_meta($post->ID, 'be_themes_portfolio_visitsite_url', true) . '" class="mediumbtn be-button view-project-link ' . $be_themes_data['portfolio_visit_site_style'] . '-button" target="_blank">' . __('View Project', 'be-themes') . '</a>'; } $output .= '</div>'; return $output; } }
function be_themes_share_woo_products() { echo '<p>' . be_get_share_button(get_permalink(get_the_ID()), get_the_title(get_the_ID()), get_the_ID()) . '</p>'; }