HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/testingff/public_html/fdfctr/wp-content/plugins/juicer/juicer.php
<?php
/**
 * Plugin Name: Juicer
 * Plugin URI: https://wp.juicer.io
 * Description: Embed, curate & aggregate social media feeds from Instagram, Twitter, TikTok, Facebook, LinkedIn, YouTube, Slack, etc. and customize them as you like.
 * Version: 1.11
 * Author: saas.group LLC
 * Author URI: https://saas.group
 * License: GPLv2 or later
 */

/*
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/


add_action( 'wp_enqueue_scripts', 'juicer_scripts', 0 );
function juicer_scripts() {

  wp_enqueue_script('jquery');

  wp_enqueue_script(
    'juicerembed',
    '//assets.juicer.io/embed-no-jquery.js',
    array('jquery'),
    false,
    false
  );

  wp_enqueue_style(
    'juicerstyle',
    '//assets.juicer.io/embed.css'
  );
}

class Juicer_Feed {

  public function render( $args ) {

    $defaults = array(
      'name' => 'error',
    );

    $args = wp_parse_args( $args, $defaults);

    $map_attributes = generate_attributes($args);

    $attributes = join(' ', $map_attributes);

    $output = '<ul class="juicer-feed" data-origin="wp-plugin-1-11" data-feed-id="' . htmlspecialchars($args['name']) . '" ' . $attributes . '>';

    $closing = (array_key_exists('paid', $args)) ? '</ul>' : '<h1 class="referral"><a href="http://www.juicer.io">Powered by Juicer</a></h1></ul>';

    $output = $output . $closing;

    return $output;
  }

}

function generate_attributes( $array ) {
  $attrs = array();

  foreach ( $array as $key => $val ) {
    if ( $key == 'name' ) {
      continue;
    }
    $escaped_val = htmlspecialchars($val);
    if ( !empty($escaped_val) ) {
      if (strpos($escaped_val, 'data-') !== false) {
        array_push($attrs, $escaped_val);
      } else {
        array_push($attrs, 'data-' . $key . '="' . $escaped_val . '"');
      }
    }
  }

  return $attrs;
}

function juicer_feed( $args ) {
    $feed = new Juicer_Feed();
    echo $feed->render( $args );
}

function juicer_shortcode( $args ) {
  extract( shortcode_atts( array(
      'name'    => 'error',
  ), $args ) );

  $feed = new Juicer_Feed();

  return $feed->render( $args );
}

add_shortcode( 'juicer', 'juicer_shortcode' );
?>