Changeset 1640348
- Timestamp:
- 04/19/2017 07:50:45 AM (9 years ago)
- File:
-
- 1 edited
-
email-my-posts/trunk/email-my-posts.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
email-my-posts/trunk/email-my-posts.php
r1638340 r1640348 244 244 $aftercontent = $email_footermsg; 245 245 $query = get_post(get_the_ID()); 246 $content = apply_filters('the_content', $query->post_content);246 $contents = apply_filters('the_content', $query->post_content); 247 247 $excerpt = get_the_excerpt(); 248 248 $excerpt = substr($excerpt, 0, 300); … … 262 262 263 263 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>'; 265 265 } 266 266 elseif ($content_type == 2) { … … 271 271 272 272 273 $emp _temp = '<div class="tempp" style="width:500px; height: auto;">273 $emptemp = '<div class="tempp" style="width:500px; height: auto;"> 274 274 <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"> 275 275 '.$email_headermsg.'</div> … … 282 282 283 283 </div> '; 284 return $emp _temp;284 return $emptemp; 285 285 286 286 … … 368 368 369 369 if ($my_layout == large) { 370 if ( is_sing le() && 'post'){370 if ( is_singular( $post_types = 'post' )){ 371 371 372 372 $aftercontent = '<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">' … … 379 379 380 380 elseif ($my_layout == small) { 381 if ( is_sing le() && 'post') {381 if ( is_singular( $post_types = 'post' ) ) { 382 382 383 383 $aftercontent = '<button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal">' … … 390 390 391 391 elseif ($my_layout == xtras) { 392 if ( is_sing le() && 'post') {392 if ( is_singular( $post_types = 'post' ) ) { 393 393 394 394 $aftercontent = '<button type="button" class="btn btn-primary btn-xs" data-toggle="modal" data-target="#myModal">' … … 400 400 } 401 401 elseif ($my_layout == blk) { 402 if ( is_sing le() && 'post') {402 if ( is_singular( $post_types = 'post' ) ) { 403 403 404 404 $aftercontent = '<button type="button" class="btn btn-primary btn-block" data-toggle="modal" data-target="#myModal">' … … 594 594 $titan = TitanFramework::getInstance( 'pst-email' ); 595 595 $email_footermsg = $titan->getOption( 'email_footermsg' ); 596 if ( is_sing le() && 'post') {596 if ( is_singular( $post_types = 'post' ) ) { 597 597 $aftercontent = $email_footermsg; 598 598 $content .= '<p>'.$aftercontent.'</p>';
Note: See TracChangeset
for help on using the changeset viewer.