Plugin Directory

Changeset 2129493


Ignore:
Timestamp:
07/27/2019 04:38:31 PM (7 years ago)
Author:
freelancermartin
Message:

removed licence and fixed shortcode and php error on plugin

Location:
spartan-gallery/trunk
Files:
22 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • spartan-gallery/trunk/admin/class-spartan-gallery-admin.php

    r2036461 r2129493  
    2828 }
    2929
    30  
     30
    3131class Spartan_Gallery_Admin {
    3232
  • spartan-gallery/trunk/admin/class-spartan-gallery-metaboxes.php

    r2036461 r2129493  
    3737          <tr><td>
    3838
    39           <span style="color:#183691;" ><code>[spartan_gallery  page_id="<span style="color:green;" ><?php print_r(get_the_ID()); ?></span>"]</code><span style="color:#A71D5D;" ></span>
    40           </span>
     39           <p><code style="color:#A71D5D;" >[spartan_gallery  id='<?php print_r(get_the_ID()); ?>']</code></p>
     40
    4141          </td>
    4242          <td width="50px" style="align:right;">
    43 
    44 
    4543
    4644           </td></tr>
     
    5654          <table width="100%">
    5755          <tr><td>
    58 
    59           <span style="color:#183691;" ><span style="color:#A71D5D;">&lt;?php</span> <span style="color:red;">echo do_shortcode("</span>[spartan_gallery  page_id="<span style="color:green;" ><?php print_r(get_the_ID()); ?></span>"]<span style="color:#A71D5D;" ></span><span style="color:red;">");</span> <span style="color:#A71D5D;">?&gt;</span>
    60        </span>
    61 
     56            <p><code style="color:#A71D5D;" >echo do_shortcode("[spartan_gallery id='<?php print_r(get_the_ID()); ?>']");</code></p>
    6257           </td>
    6358          <td width="50px" style="align:right;">
  • spartan-gallery/trunk/includes/class-spartan-gallery-loader.php

    r2036461 r2129493  
    2727     * The array of actions registered with WordPress.
    2828     *
    29      * @since    1.0.0
    30      * @access   protected
    31      * @var      array    $actions    The actions registered with WordPress to fire when the plugin loads.
     29     * @since       1.0.0
     30     * @access      protected
     31     * @var         array           $actions        The actions registered with WordPress to fire when the plugin loads.
    3232     */
    3333    protected $actions;
     
    3636     * The array of filters registered with WordPress.
    3737     *
    38      * @since    1.0.0
    39      * @access   protected
    40      * @var      array    $filters    The filters registered with WordPress to fire when the plugin loads.
     38     * @since       1.0.0
     39     * @access      protected
     40     * @var         array           $filters        The filters registered with WordPress to fire when the plugin loads.
    4141     */
    4242    protected $filters;
    4343
    4444    /**
     45     *
     46     * @since 1.0.0
     47     * @access private
     48     * @var object|Spartan_Gallery_Loader
     49     */
     50    private static $instance;
     51
     52    /**
    4553     * Initialize the collections used to maintain the actions and filters.
    4654     *
    47      * @since    1.0.0
     55     * @since       1.0.0
    4856     */
    4957    public function __construct() {
     
    5765     * Add a new action to the collection to be registered with WordPress.
    5866     *
    59      * @since    1.0.0
    60      * @param    string               $hook             The name of the WordPress action that is being registered.
    61      * @param    object               $component        A reference to the instance of the object on which the action is defined.
    62      * @param    string               $callback         The name of the function definition on the $component.
    63      * @param    int                  $priority         Optional. The priority at which the function should be fired. Default is 10.
    64      * @param    int                  $accepted_args    Optional. The number of arguments that should be passed to the $callback. Default is 1.
     67     * @since       1.0.0
     68     * @param       string                  $hook               The name of the WordPress action that is being registered.
     69     * @param       object                  $component          A reference to the instance of the object on which the action is defined.
     70     * @param       string                  $callback           The name of the function definition on the $component.
     71     * @param       int         Optional    $priority           The priority at which the function should be fired.
     72     * @param       int         Optional    $accepted_args      The number of arguments that should be passed to the $callback.
    6573     */
    6674    public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
     
    7179     * Add a new filter to the collection to be registered with WordPress.
    7280     *
    73      * @since    1.0.0
    74      * @param    string               $hook             The name of the WordPress filter that is being registered.
    75      * @param    object               $component        A reference to the instance of the object on which the filter is defined.
    76      * @param    string               $callback         The name of the function definition on the $component.
    77      * @param    int                  $priority         Optional. The priority at which the function should be fired. Default is 10.
    78      * @param    int                  $accepted_args    Optional. The number of arguments that should be passed to the $callback. Default is 1
     81     * @since       1.0.0
     82     * @param       string                  $hook               The name of the WordPress filter that is being registered.
     83     * @param       object                  $component          A reference to the instance of the object on which the filter is defined.
     84     * @param       string                  $callback           The name of the function definition on the $component.
     85     * @param       int         Optional    $priority           The priority at which the function should be fired.
     86     * @param       int         Optional    $accepted_args      The number of arguments that should be passed to the $callback.
    7987     */
    8088    public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
     
    8694     * collection.
    8795     *
    88      * @since    1.0.0
    89      * @access   private
    90      * @param    array                $hooks            The collection of hooks that is being registered (that is, actions or filters).
    91      * @param    string               $hook             The name of the WordPress filter that is being registered.
    92      * @param    object               $component        A reference to the instance of the object on which the filter is defined.
    93      * @param    string               $callback         The name of the function definition on the $component.
    94      * @param    int                  $priority         The priority at which the function should be fired.
    95      * @param    int                  $accepted_args    The number of arguments that should be passed to the $callback.
    96      * @return   array                                  The collection of actions and filters registered with WordPress.
     96     * @since       1.0.0
     97     * @access      private
     98     * @param       array                   $hooks              The collection of hooks that is being registered (that is, actions or filters).
     99     * @param       string                  $hook               The name of the WordPress filter that is being registered.
     100     * @param       object                  $component          A reference to the instance of the object on which the filter is defined.
     101     * @param       string                  $callback           The name of the function definition on the $component.
     102     * @param       int         Optional    $priority           The priority at which the function should be fired.
     103     * @param       int         Optional    $accepted_args      The number of arguments that should be passed to the $callback.
     104     * @return      type                                        The collection of actions and filters registered with WordPress.
    97105     */
    98106    private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) {
    99107
    100         $hooks[] = array(
     108        $hooks[ $this->hook_index( $hook, $component, $callback ) ] = array(
    101109            'hook'          => $hook,
    102110            'component'     => $component,
     
    111119
    112120    /**
     121     * Get an instance of this class
     122     *
     123     * @since 1.0.0
     124     * @return object|\Plugin_Name_Loader
     125     */
     126    public static function get_instance() {
     127        if( is_null( self::$instance ) ) {
     128            self::$instance = new Now_Hiring_Loader();
     129        }
     130        return self::$instance;
     131    }
     132
     133    /**
     134     * Utility function for indexing $this->hooks
     135     *
     136     * @since       1.0.0
     137     * @access      protected
     138     * @param      string               $hook             The name of the WordPress filter that is being registered.
     139     * @param      object               $component        A reference to the instance of the object on which the filter is defined.
     140     * @param      string               $callback         The name of the function definition on the $component.
     141     *
     142     * @return string
     143     */
     144    protected function hook_index( $hook, $component, $callback ) {
     145        return md5( $hook . get_class( $component ) . $callback );
     146    }
     147
     148    /**
     149     * Remove a hook.
     150     *
     151     * Hook must have been added by this class for this remover to work.
     152     *
     153     * Usage Plugin_Name_Loader::get_instance()->remove( $hook, $component, $callback );
     154     *
     155     * @since      1.0.0
     156     * @param      string               $hook             The name of the WordPress filter that is being registered.
     157     * @param      object               $component        A reference to the instance of the object on which the filter is defined.
     158     * @param      string               $callback         The name of the function definition on the $component.
     159     */
     160    public function remove( $hook, $component, $callback ) {
     161
     162        $index = $this->hook_index( $hook, $component, $callback );
     163
     164        if( isset( $this->filters[ $index ]  ) ) {
     165            remove_filter( $this->filters[ $index ][ 'hook' ],  array( $this->filters[ $index ][ 'component' ], $this->filters[ $index ][ 'callback' ] ) );
     166        }
     167
     168        if( isset( $this->actions[ $index ] ) ) {
     169            remove_action( $this->filters[ $index ][ 'hook' ],  array( $this->filters[ $index ][ 'component' ], $this->filters[ $index ][ 'callback' ] ) );
     170        }
     171
     172    }
     173
     174    /**
    113175     * Register the filters and actions with WordPress.
    114176     *
    115      * @since    1.0.0
     177     * @since       1.0.0
    116178     */
    117179    public function run() {
  • spartan-gallery/trunk/includes/class-spartan-gallery.php

    r2036461 r2129493  
    145145        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-spartan-gallery-welcome-dashboard.php';
    146146
    147         /**
    148          * The class responsible for defining all actions that occur in the public-facing
    149          * side of the site.
    150          */
    151         require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/spartan-gallery-shortcode.php';
    152147
    153148        /**
     
    156151         */
    157152        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-spartan-gallery-public.php';
    158 
    159         /**
    160          * The class responsible for defining all actions that occur in the public-facing
    161          * side of the site.
    162          */
    163         require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/spartan-gallery-function.php';
    164153
    165154        /**
     
    291280        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
    292281        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
     282        $this->loader->add_action( 'init', $plugin_public, 'register_shortcodes' );
     283        $this->loader->add_action( 'spartan_gallery', $plugin_public, 'spartan_gallery_shortcode' );
     284       
    293285
    294286    }
  • spartan-gallery/trunk/public/class-spartan-gallery-public.php

    r2036461 r2129493  
    2727 }
    2828
    29  
     29
    3030class Spartan_Gallery_Public {
    3131
     
    130130    }
    131131
     132
     133  /**
     134   * Register the JavaScript for the public-facing side of the site.
     135   *
     136   * @since    1.0.0
     137   */
     138  public function spartan_gallery_post_type( $id )
     139  {
     140
     141        //$loop_args = array( 'post_type' => 'spartan_gallery_type', /*'posts_per_page' => -1,*/ 'page_id' => $id );
     142        //$loop = new WP_Query( $loop_args );
     143        //while ( $loop->have_posts() ) : $loop->the_post();
     144
     145         $args = array(
     146           'post_type'   => 'attachment',
     147           'posts_per_page' => -1,
     148           'post_parent' => $id,
     149           'post_status' => 'inherit',
     150           'meta_query'  => array(
     151             array(
     152               'key'     => 'spartan_gallery',
     153               'compare' => '='
     154             )
     155           )
     156
     157         );
     158
     159       //endwhile;
     160
     161       return $args;
     162
     163  }
     164
     165
     166  /**
     167     * Register the JavaScript for the public-facing side of the site.
     168     *
     169     * @since    1.0.0
     170     */
     171    public function spartan_gallery_shortcode($atts = [], $content = null, $tag = '')
     172  {
     173
     174
     175        // normalize attribute keys, lowercase
     176       $atts = array_change_key_case((array)$atts, CASE_LOWER);
     177
     178       // override default attributes with user attributes
     179       $wporg_atts = shortcode_atts( [ 'id' => '' ], $atts, $tag );
     180
     181       // start output
     182       $shortcode_container = '';
     183
     184
     185       $shortcode_container .= '<div class="spartan-gallery-box">';
     186
     187       $spartan_gallery_post_type = $this->spartan_gallery_post_type( $wporg_atts['id'] );
     188
     189       $attachments = get_posts( $spartan_gallery_post_type );
     190
     191       $my_meta_options = get_post_meta( $attachments[0]->post_parent , 'spartan-gallery-meta', true ); // array
     192       //print_r( $attachment );
     193
     194          switch ( $my_meta_options['image_layout_select'] ) {
     195            case 'value-1':
     196              $shortcode_container .= Freewall_Chaotic_Container::display_chaotic_html_container( $attachments );
     197            break;
     198            case 'value-2':
     199              $shortcode_container .= Freewall_Random_Container::display_random_container( $attachments );
     200            break;
     201            case 'value-3':
     202              $shortcode_container .= Freewall_Fixed_Img_Container::display_fixed_img_container( $attachments );
     203            break;
     204            case 'value-4':
     205              $shortcode_container .= Freewall_Pinterest_Container::display_pinterest_container( $attachments );
     206            break;
     207            case 'value-5':
     208              $shortcode_container .= Spartan_Gallery_Hexagon::hexagon_html_container( $attachments );
     209            break;
     210            case 'value-6':
     211              $shortcode_container .= ThreeD_Image_Slider::ThreeDImageSlidet_Html_container( $attachments );
     212            break;
     213          }
     214
     215       // end box
     216       $shortcode_container .= '</div>';
     217
     218       // return output
     219       return $shortcode_container;
     220
     221  }
     222
     223
     224
     225  /**
     226     * Registers all shortcodes at once
     227     *
     228     * @return [type] [description]
     229     */
     230    public function register_shortcodes()
     231  {
     232
     233        add_shortcode( 'spartan_gallery', array( $this, 'spartan_gallery_shortcode' ) );
     234
     235    }
     236
     237
     238
    132239}
  • spartan-gallery/trunk/public/custom-columns.php

    r2036461 r2129493  
    7272      <tr><td>
    7373
    74       <span style="color:#183691;" ><code>[spartan_gallery  page_id="<span style="color:green;" ><?php print_r(get_the_ID()); ?></span>"]</code><span style="color:#A71D5D;" ></span>
     74      <span style="color:#183691;" ><code>[spartan_gallery  id="<code style="color:green;" ><?php print_r(get_the_ID()); ?></code>"]</code><code style="color:#A71D5D;" ></code>
    7575   </span>
    7676      </td>
  • spartan-gallery/trunk/public/html-cointainer-outputs/class-3d-slider-html-container.php

    r2036461 r2129493  
    1414
    1515
    16     echo '<div class="spartan-gallery-wrapper w-gallery">';
    17       echo '<section id="responsiveGallery-container" class="responsiveGallery-container">';
    18         echo '<a class="responsiveGallery-btn responsiveGallery-btn_prev" href="javascript:void(0);"></a>';
    19         echo '<a class="responsiveGallery-btn responsiveGallery-btn_next" href="javascript:void(0);"></a>';
    20           echo '<ul class="responsiveGallery-wrapper">';
     16    $output = '';
     17    $output .= '<div class="spartan-gallery-wrapper w-gallery">';
     18      $output .= '<section id="responsiveGallery-container" class="responsiveGallery-container">';
     19        $output .= '<a class="responsiveGallery-btn responsiveGallery-btn_prev" href="javascript:void(0);"></a>';
     20        $output .= '<a class="responsiveGallery-btn responsiveGallery-btn_next" href="javascript:void(0);"></a>';
     21          $output .= '<ul class="responsiveGallery-wrapper">';
     22          if ( isset( $attachments ) && ! empty( $attachments )  )
     23          {
    2124            foreach ( $attachments as $attachments_id => $attachment_val ) {
    2225
     
    2528              $image_attributes = wp_get_attachment_image_src( $attachment_val->ID , $size = $image_options['thumbnail_size']  );
    2629
    27               echo '<li href="'.$attachment_val->guid.'"  class="js-img-viwer img-true-location responsiveGallery-item" data-caption="" data-id="'.$attachments_id.'">';
     30              $output .= '<li href="'.$attachment_val->guid.'"  class="js-img-viwer img-true-location responsiveGallery-item" data-caption="" data-id="'.$attachments_id.'">';
    2831
    2932                if ( $image_options['display_original'] == 'on' and $image_options['thumbnail_options'] == 'off' ) {
    30                   echo '<a href="#" class="responsivGallery-link">';
    31                     echo '<img style="height:'.$image_options['image_height'].''.$image_options['image_measure_value'].';  width:'.$image_options['image_width'].''.$image_options['image_measure_value'].';" src="'.$attachment_val->guid.'"  />';
    32                   echo '</a>';
     33                  $output .= '<a href="#" class="responsivGallery-link">';
     34                    $output .= '<img style="height:'.$image_options['image_height'].''.$image_options['image_measure_value'].';  width:'.$image_options['image_width'].''.$image_options['image_measure_value'].';" src="'.$attachment_val->guid.'"  />';
     35                  $output .= '</a>';
    3336                } elseif ( $image_options['thumbnail_options'] == 'on' and $image_options['display_original'] == 'off' ) {
    34                   echo '<a href="#" class="responsivGallery-link">';
    35                     echo '<img style="height:'.$image_options['image_height'].''.$image_options['image_measure_value'].';  width:'.$image_options['image_width'].''.$image_options['image_measure_value'].';" src="'.$image_attributes[0].'"  />';
    36                   echo '</a>';
     37                  $output .= '<a href="#" class="responsivGallery-link">';
     38                    $output .= '<img style="height:'.$image_options['image_height'].''.$image_options['image_measure_value'].';  width:'.$image_options['image_width'].''.$image_options['image_measure_value'].';" src="'.$image_attributes[0].'"  />';
     39                  $output .= '</a>';
    3740                } else
    3841                {
    39                   $text =  '<p>Image Options => "Display Original Size Image" or "Display Thumnail Size" settings are turned on or off same time</p>';
    40                   print $text;
    41                   return;
     42                  $output .=  '<p>Image Options => "Display Original Size Image" or "Display Thumnail Size" settings are turned on or off same time</p>';
     43                  //print $text;
     44
    4245                }
    43                 echo '<div style="color: black;" class="w-responsivGallery-info">';
     46                $output .= '<div style="color: black;" class="w-responsivGallery-info">';
    4447                  if( ! empty( implode(get_post_meta( get_the_ID(),"imgtitle" . $attachment_val->ID))) ) {
    45                     echo '<h4 class="text spartan-gallery-img-title" >'.esc_html(implode(get_post_meta( get_the_ID(),"imgtitle" . $attachment_val->ID) ) ).'</h4>';
     48                    $output .= '<h4 class="text spartan-gallery-img-title" >'.esc_html(implode(get_post_meta( get_the_ID(),"imgtitle" . $attachment_val->ID) ) ).'</h4>';
    4649                  }
    4750                  if( ! empty( implode(get_post_meta( get_the_ID(),"imgdescription" . $attachment_val->ID))))  {
    48                     echo '<p class="text spartan-gallery-img-description" >'.esc_html(implode(get_post_meta( get_the_ID(),"imgdescription" . $attachment_val->ID) ) ).'</p>';
     51                    $output .= '<p class="text spartan-gallery-img-description" >'.esc_html(implode(get_post_meta( get_the_ID(),"imgdescription" . $attachment_val->ID) ) ).'</p>';
    4952                  }
    5053                  if( ! empty( implode(get_post_meta( get_the_ID(),"button_url_buttonurl" . $attachment_val->ID))) ) {
    51                     echo('<td colspan="3" style="background-color:#005673; text-align:right; padding: 4px 0px;">
     54                    $output .= ('<td colspan="3" style="background-color:#005673; text-align:right; padding: 4px 0px;">
    5255                      <button class="spartan-gallery-img-button text" onclick="parent.open(\'' . esc_url(implode(get_post_meta( get_the_ID(),"button_url_buttonurl" . $attachment_val->ID))) . '\')" >'.esc_html(implode(get_post_meta( get_the_ID(),"button_url_buttontitle" . $attachment_val->ID) ) ).'</button></td>');
    5356                  }
    54                 echo '</div>';
    55               echo '</li>';
     57                $output .= '</div>';
     58              $output .= '</li>';
    5659
    5760            }
     61          }
     62          $output .= '</ul>';
     63    $output .= '</section>';
     64  $output .= '</div>';
    5865
    59           echo '</ul>';
    60     echo '</section>';
    61   echo '</div>';
     66  return $output;
    6267
    6368
  • spartan-gallery/trunk/public/html-cointainer-outputs/class-hexagon-html-container.php

    r2036461 r2129493  
    1313
    1414
    15 
    16     echo '<div class="spartan-gallery-wrapper" style="position: relative;width: 100%;" >';
    17       echo '<div class="masonary" >';
    18         echo '<ul >';
     15    $output = '';
     16    $output .= '<div class="spartan-gallery-wrapper" style="position: relative;width: 100%;" >';
     17      $output .= '<div class="masonary" >';
     18        $output .= '<ul>';
    1919          foreach ( $attachments as $attachments_id => $attachments_val ) {
    2020                $img_size = array( '120', '160', '180', '240', '280', '320'   );
    2121                $image_options = get_post_meta( $attachments_val->post_parent , 'spartan-gallery-meta', true ); // array
    2222                $image_attributes = wp_get_attachment_image_src( $attachments_val->ID , $size = $image_options['thumbnail_size']  );
    23                 echo  '<li class="hex">';
    24                   echo    '<a class="js-img-viwer hexIn" data-caption="Title" data-id="'.$attachments_id.'" href="'.$attachments_val->guid.'">';
     23                $output .=  '<li class="hex">';
     24                  $output .=    '<a class="js-img-viwer hexIn" data-caption="Title" data-id="'.$attachments_id.'" href="'.$attachments_val->guid.'">';
    2525                          if ( $image_options['display_original'] == 'on' and $image_options['thumbnail_options'] == 'off' ) {
    2626
    27                             echo '<img style="height:100%;  width:100%;" src="'.$attachments_val->guid.'"  />';
     27                            $output .= '<img style="height:100%;  width:100%;" src="'.$attachments_val->guid.'"  />';
    2828
    2929                          } elseif ( $image_options['thumbnail_options'] == 'on' and $image_options['display_original'] == 'off' ) {
    3030
    31                             echo '<img style="height:100%;  width:100%;" src="'.$image_attributes[0].'"  />';
     31                            $output .= '<img style="height:100%;  width:100%;" src="'.$image_attributes[0].'"  />';
    3232
    3333                          } else
    3434                          {
    35                             $text =  '<p>Image Options => "Display Original Size Image" or "Display Thumnail Size" settings are turned on or off same time</p>';
    36                             print $text;
    37                             return;
     35                            $output .=  '<p>Image Options => "Display Original Size Image" or "Display Thumnail Size" settings are turned on or off same time</p>';
     36
    3837                          }
    3938                          if( ! empty( implode(get_post_meta( get_the_ID(),"imgtitle" . $attachments_val->ID))) ) {
    40                             echo '<h1 >'.esc_html(implode(get_post_meta( get_the_ID(),"imgtitle" . $attachments_val->ID) ) ).'</h1>';
     39                            $output .= '<h1 >'.esc_html(implode(get_post_meta( get_the_ID(),"imgtitle" . $attachments_val->ID) ) ).'</h1>';
    4140                          }
    4241
    4342                          if( ! empty( implode(get_post_meta( get_the_ID(),"imgdescription" . $attachments_val->ID))))  {
    44                             echo '<p >'.esc_html(implode(get_post_meta( get_the_ID(),"imgdescription" . $attachments_val->ID) ) ).'</p>';
     43                            $output .= '<p >'.esc_html(implode(get_post_meta( get_the_ID(),"imgdescription" . $attachments_val->ID) ) ).'</p>';
    4544                          }
    4645
    4746                          if( ! empty( implode(get_post_meta( get_the_ID(),"button_url_buttonurl" . $attachments_val->ID))) ) {
    48                             echo('<td colspan="3" style="background-color:#005673; text-align:right; padding: 4px 0px;">
     47                            $output .=('<td colspan="3" style="background-color:#005673; text-align:right; padding: 4px 0px;">
    4948                              <button class="spartan-gallery-img-button text" onclick="parent.open(\'' . esc_url(implode(get_post_meta( get_the_ID(),"button_url_buttonurl" . $attachments_val->ID))) . '\')" >'.esc_html(implode(get_post_meta( get_the_ID(),"button_url_buttontitle" . $attachments_val->ID) ) ).'</button></td>');
    5049                          }
    5150
    52                       echo '</a>';
    53                   echo '</li>';
     51                      $output .= '</a>';
     52                  $output .= '</li>';
    5453            }
    55           echo '</ul>';
    56         echo '</div>';
    57       echo '</div>';
     54          $output .= '</ul>';
     55        $output .= '</div>';
     56        $output .= '<script>';
     57        $output .= '';
    5858
    5959
     60        $output .= '</script>';
     61      $output .= '</div>';
     62
     63    return $output;
    6064
    6165    }
  • spartan-gallery/trunk/public/js/spartan-gallery-public.js

    r2036461 r2129493  
    33
    44        $(".js-img-viwer").SmartPhoto();
    5 
    65
    76        $('.responsiveGallery-wrapper').responsiveGallery({
     
    1110        });
    1211
    13 
    1412});
Note: See TracChangeset for help on using the changeset viewer.