Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter reialgoria

    (@reialgoria)

    <?php global $pmc_data; ?>
    <?php get_header(); ?>
    <!– top bar with breadcrumb and post navigati<?php _e(‘on ‘,’pmc-themes’); ?>–>

    <!– main content start –>
    <div class=”mainwrap single-default <?php if(!isset($pmc_data[‘use_fullwidth’])) echo ‘sidebar’ ?>”>
    <?php if (have_posts()) : while (have_posts()) : the_post(); $postmeta = get_post_custom(get_the_id()); ?>
    <div class=”main clearfix”>
    <div class=”content singledefult”>
    <div class=”postcontent singledefult” id=”post-<?php get_the_id(); ?>” <?php post_class(); ?>>
    <div class=”blogpost”>
    <div class=”posttext”>
    <div class=”topBlog”>

    <h2 class=”title”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
    <div class = “post-author”>
    “><?php _e(‘by ‘,’pmc-themes’);?> <span> <?php echo get_the_author(); ?></span>
    </div>
    <div class = “post-time”>

    </div>

    </div>
    <div class=”blogsingleimage”>

    <?php if ( !has_post_format( ‘gallery’ , get_the_id())) { ?>

    <?php
    if ( !get_post_format() ) {

    ?>
    <?php echo pmc_getImage(get_the_id(), ‘blog’); ?>
    <?php } ?>
    <?php if ( has_post_format( ‘video’ , get_the_id())) {?>

    <?php
    if(isset($postmeta[“video_post_url”][0])){
    $video = ”;
    $video_arg = ”;
    $video = wp_oembed_get( esc_url($postmeta[“video_post_url”][0]), $video_arg );
    $video = preg_replace(‘/width=\”(\d)*\”/’, ‘width=”570″‘, $video);
    $video = preg_replace(‘/height=\”(\d)*\”/’, ‘height=”420″‘, $video);
    echo $video;
    }
    ?>
    <?php } ?>
    <?php if ( has_post_format( ‘audio’ , get_the_id())) {?>
    <div class=”audioPlayer”>
    <?php
    if(isset($postmeta[“audio_post_url”][0]))
    echo do_shortcode(‘[audio file=”‘. esc_url($postmeta[“audio_post_url”][0]) .'”]’) ?>
    </div>
    <?php
    }
    ?>

    <?php } else {?>
    <?php
    global $post;
    $post_subtitrare = get_post( get_the_id() );
    $content = $post_subtitrare->post_content;
    $pattern = get_shortcode_regex();
    preg_match( “/$pattern/s”, $content, $match );
    if( isset( $match[2] ) && ( “gallery” == $match[2] ) ) {
    $atts = shortcode_parse_atts( $match[3] );
    $attachments = isset( $atts[‘ids’] ) ? explode( ‘,’, $atts[‘ids’] ) : get_children( ‘post_type=attachment&post_mime_type=image&post_parent=’ . get_the_id() .’&order=ASC&orderby=menu_order ID’ );
    }
    if ($attachments) {?>
    <div class=”gallery-single”>
    <?php
    foreach ($attachments as $attachment) {
    if(!is_object($attachment)){$attachment = $attachment;} else {
    if(!array_key_exists(‘ID’,$attachment)){$attachment = $attachment;} else {$attachment = $attachment->ID;}}
    $title = ”;
    //echo apply_filters(‘the_title’, $attachment->post_title);
    $image = wp_get_attachment_image_src( $attachment, ‘gallery’ );
    $imagefull = wp_get_attachment_image_src( $attachment, ‘full’ ); ?>
    <div class=”image-gallery”>
    ” rel=”lightbox[single-gallery]” title=”<?php echo get_post_meta($attachment, ‘_wp_attachment_image_alt’, true) ?>”><div class = “over”></div>
    <img src=”<?php echo esc_url($image[0]) ?>” alt=”<?php echo get_post_meta($attachment, ‘_wp_attachment_image_alt’, true) ?>”/>

    </div>
    <?php } ?>
    </div>
    <div class=”bottomborder”></div>
    <?php } ?>

    <?php } ?>
    <div class=”sentry”>
    <?php if ( has_post_format( ‘video’ , get_the_id())) {?>
    <div><?php the_content(); ?></div>
    <?php
    }
    if ( has_post_format( ‘audio’ , get_the_id())) { ?>
    <div><?php the_content(); ?></div>
    <?php
    }
    if(has_post_format( ‘gallery’ , get_the_id())){?>
    <div class=”gallery-content”><?php the_content(); ?></div>
    <?php }
    if( !get_post_format()){?>
    <div><?php the_content(); ?></div>
    <?php } ?>
    <div class=”post-page-links”><?php wp_link_pages(); ?></div>
    <div class=”singleBorder”></div>
    </div>
    </div>

    <div class = “lower-single-post-part”>
    <?php if(has_tag()) { ?>
    <div class=”tags”><i class = “fa fa-tags”></i><?php the_tags(”,’, ‘,”); ?></div>
    <?php } ?>

    <div class=”share-post”>
    <div class=”share-post-title”>
    <h3><?php _e(‘Share this post’,’pmc-themes’) ?></h3>
    </div>
    <div class=”share-post-icon”>
    <div class=”socialsingle”><?php pmc_socialLinkSingle(get_permalink(),get_the_title()) ?></div>
    </div>
    </div>

    <div class = “author-info-wrap”>
    <div class=”blogAuthor”>
    “><?php echo get_avatar(get_the_author_meta( ‘ID’ ), 100); ?>
    </div>
    <div class=”authorBlogName”>
    <?php _e(‘Written by ‘,’pmc-themes’); ?> <?php echo get_the_author(); ?>
    </div>
    <div class = “bibliographical-info”><?php echo get_the_author_meta(‘description’)?></div>
    </div>
    </div>

    </div>

    </div>

    <?php
    $posttags = wp_get_post_tags(get_the_id(), array( ‘fields’ => ‘ids’ ));
    $query_custom = new WP_Query(
    array( “tag__in” => $posttags,
    “orderby” => ‘rand’,
    “showposts” => 3,
    “post__not_in” => array(get_the_id())
    ) );
    if ($query_custom->have_posts()) : ?>
    <div class=”titleborderOut”>
    <div class=”titleborder”></div>
    </div>
    <div class=”relatedPosts”>
    <div class=”relatedtitle”>
    <h4><?php _e(‘Related Posts’,’pmc-themes’); ?></h4>
    </div>
    <div class=”related”>

    <?php
    $count = 0;
    while ($query_custom->have_posts()) : $query_custom->the_post();
    if(pmc_getImage(get_the_id(), ‘related’) !=”){
    $image_related = pmc_getImage(get_the_id(), ‘related’);
    }
    else{
    $image_related = ‘<img src=”https://placehold.it/370×250″>&#8217;;
    }
    if($count != 2){ ?>
    <div class=”one_third”>
    <?php } else { ?>
    <div class=”one_third last”>
    <?php } ?>
    <div class=”image”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php echo $image_related ?></div>
    <h4>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h4>

    </div>

    <?php
    $count++;
    endwhile; ?>
    </div>
    </div>
    <?php endif;
    wp_reset_postdata();

    ?> <?php
    $day = get_the_time(‘d’);
    $month= get_the_time(‘m’);
    $year= get_the_time(‘Y’);
    ?>
    <?php echo ‘‘; ?><?php the_time(‘F j, Y’) ?>

    <?php comments_template(); ?>
    <div class = “post-navigation”>
    <?php next_post_link(‘%link’, ‘<div class=”link-title-previous”><span>« ‘.__(‘Previous post’,’pmc-themes’).'</span><div class=”prev-post-title”>%title</div></div>’ ,false,”); ?>
    <?php previous_post_link(‘%link’,'<div class=”link-title-next”><span>’.__(‘Next post’,’pmc-themes’).’ »</span><div class=”next-post-title”>%title</div></div>’,false,”); ?>
    </div>
    <?php endwhile; else: ?>

    <?php get_template_part(‘404’); ?>
    <?php endif; ?>
    </div>

    </div>
    <?php if(!isset($pmc_data[‘use_fullwidth’])) { ?>
    <div class=”sidebar”>
    <?php dynamic_sidebar( ‘sidebar’ ); ?>
    </div>
    <?php } ?>
    </div>
    <?php get_footer(); ?>

    this plugin is shit.. nothing work correctly..

Viewing 2 replies - 1 through 2 (of 2 total)