type
1 month ago
author.php
1 month ago
container.php
1 month ago
date.php
1 month ago
index.php
1 month ago
media-link.php
1 month ago
post-link.php
1 month ago
post-text.php
1 month ago
shared-link.php
1 month ago
post-text.php
46 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Custom Facebook Feed Item : Post Text Template |
| 5 | * Displays the custom feed item post text |
| 6 | * |
| 7 | * @version 2.19 Custom Facebook Feed by Smash Balloon |
| 8 | */ |
| 9 | |
| 10 | // Don't load directly |
| 11 | if (! defined('ABSPATH')) { |
| 12 | die('-1'); |
| 13 | } |
| 14 | use CustomFacebookFeed\CFF_Utils; |
| 15 | use CustomFacebookFeed\CFF_Autolink; |
| 16 | use CustomFacebookFeed\CFF_Shortcode_Display; |
| 17 | |
| 18 | $cff_title_styles = \CustomFacebookFeed\CFF_Parse::get_status_type($news) !== 'created_event' ? $this_class->get_style_attribute('post_text') : $this_class->get_style_attribute('event_title'); |
| 19 | $cff_title_format = CFF_Shortcode_Display::get_post_text_title_format($atts); |
| 20 | |
| 21 | if (!empty($post_text)) : |
| 22 | ?> |
| 23 | |
| 24 | <<?php echo $cff_title_format ?> class="cff-post-text" <?php echo $cff_title_styles; ?>> |
| 25 | <span class="cff-text" data-color="<?php echo esc_attr($cff_posttext_link_color) ?>"> |
| 26 | <?php |
| 27 | if ($cff_title_link) : |
| 28 | $text_link = CFF_Shortcode_Display::get_post_text_link($cff_post_type, $this_class, $link, $PostID); |
| 29 | ?> |
| 30 | <a class="cff-post-text-link" href="<?php echo esc_url($text_link); ?>" <?php echo $cff_title_styles . ' ' . $target . ' ' . $cff_nofollow ;?> > |
| 31 | <?php |
| 32 | endif; |
| 33 | echo CFF_Shortcode_Display::get_post_text_contenttext($post_text, $cff_linebreak_el, $cff_title_link); |
| 34 | ?> |
| 35 | <?php if ($cff_title_link) : ?> |
| 36 | </a> |
| 37 | <?php endif; ?> |
| 38 | </span> |
| 39 | <span class="cff-expand">... <a href="#" style="color: #<?php echo $cff_posttext_link_color; ?>"><span class="cff-more"><?php echo esc_html($atts[ 'seemoretext' ]); ?></span><span class="cff-less"><?php echo esc_html($atts[ 'seelesstext' ]); ?></span></a></span> |
| 40 | |
| 41 | </<?php echo $cff_title_format ?>> |
| 42 | |
| 43 | <?php endif; |
| 44 | |
| 45 | CFF_Shortcode_Display::get_post_text_call_to_actions($atts, $news, $cff_title_styles, $cff_posttext_link_color, $cff_nofollow_referrer); |
| 46 |