PluginProbe ʕ •ᴥ•ʔ
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress / 4.12.0
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress v4.12.0
4.12.0 4.10.0 4.9.0 4.8.1 trunk 1.0 1.1 1.12.1 1.2.3 1.2.4 1.2.5 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.5 1.5.1 1.5.2 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.4.1 1.6.5 1.6.5.1 1.6.6 1.6.6.1 1.6.6.2 1.6.6.3 1.6.7 1.6.7.1 1.6.8 1.6.8.1 1.6.8.2 1.7.0 1.7.1 1.7.2 1.8.0 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.9.0 1.9.1 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.8.1 1.9.9 1.9.9.1 1.9.9.2 1.9.9.3 2.0 2.0.1 2.1 2.1.1 2.1.2 2.1.3 2.10 2.11 2.11.1 2.12 2.12.1 2.12.2 2.12.3 2.12.4 2.13 2.14 2.14.1 2.15 2.15.1 2.16 2.16.1 2.17 2.17.1 2.18 2.18.1 2.18.2 2.18.3 2.19 2.19.1 2.19.2 2.19.3 2.2 2.2.1 2.3 2.3.1 2.3.10 2.3.2 2.3.3 2.3.4 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.1.1 2.4.1.2 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.5 2.5.1 2.5.2 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.7 2.7.1 2.7.2 2.8 2.9 2.9.1 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.1 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.7.5 4.7.6 4.7.7
custom-facebook-feed / admin / templates / locator-summary.php
custom-facebook-feed / admin / templates Last commit date
index.php 2 weeks ago locator-summary.php 2 weeks ago
locator-summary.php
95 lines
1 <?php
2
3 /**
4 * Custom Feeds for Facebook Feed Locator Summary Template
5 * Creates the HTML for the feed locator summary
6 *
7 * @version 2.19 Custom Feeds for Facebook Pro by Smash Balloon
8 */
9
10 use CustomFacebookFeed\CFF_FB_Settings;
11
12 if (! defined('ABSPATH')) {
13 exit; // Exit if accessed directly
14 }
15 $database_settings = get_option('cff_style_settings');
16 $connected_accounts = (array)json_decode(stripcslashes(get_option('cff_connected_accounts')));
17
18 ?>
19 <div class="cff-feed-locator-summary-wrap">
20 <h3><?php esc_html_e('Feed Finder Summary', 'custom-facebook-feed'); ?></h3>
21 <p><?php esc_html_e('The table below shows a record of all feeds found on your site. A feed may not show up here immediately after being created.', 'custom-facebook-feed'); ?></p>
22 <?php
23 if (! empty($locator_summary)) : ?>
24 <?php foreach ($locator_summary as $locator_section) :
25 if (! empty($locator_section['results'])) : ?>
26 <div class="cff-single-location">
27 <h4><?php echo esc_html($locator_section['label']); ?></h4>
28 <table class="widefat striped">
29 <thead>
30 <tr>
31 <th><?php esc_html_e('Type', 'custom-facebook-feed'); ?></th>
32 <th><?php esc_html_e('Sources', 'custom-facebook-feed'); ?></th>
33 <th><?php esc_html_e('Shortcode', 'custom-facebook-feed'); ?></th>
34 <th><?php esc_html_e('Location', 'custom-facebook-feed'); ?></th>
35 </tr>
36 </thead>
37 <tbody>
38
39 <?php
40 $atts_for_page = array();
41 foreach ($locator_section['results'] as $result) :
42 $should_add = true;
43 if (! empty($atts_for_page[ $result['post_id'] ])) {
44 foreach ($atts_for_page[ $result['post_id'] ] as $existing_atts) {
45 if ($existing_atts === $result['shortcode_atts']) {
46 $should_add = false;
47 }
48 }
49 }
50 if ($should_add) {
51 $atts_for_page[ $result['post_id'] ][] = $result['shortcode_atts'];
52 $shortcode_atts = $result['shortcode_atts'] != '[""]' ? json_decode($result['shortcode_atts'], true) : [];
53 $shortcode_atts = is_array($shortcode_atts) ? $shortcode_atts : array();
54 $display_terms = CFF_FB_Settings::feed_type_and_terms_display($connected_accounts, $result, $database_settings);
55 $comma_separated = implode(',', $display_terms['name']);
56
57 $display = $comma_separated;
58 if (strlen($comma_separated) > 31) {
59 $display = '<span class="cff-condensed-wrap">' . esc_html(substr($comma_separated, 0, 30)) . '<a class="cff-locator-more" href="JavaScript:void(0);">...</a></span>';
60 $comma_separated = '<span class="cff-full-wrap">' . esc_html($comma_separated) . '</span>';
61 } else {
62 $comma_separated = '';
63 }
64 $type = implode(',', $display_terms['type']);
65
66 $full_shortcode_string = '[custom-facebook-feed';
67 foreach ($shortcode_atts as $key => $value) {
68 $full_shortcode_string .= ' ' . esc_html($key) . '="' . esc_html($value) . '"';
69 }
70 $full_shortcode_string .= ']';
71 ?>
72 <tr>
73 <td><?php echo esc_html($type); ?></td>
74 <td><?php echo $display . $comma_separated; ?></td>
75 <td>
76 <span class="cff-condensed-wrap"><a class="cff-locator-more" href="JavaScript:void(0);"><?php esc_html_e('Show', 'custom-facebook-feed'); ?></a></span>
77 <span class="cff-full-wrap"><?php echo $full_shortcode_string; ?></span>
78 </td>
79 <td><a href="<?php echo esc_url(get_the_permalink($result['post_id'])); ?>" target="_blank" rel="noopener"><?php echo esc_html(get_the_title($result['post_id'])); ?></a></td>
80 </tr>
81 <?php
82 }
83 endforeach; ?>
84
85
86 </tbody>
87 </table>
88 </div>
89
90 <?php endif;
91 endforeach;
92 else : ?>
93 <p><?php esc_html_e('Locations of your feeds are currently being detected. You\'ll see more information posted here soon!', 'custom-facebook-feed'); ?></p>
94 <?php endif; ?>
95 </div>