Plugin Directory

Changeset 2928981


Ignore:
Timestamp:
06/21/2023 06:55:33 AM (3 years ago)
Author:
webdzier
Message:

Tested up to wp 6.2.2

Location:
gallery-photo-video
Files:
44 added
2 edited

Legend:

Unmodified
Added
Removed
  • gallery-photo-video/trunk/gallery-photo-video.php

    r2809622 r2928981  
    22/*
    33* Plugin Name: Gallery Photo Video
    4 * Version: 2.7
     4* Version: 2.8
    55* Description: Gallery Photo Video is an advanced responsive plugin with highly customizable features. You can use this plugin multiple times in posts and pages.
    66* Author: @webdzier
     
    173173    {
    174174        if(isset($post) && isset($_POST['GPVaction'])){
    175             $TOTAL_coun_image=count($_POST['GPV_img_url']);         
    176             if($TOTAL_coun_image){
    177                 for($i=0; $i < $TOTAL_coun_image; $i++){
    178                     $unique_id =$_POST['GPV_li_id'][$i];
    179                     $GPV_image_array[]=array(
    180                         'GPV_li_id'=>sanitize_text_field($_POST['GPV_li_id'][$i]),
    181                         'GPV_image_title'=>sanitize_text_field($_POST['GPV_image_title'][$i]),
    182                         'GPV_select'=>sanitize_text_field($_POST['GPV_select'][$i]),
    183                         'GPV_video_url'=>sanitize_text_field($_POST['GPV_video_url'][$i]),
    184                         'GPV_video_iframe'=>sanitize_text_field($_POST['GPV_video_iframe'][$i]),
    185                         'GPV_link'=>sanitize_text_field($_POST['GPV_link'][$i]),
    186                         'GPV_button_text'=>sanitize_text_field($_POST['GPV_button_text'][$i]),                 
    187                         'GPV_description'=>sanitize_text_field(stripcslashes($_POST['GPV_description'][$i])),
    188                         'GPV_img_url'=>esc_url_raw($_POST['GPV_img_url'][$i]),
    189                         'gpv_img_300'=>esc_url_raw($_POST['gpv_img_300'][$i]),
    190                         'gpv_img_500'=>esc_url_raw($_POST['gpv_img_500'][$i]),                     
    191                     );
     175           
     176            $img_url = $_POST['GPV_img_url'];
     177
     178            if(isset($img_url)){
     179
     180                $TOTAL_coun_image=count($_POST['GPV_img_url']);         
     181                if($TOTAL_coun_image){
     182                    for($i=0; $i < $TOTAL_coun_image; $i++){
     183                        $unique_id =$_POST['GPV_li_id'][$i];
     184                        $GPV_image_array[]=array(
     185                            'GPV_li_id'=>sanitize_text_field($_POST['GPV_li_id'][$i]),
     186                            'GPV_image_title'=>sanitize_text_field($_POST['GPV_image_title'][$i]),
     187                            'GPV_select'=>sanitize_text_field($_POST['GPV_select'][$i]),
     188                            'GPV_video_url'=>sanitize_text_field($_POST['GPV_video_url'][$i]),
     189                            'GPV_video_iframe'=>sanitize_text_field($_POST['GPV_video_iframe'][$i]),
     190                            'GPV_link'=>sanitize_text_field($_POST['GPV_link'][$i]),
     191                            'GPV_button_text'=>sanitize_text_field($_POST['GPV_button_text'][$i]),                 
     192                            'GPV_description'=>sanitize_text_field(stripcslashes($_POST['GPV_description'][$i])),
     193                            'GPV_img_url'=>esc_url_raw($_POST['GPV_img_url'][$i]),
     194                            'gpv_img_300'=>esc_url_raw($_POST['gpv_img_300'][$i]),
     195                            'gpv_img_500'=>esc_url_raw($_POST['gpv_img_500'][$i]),                     
     196                        );
     197                        update_post_meta($post, 'GPV_photos_details', base64_encode(serialize($GPV_image_array)));
     198                        update_post_meta($post, 'GPV_images_count', $TOTAL_coun_image);
     199                    }
     200                }else{
     201
     202                    $TOTAL_coun_image=0;
     203                    $GPV_image_array[]=array();
    192204                    update_post_meta($post, 'GPV_photos_details', base64_encode(serialize($GPV_image_array)));
    193205                    update_post_meta($post, 'GPV_images_count', $TOTAL_coun_image);
    194206                }
    195             }else{
    196 
    197                 $TOTAL_coun_image=0;
    198                 $GPV_image_array[]=array();
    199                 update_post_meta($post, 'GPV_photos_details', base64_encode(serialize($GPV_image_array)));
    200                 update_post_meta($post, 'GPV_images_count', $TOTAL_coun_image);
    201207            }
     208
     209           
    202210        }
    203211    }
  • gallery-photo-video/trunk/readme.txt

    r2809622 r2928981  
    22Contributors: webdzier
    33Donate link: https://www.webdzier.com/
    4 version: 2.7
    5 Tested up to: 6.0
    6 Stable tag: 2.7
     4version: 2.8
     5Tested up to: 6.2
     6Stable tag: 2.8
    77Tags:  gallery,wd photo gallery,photo,video,link, photo video gallery, gallery photo video link, gallery video,video gallery plugin, wp gallery, wordpress gallery, link gallery, video gallery, photo gallery, responsive gallery, description gallery, wordpress responsive gallery, wp gallery, wp gallery plugins,creative gallery, photo,  photo albums,photo bank, description,wordpress gallery plugin,wordpress gallery,wordpress photo gallery plugin, images,image gallery, lightbox, media, media gallery,wordpress photo gallery,wordpress link gallery, best gallery plugin,wordpress best gallery plugin,albums,best video gallery,album,image captions,caption,thumbnail galleries,thumbnail gallery, thumbnails, Picture Gallery, pictures, responsive, responsive galleries, responsive gallery,lightbox,swipebox,prettyphoto,nivobox,fancybox,youtube gallery,vimeo gallery,blog gallery,blog type, blog, description, wp blog gallery,wordpress blog gallery,pro gallery, gallery pro,blogs, post show,post
    88Requires at least: 3.0
     
    147147== Changelog ==
    148148
     149= Version 2.8 =
     150* Tested up to wp 6.2.2
     151
    149152= Version 2.7 =
    150153* Checked Compatibility by WordPress 6.0.3
Note: See TracChangeset for help on using the changeset viewer.