Plugin Directory

Changeset 1776753


Ignore:
Timestamp:
11/28/2017 10:14:25 AM (8 years ago)
Author:
upscalethought
Message:

added new functionality. added css fix in admin and updated in front end. so updated version.

Location:
wp-nextgen-gallery-search/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • wp-nextgen-gallery-search/trunk/gen-ngg-search.php

    r1650960 r1776753  
    44Description: Enables Search functionality for the images of NextGEN Gallery
    55Author: UpScaleThought
    6 Version: 1.4
     6Version: 1.5
    77Author URI: http://www.upscalethought.com/
    88Plugin URI: http://www.upscalethought.com/
     
    4040function gen_nextgen_gallery_search_add_menu(){
    4141  add_submenu_page( 'custom_gallerysearch', 'NGG Settings', 'NGG Settings', 'manage_options', 'ngg-settings', 'usts_ngg_admin_option');
     42  add_submenu_page( 'custom_gallerysearch', 'Front CSS Fix', 'Front CSS Fix', 'manage_options', 'ngg-front-cssfix', 'gen_usts_ngg_front_cssfix');
    4243  add_submenu_page( 'custom_gallerysearch', 'Pro Version', 'Pro Vesrion', 'manage_options', 'pro-version-menu', 'pro_version_settings');
    4344}
    44 
     45function gen_usts_ngg_front_cssfix(){
     46    include_once('includes/add_cssfix_front.php');
     47}
    4548function pro_version_settings(){
    4649  include_once('includes/gallerysearch_pro_version.php');
     
    6568register_deactivation_hook( __FILE__, 'gen_usts_nggsearch_uninstall' );
    6669
     70function gen_usts_ngg_save_cssfixfront(){
     71  if ( count($_POST) > 0 ){
     72    global $table_prefix,$wpdb;
     73    $cssfix = $_REQUEST['cssfix'];
     74    $css = $_REQUEST['css'];
     75    $isupdate ="";
     76    if($cssfix == "front"){
     77      $isupdate = update_option('ngg_cssfix_front',$css);
     78    }
     79    if($isupdate){
     80      echo "added";
     81    }
     82  }
     83  exit;
     84}
     85add_action( 'wp_ajax_nopriv_gen_usts_ngg_save_cssfixfront','gen_usts_ngg_save_cssfixfront' );
     86add_action( 'wp_ajax_gen_usts_ngg_save_cssfixfront', 'gen_usts_ngg_save_cssfixfront' );
  • wp-nextgen-gallery-search/trunk/includes/search_ngg_image.php

    r1565678 r1776753  
    1717    ?>
    1818    <style type="text/css">
     19        <?php echo get_option('ngg_cssfix_front'); ?>
    1920        #wpngg_img_search_result{
    2021        <?php
     
    114115    ?>
    115116    <style type="text/css">
     117        <?php echo get_option('ngg_cssfix_front'); ?>
     118       
    116119        #txtnggSearchtag_box{
    117120        <?php
  • wp-nextgen-gallery-search/trunk/readme.txt

    r1736328 r1776753  
    44Requires at least: 3.3.0
    55Tested up to: 4.7
    6 Stable tag: 1.4
     6Stable tag: 1.5
    77License: GPLv3
    88
     
    7777== Changelog ==
    7878
    79 = V1.0 - 03/08/2015 =
    80 * First version of "WP NextGen Gallery Search" . No errors known.
     79= V1.4 - 28/11/2017 =
     80* added settings for front end css fix. you can write your own css for front end page.
     81* Implemented front end css fix according to admin css fix.
    8182
    82 = V1.1 - 17/05/2016 =
    83 * Fixed Some issues.
    84 
    85 = V1.2 - 18/10/2016 =
    86 * fixed image path error occur in some cases.
    87 * Updated Documentation.
     83= V1.4 - 23/02/2017 =
     84* Red Button error Fixed.
     85* Visual editor disabled error fixed.
    8886
    8987= V1.3 - 01/01/2017 =
     
    9492* Updated documentaiton and some other small things.
    9593
    96 = V1.4 - 23/02/2017 =
    97 * Red Button error Fixed.
    98 * Visual editor disabled error fixed.
     94= V1.2 - 18/10/2016 =
     95* fixed image path error occur in some cases.
     96* Updated Documentation.
     97
     98= V1.1 - 17/05/2016 =
     99* Fixed Some issues.
     100
     101= V1.0 - 03/08/2015 =
     102* First version of "WP NextGen Gallery Search" . No errors known.
     103
    99104
    100105== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.