Plugin Directory

Changeset 919149


Ignore:
Timestamp:
05/22/2014 04:29:05 AM (12 years ago)
Author:
pdamsten
Message:

compability fixes and warning removal

Location:
fullscreen-galleria
Files:
1 deleted
3 edited
13 copied

Legend:

Unmodified
Added
Removed
  • fullscreen-galleria/tags/1.4.7/galleria-fs.css

    r873216 r919149  
    2828  background-repeat: no-repeat;
    2929  z-index: 10000;
     30}
     31
     32.galleria-layeritem .sd-content {
     33  margin-top: 15px !important;
    3034}
    3135
  • fullscreen-galleria/tags/1.4.7/galleria-fs.php

    r886364 r919149  
    55Plugin URI: http://torturedmind.org/
    66Description: Fullscreen gallery for Wordpress
    7 Version: 1.4.6
     7Version: 1.4.7
    88Author: Petri Damstén
    99Author URI: http://torturedmind.org/
     
    1212******************************************************************************/
    1313
    14 $fsg_ver = '1.4.6';
     14$fsg_ver = '1.4.7';
    1515$fsg_db_key = 'fsg_plugin_settings';
    1616
     
    740740    $postid = "fullscreen_galleria_postid=".$this->firstpostid.";\n";
    741741    $attachment = "fullscreen_galleria_attachment=false;\n";
    742     if ($this->options['show_attachment'] && get_post_type($post->ID) == "attachment") {
    743       $type = get_post_mime_type($post->ID);
    744       switch ($type) {
    745         case 'image/jpeg':
    746         case 'image/png':
    747         case 'image/gif':
    748           $attachment = "fullscreen_galleria_attachment=true;\n";
    749           break;
     742    if (isset($post)) {
     743      if ($this->options['show_attachment'] && get_post_type($post->ID) == "attachment") {
     744        $type = get_post_mime_type($post->ID);
     745        switch ($type) {
     746          case 'image/jpeg':
     747          case 'image/png':
     748          case 'image/gif':
     749            $attachment = "fullscreen_galleria_attachment=true;\n";
     750            break;
     751        }
    750752      }
    751753    }
     
    840842                }
    841843              }
    842               error_log($t.' '.$l.' '.$c);
     844              //error_log($t.' '.$l.' '.$c);
    843845              $link .= "<div class=\"galleria-layeritem\">".
    844846                       "<a target=\"_blank\" title=\"".$t."\" href=\"".$l."\">".
     
    878880            $this->share_img_url = $val['permalink'];
    879881            $i = 0;
    880             $div = '<div class="galleria-layeritem sharedaddy sd-sharing-enabled '.
    881                    'robots-nocontent sd-block sd-social sd-social-icon sd-sharing '.
    882                    'sd-content">';
     882            $div = '<div class="galleria-layeritem sharedaddy sd-sharing-enabled">';
     883            $div .= '<div class="robots-nocontent sd-block sd-social sd-social-icon sd-sharing">';
     884            $div .= '<div class="sd-content">';
    883885            $share = $div.'<ul>';
    884886                  foreach ($enabled['visible'] as $id => $service) {
     
    886888                        $service->get_display(get_post($val['post_id'])).'</li>';
    887889              ++$i;
    888               if ($i % 2 == 0) {
    889                 $share .= '</ul></div>'.$div.'<ul>';
    890               }
    891890            }
    892             $share .= '</ul></div>';
     891            $share .= '</ul></div></div></div>';
    893892            $this->share_img_url = '';
    894893            //$this->ob_log($share);
     
    929928    }
    930929    // Get children (images) of the post
    931     $children = &get_children(array('post_parent' => $post->ID, 'post_status' => 'inherit',
     930    $children = get_children(array('post_parent' => $post->ID, 'post_status' => 'inherit',
    932931        'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC',
    933932        'orderby' => 'menu_order ID'));
    934933    if (empty($children)) {
    935934      if (substr(get_post_mime_type($post->ID), 0, 5) == 'image') {
    936         $children = &get_posts(array('post_type' => 'attachment',
     935        $children = get_posts(array('post_type' => 'attachment',
    937936            'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID',
    938937            'include' => $post->ID));
  • fullscreen-galleria/tags/1.4.7/readme.txt

    r895614 r919149  
    66Tags: galleria, gallery, photography, images
    77Requires at least: 3.6
    8 Tested up to: 3.9
     8Tested up to: 3.9.1
    99Stable tag: trunk
    1010License: MIT
     
    8787
    8888== Changelog ==
     89= 1.4.7 =
     90* Work with Jetpack 3.0 share buttons.
     91* Check for NULL to remove some warnings.
     92* Remove "Strict Standards: Only variables should be assigned by reference" warnings.
     93
    8994= 1.4.6 =
    9095* round numbers. Patch from: https://gist.github.com/asquelt/9624792
  • fullscreen-galleria/trunk/galleria-fs.css

    r873216 r919149  
    2828  background-repeat: no-repeat;
    2929  z-index: 10000;
     30}
     31
     32.galleria-layeritem .sd-content {
     33  margin-top: 15px !important;
    3034}
    3135
  • fullscreen-galleria/trunk/galleria-fs.php

    r886364 r919149  
    55Plugin URI: http://torturedmind.org/
    66Description: Fullscreen gallery for Wordpress
    7 Version: 1.4.6
     7Version: 1.4.7
    88Author: Petri Damstén
    99Author URI: http://torturedmind.org/
     
    1212******************************************************************************/
    1313
    14 $fsg_ver = '1.4.6';
     14$fsg_ver = '1.4.7';
    1515$fsg_db_key = 'fsg_plugin_settings';
    1616
     
    740740    $postid = "fullscreen_galleria_postid=".$this->firstpostid.";\n";
    741741    $attachment = "fullscreen_galleria_attachment=false;\n";
    742     if ($this->options['show_attachment'] && get_post_type($post->ID) == "attachment") {
    743       $type = get_post_mime_type($post->ID);
    744       switch ($type) {
    745         case 'image/jpeg':
    746         case 'image/png':
    747         case 'image/gif':
    748           $attachment = "fullscreen_galleria_attachment=true;\n";
    749           break;
     742    if (isset($post)) {
     743      if ($this->options['show_attachment'] && get_post_type($post->ID) == "attachment") {
     744        $type = get_post_mime_type($post->ID);
     745        switch ($type) {
     746          case 'image/jpeg':
     747          case 'image/png':
     748          case 'image/gif':
     749            $attachment = "fullscreen_galleria_attachment=true;\n";
     750            break;
     751        }
    750752      }
    751753    }
     
    840842                }
    841843              }
    842               error_log($t.' '.$l.' '.$c);
     844              //error_log($t.' '.$l.' '.$c);
    843845              $link .= "<div class=\"galleria-layeritem\">".
    844846                       "<a target=\"_blank\" title=\"".$t."\" href=\"".$l."\">".
     
    878880            $this->share_img_url = $val['permalink'];
    879881            $i = 0;
    880             $div = '<div class="galleria-layeritem sharedaddy sd-sharing-enabled '.
    881                    'robots-nocontent sd-block sd-social sd-social-icon sd-sharing '.
    882                    'sd-content">';
     882            $div = '<div class="galleria-layeritem sharedaddy sd-sharing-enabled">';
     883            $div .= '<div class="robots-nocontent sd-block sd-social sd-social-icon sd-sharing">';
     884            $div .= '<div class="sd-content">';
    883885            $share = $div.'<ul>';
    884886                  foreach ($enabled['visible'] as $id => $service) {
     
    886888                        $service->get_display(get_post($val['post_id'])).'</li>';
    887889              ++$i;
    888               if ($i % 2 == 0) {
    889                 $share .= '</ul></div>'.$div.'<ul>';
    890               }
    891890            }
    892             $share .= '</ul></div>';
     891            $share .= '</ul></div></div></div>';
    893892            $this->share_img_url = '';
    894893            //$this->ob_log($share);
     
    929928    }
    930929    // Get children (images) of the post
    931     $children = &get_children(array('post_parent' => $post->ID, 'post_status' => 'inherit',
     930    $children = get_children(array('post_parent' => $post->ID, 'post_status' => 'inherit',
    932931        'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC',
    933932        'orderby' => 'menu_order ID'));
    934933    if (empty($children)) {
    935934      if (substr(get_post_mime_type($post->ID), 0, 5) == 'image') {
    936         $children = &get_posts(array('post_type' => 'attachment',
     935        $children = get_posts(array('post_type' => 'attachment',
    937936            'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID',
    938937            'include' => $post->ID));
  • fullscreen-galleria/trunk/readme.txt

    r895614 r919149  
    66Tags: galleria, gallery, photography, images
    77Requires at least: 3.6
    8 Tested up to: 3.9
     8Tested up to: 3.9.1
    99Stable tag: trunk
    1010License: MIT
     
    8787
    8888== Changelog ==
     89= 1.4.7 =
     90* Work with Jetpack 3.0 share buttons.
     91* Check for NULL to remove some warnings.
     92* Remove "Strict Standards: Only variables should be assigned by reference" warnings.
     93
    8994= 1.4.6 =
    9095* round numbers. Patch from: https://gist.github.com/asquelt/9624792
Note: See TracChangeset for help on using the changeset viewer.