Plugin Directory

Changeset 1640346


Ignore:
Timestamp:
04/19/2017 07:49:57 AM (9 years ago)
Author:
sandeept1
Message:

Product & Post error rectified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • email-my-posts/tags/1.0.2/email-my-posts.php

    r1638342 r1640346  
    244244    $aftercontent = $email_footermsg;
    245245    $query = get_post(get_the_ID());
    246     $content = apply_filters('the_content', $query->post_content);
     246    $contents = apply_filters('the_content', $query->post_content);
    247247    $excerpt = get_the_excerpt();
    248248    $excerpt = substr($excerpt, 0, 300);
     
    262262
    263263        if($content_type == 1){
    264             $cont = '<div id="contents" style="color:'.$contstyles['color'].';line-height:'.$contstyles['line-height'].';width:100%;font-size:'.$contstyles['font-size'].';font-weight:'.$contstyles['font-weight'].';text-decoration: none;">'.$content.'</div>';
     264            $cont = '<div id="contents" style="color:'.$contstyles['color'].';line-height:'.$contstyles['line-height'].';width:100%;font-size:'.$contstyles['font-size'].';font-weight:'.$contstyles['font-weight'].';text-decoration: none;">'.$contents.'</div>';
    265265        }
    266266        elseif ($content_type == 2) {
     
    271271
    272272
    273     $emp_temp = '<div class="tempp" style="width:500px; height: auto;">
     273    $emptemp = '<div class="tempp" style="width:500px; height: auto;">
    274274            <div id="heads" style="color:'.$headstyles['color'].';line-height:'.$headstyles['line-height'].';width:100%;font-size:'.$headstyles['font-size'].';font-weight:'.$headstyles['font-weight'].';text-decoration: none;"" align="center">
    275275            '.$email_headermsg.'</div>
     
    282282           
    283283        </div> ';
    284         return $emp_temp;
     284        return $emptemp;
    285285
    286286
     
    368368
    369369if ($my_layout == large) {
    370     if ( is_single() && 'post'){
     370    if ( is_singular( $post_types = 'post' )){
    371371   
    372372    $aftercontent = '<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">'
     
    379379
    380380elseif ($my_layout == small) {
    381     if ( is_single() && 'post' ) {
     381    if ( is_singular( $post_types = 'post' ) ) {
    382382   
    383383    $aftercontent = '<button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal">'
     
    390390
    391391elseif ($my_layout == xtras) {
    392     if ( is_single() && 'post' ) {
     392    if ( is_singular( $post_types = 'post' ) ) {
    393393   
    394394    $aftercontent = '<button type="button" class="btn btn-primary btn-xs" data-toggle="modal" data-target="#myModal">'
     
    400400}
    401401elseif ($my_layout == blk) {
    402     if ( is_single() && 'post' ) {
     402    if ( is_singular( $post_types = 'post' ) ) {
    403403   
    404404    $aftercontent = '<button type="button" class="btn btn-primary btn-block" data-toggle="modal" data-target="#myModal">'
     
    594594    $titan = TitanFramework::getInstance( 'pst-email' );
    595595    $email_footermsg = $titan->getOption( 'email_footermsg' );
    596     if ( is_single() && 'post' ) {
     596    if ( is_singular( $post_types = 'post' ) ) {
    597597    $aftercontent = $email_footermsg;
    598598    $content .= '<p>'.$aftercontent.'</p>';
Note: See TracChangeset for help on using the changeset viewer.