Plugin Directory

Changeset 3250371


Ignore:
Timestamp:
03/04/2025 12:02:11 PM (12 months ago)
Author:
sharabindu
Message:

update Fancy filter plugin

Location:
fancy-fiter
Files:
144 added
3 deleted
36 edited

Legend:

Unmodified
Added
Removed
  • fancy-fiter/trunk/README.txt

    r3145687 r3250371  
    1 === Category Based Filter Showcase - Fancy Filter ===
    2 Plugin Name: Category Based Filter Showcase - Fancy Filter
     1=== Fancy Filters - Masonry Grid Showcase for
     2portfolio, posts, and product items ===
     3Plugin Name: Fancy Filters - Masonry Grid Showcase for
     4portfolio, posts, and product items
    35Contributors: sharabindu
    46Donate link: https://sharabindu.com/donation/
    57Tags: portfolio,isotope, product,gallery,showcase
    6 Requires at least: 4.6.0 or higher
    7 Tested up to: 6.6.1
     8Requires at least: 5.0.0 or higher
     9Tested up to: 6.7.2
    810Requires PHP: 5.2
    9 Stable tag: 2.0.1
    10 Version: 2.0.1
    11 Text Domain: fancy-filter
     11Stable tag: 2.0.2
     12Version: 2.0.2
     13Text Domain: fancy-fiter
    1214Domain Path: /languages
    1315License: GPLv2 or later
    1416License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1517
    16 With this plugin you can create filter showcases for beautiful portfolios, posts and product items
    17 
     18Display your portfolio, posts, and product items in a grid with filterable
    1819== Description ==
    1920
     21Display your portfolio, posts, and product items in a grid with filterable. This is a category based filter showcase plugin. With this plugin, you can create grids with filterable showcases for portfolio items, post items, and product items. It uses Isotope and Masnoroy technology to create filtering gallery showcases.
    2022
    21 This is a category based filter showcases plugin. you can create filter showcases for beautiful portfolios, posts and product items. This plugin provides powerful isotope portfolio Gallery with beautiful animated filtering with masonry.
     23You can create unlimited shortcodes to create filterable gallery showcases. You can customize the design and content of each shortcode showcase. You can use these shortcodes to create multiple filter showcases on each page.
    2224
    23 Its most powerful feature is that you can create unlimited shortcodes. If you want, you can create shortcodes with different categories and use multiple filters per page
    24 
    25 Fancy Filter includes amazing features, attractive layout design, amazing button styles, popup images and over 40+ control settings that help the user to easily customize.
    26 
    27 > [Demo](https://fancyfilter.pinkaddons.xyz/) | [Docs](https://fancyfilter.pinkaddons.xyz/docs/introduction/)| [Premium Version](https://sharabindu.com/plugins/fancy-filter/)
     25Fancy Filters has many features, attractive layout design, beautiful button styles, popup features and more than 40+ settings that help you customize easily.
    2826
    2927
     28
     29> [View Demo](https://fancyfilter.pinkaddons.xyz/) | [Docs](https://fancyfilter.pinkaddons.xyz/docs/introduction/)| [Get Premium Version](https://sharabindu.com/plugins/fancy-filter/)
    3030
    3131= Features =
    3232
    3333
    34 * Fancy Portfolio Filter Showcase [fancyfilter_portfolio]
    35 * Blog Post Filter Showcase [fancyfilter_blog]
    36 * WooCOmmerce Product Filter Showcase [fancyfilter_product]
     34* Portfolios Filter Showcase [fancyfilter_portfolio]
     35* Blog Posts Filter Showcase [fancyfilter_blog]
     36* WooCOmmerce Products Filter Showcase [fancyfilter_product]
    3737* Unlimited Shortcode Created
    3838* Use custom permalink changeable for fancy portfolio. [readmore](https://fancyfilter.pinkaddons.xyz/docs/chanage-the-fancy-permalink/)
     
    4343* Fully responsive design
    4444* Super customized addon
    45 * All browsers supported
    46 * Clean coding, validate W3C
    47 * Well documented
    48 
     45* All Type fo Themes and browsers supported
    4946
    5047
    5148= Extra Features for Premium =
    5249
    53 * 10+ unique designs
    54 * 12+ Cool Button designs
    55 * Popup content with image gallery
    56 * Popup video for the item
    57 * Shortcode content Supported as popup
    58 * video content Supported as popup
    59 * Raw Html content Supported as popup
    60 * Preview & Download Link Metabox Supported
     50* 10+ Extra Layout designs
     51* 12+ Extra Button designs
     52* Content elements Supported for the item Popup
     53* video elements Supported for the item Popup
     54* Shortcode elements Supported for the item Popup
     55* Raw Html content Supported for the item Popup
     56* Can add Two Custom Link (Preview / Download) for the Portfolio item
    6157
    6258[Get Premium Version](https://sharabindu.com/plugins/fancy-filter/)
    6359
    64 
    65 <iframe width="560" height="315" src="https://www.youtube.com/embed/exsHC2xlcUM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
     60###Preview Of Fancy Filter
     61[youtube https://youtu.be/exsHC2xlcUM]
    6662
    6763== Installation ==
     
    7470== Frequently Asked Questions ==
    7571
     72= what is category wise filter wordpress? =
     73A category-based filter in WordPress is a way to display post items, product items, portfolio items from specific categories.
     74
     75= benefits of  showcase in website =
     76A showcase on a website provides several benefits, including:
     77*Increasing brand visibility,
     78*Attracting potential customers with eye-catching content,
     79*Highlighting important products or services,
     80*Boosting SEO
     81
     82= How Showcase Helps Boost SEO =
     83
     84Showcase content with relevant keywords can improve your website's search engine rankings, and drive organic traffic.
     85
     86
    7687= Can I create multiple filters per page? =
    77 Yes, you can have multiple filters with different categories per page
     88Yes, you can use multiple filters showcase on a page.
    7889
    7990= How to change default permalink for fancy filters =
     
    8394= Will it work all themes =
    8495
    85 yes, it will works on All themes.
     96yes, it will works on All types of themes.
    8697
    8798== Screenshots ==
     
    93104
    94105
     106== Credits ==
     107
     108This plugin includes a modified version of the [Magnific Popup](http://dimsemenov.com/plugins/magnific-popup/) by Dmitry Semenov, [Isotope PACKAGED](https://isotope.metafizzy.co) by Metafizzy, which is licensed under the MIT license.
    95109
    96110== Changelog ==
     111
     112= 2.0.2 =
     113- Update: Compatibility Update
    97114
    98115= 2.0.1 =
  • fancy-fiter/trunk/assets/css/fancyfilter-admin.css

    r3145687 r3250371  
    120120}
    121121
    122 div#fancy_filter_type h2 {
    123     color: #e30606;
    124 }
    125122
    126123option.prodataver,option.btnpto {
  • fancy-fiter/trunk/fancy-filter.php

    r3145687 r3250371  
    11<?php
    22/**
    3  * Plugin Name:       Fancy Filters - Category Based Showcase
     3 * Plugin Name:       Fancy Filters - Category Based Filter Showcase
    44 * Plugin URI:        https://wordpress.org/plugins/fancy-fiter/
    55 * Description:       A category based filter that creates amazing portfolio, post, and Product filters
    6  * Version:           2.0.1
     6 * Version:           2.0.2
    77 * Author:            Sharabindu
    88 * Author URI:        https://sharabindu.com/plugins/fancy-filter/
    99 * License:           GPL-2.0+
    1010 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
    11  * Text Domain:       fancy-filter
     11 * Text Domain:       fancy-fiter
    1212 * Domain Path:       /languages
    1313 */
     
    3939/**
    4040 * Currently plugin version.
    41  * Start at version 2.0.1 and use SemVer - https://semver.org
     41 * Start at version 2.0.2 and use SemVer - https://semver.org
    4242 * Rename this for your plugin and update it as you release new versions.
    4343 */
    44 define( 'FANCYFILTER_VERSION', '2.0.1' );
     44define( 'FANCYFILTER_VERSION', '2.0.2' );
    4545
    4646/**
     
    105105 * not affect the page life cycle.
    106106 *
    107  * @since    2.0.1
     107 * @since    2.0.2
    108108 */
    109109function fancyfilter_run() {
  • fancy-fiter/trunk/includes/Class/class-fancifilter-howto-use.php

    r3145687 r3250371  
    66 *
    77 * @link       https://sharabindu.com
    8  * @since      2.0.1
     8 * @since      2.0.2
    99 *
    1010 * @package    fancy-filter
     
    4343    {
    4444
    45         add_submenu_page('edit.php?post_type=fancyfilter', __('How It Works', 'fancy-filter') , __('How It Works <span class="dashicons dashicons-controls-forward"></span>', 'fancy-filter') , 'manage_options', 'how_it_works', array( $this, 'how_to_use'));
     45        add_submenu_page('edit.php?post_type=fancyfilter', __('How It Works', 'fancy-fiter') , __('How It Works <span class="dashicons dashicons-controls-forward"></span>', 'fancy-fiter') , 'manage_options', 'how_it_works', array( $this, 'how_to_use'));
    4646 
    4747
     
    6060           <ul>
    6161
    62              <li  class="fancyfilter_tabs_li"  style="background: url(<?php echo FANCYFILTER_URL . '/assets/admin/img/docsimage.jpg' ?>)">
     62             <li  class="fancyfilter_tabs_li"  style="background: url(<?php echo esc_url( FANCYFILTER_URL) . '/assets/admin/img/docsimage.jpg' ?>)">
    6363               <ul class="fancyfilter_tabs">
    6464                 <li>
    65                  <p> <?php echo esc_html__('Step: 1', 'fancy-filter') ?><span class="dashicons dashicons-controls-forward"></span> <?php echo esc_html__('Create Category and add to post(post,product,fancy)', 'fancy-filter') ?> </p> 
     65                 <p> <?php echo esc_html__('Step: 1', 'fancy-fiter') ?><span class="dashicons dashicons-controls-forward"></span> <?php echo esc_html__('Create Category and add to post(post,product,fancy)', 'fancy-fiter') ?> </p> 
    6666                 </li>
    6767                 <li>
    68                  <p> <?php echo esc_html__('Step: 2', 'fancy-filter') ?><span class="dashicons dashicons-controls-forward"></span> <?php echo esc_html__('Go to the Settings and set the setting options ', 'fancy-filter') ?>  </p> 
     68                 <p> <?php echo esc_html__('Step: 2', 'fancy-fiter') ?><span class="dashicons dashicons-controls-forward"></span> <?php echo esc_html__('Go to the Settings and set the setting options ', 'fancy-fiter') ?>  </p> 
    6969                 </li>
    7070                 <li>
    71                  <p> <?php echo esc_html__('Step: 3', 'fancy-filter') ?><span class="dashicons dashicons-controls-forward"></span>  <?php echo esc_html__('Copy the shortcode from the Item Settings tab and paste it in the desired location', 'fancy-filter') ?> </p> 
     71                 <p> <?php echo esc_html__('Step: 3', 'fancy-fiter') ?><span class="dashicons dashicons-controls-forward"></span>  <?php echo esc_html__('Copy the shortcode from the Item Settings tab and paste it in the desired location', 'fancy-fiter') ?> </p> 
    7272                 </li>
    7373               </ul></li>
    7474             <li class="yoobar-feature_6">
    75               <img class='yoo_dcs_img' src=" <?php echo FANCYFILTER_URL . '/assets/admin/img/docs.svg' ?>">
    76            <h3 class="yoobar-feature-title"> <?php echo esc_html__('How to Use', 'fancy-filter') ?></h3>
    77            <p class="feature-title18"> <?php echo esc_html__('We have created full-proof documentation for you. It will help you to understand how our plugin works.', 'fancy-filter') ?></p>
     75              <img class='yoo_dcs_img' src=" <?php echo esc_url(FANCYFILTER_URL) . '/assets/admin/img/docs.svg' ?>">
     76           <h3 class="yoobar-feature-title"> <?php echo esc_html__('How to Use', 'fancy-fiter') ?></h3>
     77           <p class="feature-title18"> <?php echo esc_html__('We have created full-proof documentation for you. It will help you to understand how our plugin works.', 'fancy-fiter') ?></p>
    7878           <div>
    79            <a class="ydocsbutn" href="https://fancyfilter.pinkaddons.xyz/docs/introduction/" target="_blank"><?php echo esc_html__('Documentation', 'fancy-filter') ?></a>
     79           <a class="ydocsbutn" href="https://fancyfilter.pinkaddons.xyz/docs/introduction/" target="_blank"><?php echo esc_html__('Documentation', 'fancy-fiter') ?></a>
    8080           </div>
    8181           </li>
     
    8787           <ul>
    8888             <li class="yoobar-feature_6 fswr">
    89               <img class='yoo_dcs_img' src=" <?php echo FANCYFILTER_URL . '/assets/admin/img/question.svg' ?>">
     89              <img class='yoo_dcs_img' src=" <?php echo esc_url(FANCYFILTER_URL) . '/assets/admin/img/question.svg' ?>">
    9090
    91            <h3 class="yoobar-feature-title"><?php echo esc_html__('FAQ', 'fancy-filter') ?></h3>
    92            <p class="feature-title18"><?php echo esc_html__('Frequently Asked Questions', 'fancy-filter') ?></p>
     91           <h3 class="yoobar-feature-title"><?php echo esc_html__('FAQ', 'fancy-fiter') ?></h3>
     92           <p class="feature-title18"><?php echo esc_html__('Frequently Asked Questions', 'fancy-fiter') ?></p>
    9393
    9494           <div class="yoofaqdes">
    95          <h4><?php echo esc_html__('Will this plugin work on all themes?', 'fancy-filter') ?></h4>
    96          <p><?php echo esc_html__('Yes, it will work on all kinds of themes. Use it to bring colorful moments to your site. And don’t forget to check out our premium features.', 'fancy-filter') ?></p>
     95         <h4><?php echo esc_html__('Will this plugin work on all themes?', 'fancy-fiter') ?></h4>
     96         <p><?php echo esc_html__('Yes, it will work on all kinds of themes. Use it to bring colorful moments to your site. And don’t forget to check out our premium features.', 'fancy-fiter') ?></p>
    9797         </div>
    9898         <div class="yoofaqdes">
    99          <h4><?php echo esc_html__('Is there any support available for the free users?', 'fancy-filter') ?></h4>
    100          <p><?php echo esc_html__('Both the free and pro versions bring great support from us. However Pro users will get priority support.', 'fancy-filter') ?></p>
     99         <h4><?php echo esc_html__('Is there any support available for the free users?', 'fancy-fiter') ?></h4>
     100         <p><?php echo esc_html__('Both the free and pro versions bring great support from us. However Pro users will get priority support.', 'fancy-fiter') ?></p>
    101101         </div>
    102102
     
    108108           <ul>
    109109             <li class="yoobar-feature_6">
    110               <img class='yoo_dcs_img' src=" <?php echo FANCYFILTER_URL . '/assets/admin/img/start.svg' ?>">
    111            <h3 class="yoobar-feature-title"><?php echo esc_html__('Getting Started', 'fancy-filter') ?></h3>
    112            <p class="feature-title18"><?php echo esc_html__('Getting started with Fancy Filter is very easy, just click the button below and create the first Portfolio on your site', 'fancy-filter') ?></p>
     110              <img class='yoo_dcs_img' src=" <?php echo esc_url( FANCYFILTER_URL ). '/assets/admin/img/start.svg' ?>">
     111           <h3 class="yoobar-feature-title"><?php echo esc_html__('Getting Started', 'fancy-fiter') ?></h3>
     112           <p class="feature-title18"><?php echo esc_html__('Getting started with Fancy Filter is very easy, just click the button below and create the first Portfolio on your site', 'fancy-fiter') ?></p>
    113113           <div>
    114            <a class="ydocsbutn" href="<?php echo admin_url('post-new.php?post_type=fancyfilter') ?> "><?php echo esc_html__('Add A New Portfolio', 'fancy-filter') ?></a>
     114           <a class="ydocsbutn" href="<?php echo esc_url(admin_url('post-new.php?post_type=fancyfilter')); ?> "><?php echo esc_html__('Add A New Portfolio', 'fancy-fiter') ?></a>
    115115           </div>
    116116           </li>
    117117
    118            <li><img src=" <?php echo FANCYFILTER_URL . '/assets/admin/img/startedmin.png' ?>"></li>
     118           <li><img src=" <?php echo esc_url( FANCYFILTER_URL) . '/assets/admin/img/startedmin.png' ?>"></li>
    119119           </ul>
    120120
     
    123123           <ul>
    124124             <li class="yoobar-feature_6 fswr" style="text-align: center;">
    125               <img class='yoo_dcs_img' src=" <?php echo FANCYFILTER_URL . '/assets/admin/img/support.svg' ?>">
     125              <img class='yoo_dcs_img' src=" <?php echo esc_url( FANCYFILTER_URL) . '/assets/admin/img/support.svg' ?>">
    126126
    127            <h3 class="yoobar-feature-title"><?php echo esc_html__('Support', 'fancy-filter') ?></h3>
    128            <p class="feature-title18"><?php echo esc_html__('Feeling like consulting an expert? Get our live chat support. We are always ready to help you.', 'fancy-filter') ?></p>
     127           <h3 class="yoobar-feature-title"><?php echo esc_html__('Support', 'fancy-fiter') ?></h3>
     128           <p class="feature-title18"><?php echo esc_html__('Feeling like consulting an expert? Get our live chat support. We are always ready to help you.', 'fancy-fiter') ?></p>
    129129
    130130           <div>
    131              <a class="ydocsbutn" href="https://wordpress.org/support/plugin/fancy-fiter/" target="_blank"><?php echo esc_html__('Get Support', 'fancy-filter') ?></a>
     131             <a class="ydocsbutn" href="https://wordpress.org/support/plugin/fancy-fiter/" target="_blank"><?php echo esc_html__('Get Support', 'fancy-fiter') ?></a>
    132132             </div>
    133133
     
    141141             <li class="yoobar-feature_6">
    142142
    143            <h3 class="yoobar-feature-title"><?php echo esc_html__('Missing Any Features', 'fancy-filter') ?></h3>
    144            <p style="width:90%"><?php echo esc_html__('Do you need any features that we don\'t have in our plugin? Let us know Feel free to do a request from here', 'fancy-filter') ?></p>
    145            <a class="ydocsbutn" href="https://fancyfilter.pinkaddons.xyz/missing-any-features/" target="_blank" style="background: #e2498a"><?php echo esc_html__('Request Feature', 'fancy-filter') ?></a>
     143           <h3 class="yoobar-feature-title"><?php echo esc_html__('Missing Any Features', 'fancy-fiter') ?></h3>
     144           <p style="width:90%"><?php echo esc_html__('Do you need any features that we don\'t have in our plugin? Let us know Feel free to do a request from here', 'fancy-fiter') ?></p>
     145           <a class="ydocsbutn" href="https://sharabindu.com/what-features-want-to-see/" target="_blank" style="background: #e2498a"><?php echo esc_html__('Request Feature', 'fancy-fiter') ?></a>
    146146           </li>
    147            <li><img src=" <?php echo FANCYFILTER_URL . '/assets/admin/img/missing.jpg' ?>"></li>
     147           <li><img src=" <?php echo esc_url( FANCYFILTER_URL) . '/assets/admin/img/missing.jpg' ?>"></li>
    148148
    149149           </ul>
     
    155155           <ul>
    156156
    157              <li><img src=" <?php echo FANCYFILTER_URL . '/assets/admin/img/review.svg' ?>"></li>
     157             <li><img src=" <?php echo esc_url( FANCYFILTER_URL) . '/assets/admin/img/review.svg' ?>"></li>
    158158             <li class="yoobar-feature_67">
    159159
    160            <h3 class="yoobar-feature-title"><?php echo esc_html__('Happy with Our Plugin?', 'fancy-filter') ?></h3>
    161            <p class="feature-title18"><?php echo esc_html__('We are really grateful that you have chosen our plugin. If you like our plugin, please share your happiness by giving us a 5star rating in WordPress Org. It will delight us and will not take more than 2 minutes.', 'fancy-filter') ?></p>
    162            <a class="ydocsbutn" href="https://wordpress.org/plugins/fancy-fiter/#reviews" target="_blank"><?php echo esc_html__('Give us 5*', 'fancy-filter') ?></a>
     160           <h3 class="yoobar-feature-title"><?php echo esc_html__('Happy with Our Plugin?', 'fancy-fiter') ?></h3>
     161           <p class="feature-title18"><?php echo esc_html__('We are really grateful that you have chosen our plugin. If you like our plugin, please share your happiness by giving us a 5star rating in WordPress Org. It will delight us and will not take more than 2 minutes.', 'fancy-fiter') ?></p>
     162           <a class="ydocsbutn" href="https://wordpress.org/plugins/fancy-fiter/#reviews" target="_blank"><?php echo esc_html__('Give us 5*', 'fancy-fiter') ?></a>
    163163           </li>
    164164           </ul>
  • fancy-fiter/trunk/includes/Class/class-fancyfilter-activator.php

    r3145687 r3250371  
    55 *
    66 * @link       https://sharabindu.com
    7  * @since      2.0.1
     7 * @since      2.0.2
    88 *
    99 * @package    fancyfilter filter plugin
     
    1616 * This class defines all code necessary to run during the plugin's activation.
    1717 *
    18  * @since      2.0.1
     18 * @since      2.0.2
    1919 * @package    fancyfilter filter plugin
    2020 * @subpackage fancyfilter filter plugin/includes
     
    2828     * Long Description.
    2929     *
    30      * @since    2.0.1
     30     * @since    2.0.2
    3131     */
    3232    public static function fancyfilter_activate() {
  • fancy-fiter/trunk/includes/Class/class-fancyfilter-admin.php

    r3145687 r3250371  
    55 *
    66 * @link       https://sharabindu.com
    7  * @since      2.0.1
     7 * @since      2.0.2
    88 *
    99 * @package    fancyfilter
     
    2626     * The ID of this plugin.
    2727     *
    28      * @since    2.0.1
     28     * @since    2.0.2
    2929     * @access   private
    3030     * @var      string    $plugin_name    The ID of this plugin.
     
    3535     * The version of this plugin.
    3636     *
    37      * @since    2.0.1
     37     * @since    2.0.2
    3838     * @access   private
    3939     * @var      string    $version    The current version of this plugin.
     
    4444     * Initialize the class and set its properties.
    4545     *
    46      * @since    2.0.1
     46     * @since    2.0.2
    4747     * @param      string    $plugin_name       The name of this plugin.
    4848     * @param      string    $version    The version of this plugin.
     
    6767
    6868        $labels = [
    69             "name" => esc_html__( "Fancy Filter", "fancy-filter" ),
    70             "singular_name" => esc_html__( "Fancy Filter", "fancy-filter" ),
    71             "menu_name" => esc_html__( "Fancy Filter", "fancy-filter" ),
    72             "all_items" => esc_html__( "All Portfolios", "fancy-filter" ),
    73             "add_new" => esc_html__( "Add New Portfolio", "fancy-filter" ),
    74             "add_new_item" => esc_html__( "Add New Portfolio", "fancy-filter" ),
    75             "edit_item" => esc_html__( "Edit Item", "fancy-filter" ),
    76             "new_item" => esc_html__( "New Item", "fancy-filter" ),
    77             "view_item" => esc_html__( "View Item", "fancy-filter" ),
    78             "view_items" => esc_html__( "View All Items", "fancy-filter" ),
    79             "search_items" => esc_html__( "Search Item", "fancy-filter" ),
    80             "not_found" => esc_html__( "Not Found Item", "fancy-filter" ),
    81             "not_found_in_trash" => esc_html__( "Not  found in Trash", "fancy-filter" ),
    82             "parent" => esc_html__( "Parent", "fancy-filter" ),
    83             "featured_image" => esc_html__( "Portfolio Image", "fancy-filter" ),
    84             "set_featured_image" => esc_html__( "Set Portfolio Image", "fancy-filter" ),
    85             "remove_featured_image" => esc_html__( "Remove Portfolio Image", "fancy-filter" ),
    86             "use_featured_image" => esc_html__( "Use Portfolio Image", "fancy-filter" ),
    87             "archives" => esc_html__( "Portfolio Archive", "fancy-filter" ),
    88             "parent_item_colon" => esc_html__( "Parent", "fancy-filter" ),
     69            "name" => esc_html__( "Fancy Filter", "fancy-fiter" ),
     70            "singular_name" => esc_html__( "Fancy Filter", "fancy-fiter" ),
     71            "menu_name" => esc_html__( "Fancy Filter", "fancy-fiter" ),
     72            "all_items" => esc_html__( "All Portfolios", "fancy-fiter" ),
     73            "add_new" => esc_html__( "Add New Portfolio", "fancy-fiter" ),
     74            "add_new_item" => esc_html__( "Add New Portfolio", "fancy-fiter" ),
     75            "edit_item" => esc_html__( "Edit Item", "fancy-fiter" ),
     76            "new_item" => esc_html__( "New Item", "fancy-fiter" ),
     77            "view_item" => esc_html__( "View Item", "fancy-fiter" ),
     78            "view_items" => esc_html__( "View All Items", "fancy-fiter" ),
     79            "search_items" => esc_html__( "Search Item", "fancy-fiter" ),
     80            "not_found" => esc_html__( "Not Found Item", "fancy-fiter" ),
     81            "not_found_in_trash" => esc_html__( "Not  found in Trash", "fancy-fiter" ),
     82            "parent" => esc_html__( "Parent", "fancy-fiter" ),
     83            "featured_image" => esc_html__( "Portfolio Image", "fancy-fiter" ),
     84            "set_featured_image" => esc_html__( "Set Portfolio Image", "fancy-fiter" ),
     85            "remove_featured_image" => esc_html__( "Remove Portfolio Image", "fancy-fiter" ),
     86            "use_featured_image" => esc_html__( "Use Portfolio Image", "fancy-fiter" ),
     87            "archives" => esc_html__( "Portfolio Archive", "fancy-fiter" ),
     88            "parent_item_colon" => esc_html__( "Parent", "fancy-fiter" ),
    8989        ];
    9090
    9191        $args = [
    92             "label" => esc_html__( "Fancy Filter", "fancy-filter" ),
     92            "label" => esc_html__( "Fancy Filter", "fancy-fiter" ),
    9393            "labels" => $labels,
    9494            "description" => "Fancy Filter is a Portfolio Filter Plugin",
     
    124124
    125125            $labels = [
    126                 "name" => esc_html__( "Portfolio Category", "fancy-filter" ),
    127                 "singular_name" => esc_html__( "Portfolio Category", "fancy-filter" ),
    128                 "menu_name" => esc_html__( "Portfolio Category", "fancy-filter" ),
    129                 "all_items" => esc_html__( "All Categories", "fancy-filter" ),
    130                 "edit_item" => esc_html__( "Edit Categories", "fancy-filter" ),
    131                 "view_item" => esc_html__( "View Categories", "fancy-filter" ),
    132                 "update_item" => esc_html__( "Update Category", "fancy-filter" ),
    133                 "add_new_item" => esc_html__( "Add New Category", "fancy-filter" ),
    134                 "parent_item" => esc_html__( "Parent Category", "fancy-filter" ),
    135                 "search_items" => esc_html__( "Search Category", "fancy-filter" ),
    136                 "popular_items" => esc_html__( "Popular Category", "fancy-filter" ),
    137                 "add_or_remove_items" => esc_html__( "Add or Remove Category", "fancy-filter" ),
     126                "name" => esc_html__( "Portfolio Category", "fancy-fiter" ),
     127                "singular_name" => esc_html__( "Portfolio Category", "fancy-fiter" ),
     128                "menu_name" => esc_html__( "Portfolio Category", "fancy-fiter" ),
     129                "all_items" => esc_html__( "All Categories", "fancy-fiter" ),
     130                "edit_item" => esc_html__( "Edit Categories", "fancy-fiter" ),
     131                "view_item" => esc_html__( "View Categories", "fancy-fiter" ),
     132                "update_item" => esc_html__( "Update Category", "fancy-fiter" ),
     133                "add_new_item" => esc_html__( "Add New Category", "fancy-fiter" ),
     134                "parent_item" => esc_html__( "Parent Category", "fancy-fiter" ),
     135                "search_items" => esc_html__( "Search Category", "fancy-fiter" ),
     136                "popular_items" => esc_html__( "Popular Category", "fancy-fiter" ),
     137                "add_or_remove_items" => esc_html__( "Add or Remove Category", "fancy-fiter" ),
    138138            ];
    139139
    140140            $args = [
    141                 "label" => esc_html__( "Portfolio Category", "fancy-filter" ),
     141                "label" => esc_html__( "Portfolio Category", "fancy-fiter" ),
    142142                "labels" => $labels,
    143143                "public" => true,
     
    167167                $row_meta = array(
    168168
    169                   'livechat'    => '<a href="' . esc_url( 'https://wordpress.org/support/plugin/fancy-fiter/' ) . '" target="_blank">' . esc_html__( 'Support', 'fancy-filter' ) . '</a>'
     169                  'livechat'    => '<a href="' . esc_url( 'https://wordpress.org/support/plugin/fancy-fiter/' ) . '" target="_blank">' . esc_html__( 'Support', 'fancy-fiter' ) . '</a>'
    170170
    171171                );
     
    182182
    183183            return array_merge(array(
    184                 '<a href="' . admin_url('edit.php?post_type=fancyfilter&page=fancyfilter_settings') . '">' . __('Settings', 'fancy-filter') . '</a>',
    185                 '<a class="yhow_yse" href="' . admin_url('edit.php?post_type=fancyfilter&page=how_it_works') . '">' . __('How It Works', 'fancy-filter') . '</a>',
     184                '<a href="' . admin_url('edit.php?post_type=fancyfilter&page=fancyfilter_settings') . '">' . __('Settings', 'fancy-fiter') . '</a>',
     185                '<a class="yhow_yse" href="' . admin_url('edit.php?post_type=fancyfilter&page=how_it_works') . '">' . __('How It Works', 'fancy-fiter') . '</a>',
    186186            ) , $links);
    187187
  • fancy-fiter/trunk/includes/Class/class-fancyfilter-deactivator.php

    r3145687 r3250371  
    77 * This class defines all code necessary to run during the plugin's deactivation.
    88 *
    9  * @since      2.0.1
     9 * @since      2.0.2
    1010 * @package    fancyfilter filter plugin
    1111 * @author     Sharabindu <[email protected]>
     
    1818     * Long Description.
    1919     *
    20      * @since    2.0.1
     20     * @since    2.0.2
    2121     */
    2222    public static function fancyfilter_deactivate() {
  • fancy-fiter/trunk/includes/Class/class-fancyfilter-loader.php

    r3145687 r3250371  
    55 *
    66 * @link       https://sharabindu.com
    7  * @since      2.0.1
     7 * @since      2.0.2
    88 *
    99 * @package    fancyfilter filter plugin
     
    2727     * The array of actions registered with WordPress.
    2828     *
    29      * @since    2.0.1
     29     * @since    2.0.2
    3030     * @access   protected
    3131     * @var      array    $actions    The actions registered with WordPress to fire when the plugin loads.
     
    3636     * The array of filters registered with WordPress.
    3737     *
    38      * @since    2.0.1
     38     * @since    2.0.2
    3939     * @access   protected
    4040     * @var      array    $filters    The filters registered with WordPress to fire when the plugin loads.
     
    4545     * Initialize the collections used to maintain the actions and filters.
    4646     *
    47      * @since    2.0.1
     47     * @since    2.0.2
    4848     */
    4949    public function __construct() {
     
    5757     * Add a new action to the collection to be registered with WordPress.
    5858     *
    59      * @since    2.0.1
     59     * @since    2.0.2
    6060     * @param    string               $hook             The name of the WordPress action that is being registered.
    6161     * @param    object               $component        A reference to the instance of the object on which the action is defined.
     
    7171     * Add a new filter to the collection to be registered with WordPress.
    7272     *
    73      * @since    2.0.1
     73     * @since    2.0.2
    7474     * @param    string               $hook             The name of the WordPress filter that is being registered.
    7575     * @param    object               $component        A reference to the instance of the object on which the filter is defined.
     
    8686     * collection.
    8787     *
    88      * @since    2.0.1
     88     * @since    2.0.2
    8989     * @access   private
    9090     * @param    array                $hooks            The collection of hooks that is being registered (that is, actions or filters).
     
    113113     * Register the filters and actions with WordPress.
    114114     *
    115      * @since    2.0.1
     115     * @since    2.0.2
    116116     */
    117117    public function run() {
  • fancy-fiter/trunk/includes/Class/class-fancyfilter.php

    r3145687 r3250371  
    88 *
    99 * @link       https://sharabindu.com
    10  * @since      2.0.1
     10 * @since      2.0.2
    1111 *
    1212 * @package    fancyfilter filter plugin
     
    2020     * the plugin.
    2121     *
    22      * @since    2.0.1
     22     * @since    2.0.2
    2323     * @access   protected
    2424     * @var      fancyfilter_Loader    $loader    Maintains and registers all hooks for the plugin.
     
    2929     * The unique identifier of this plugin.
    3030     *
    31      * @since    2.0.1
     31     * @since    2.0.2
    3232     * @access   protected
    3333     * @var      string    $plugin_name    The string used to uniquely identify this plugin.
     
    3838     * The current version of the plugin.
    3939     *
    40      * @since    2.0.1
     40     * @since    2.0.2
    4141     * @access   protected
    4242     * @var      string    $version    The current version of the plugin.
     
    5151     * the public-facing side of the site.
    5252     *
    53      * @since    2.0.1
     53     * @since    2.0.2
    5454     */
    5555    public function __construct() {
     
    5757            $this->version = FANCYFILTER_VERSION;
    5858        } else {
    59             $this->version = '2.0.1';
     59            $this->version = '2.0.2';
    6060        }
    6161        $this->plugin_name = 'fancy-filter-pro';
    6262
    6363        $this->fancyfilter_load_dependencies();
    64         $this->set_locale();
    6564        $this->fancyfilter_admin_hooks();
    6665
     
    8180     * with WordPress.
    8281     *
    83      * @since    2.0.1
     82     * @since    2.0.2
    8483     * @access   private
    8584     */
     
    10099        require_once FANCYFILTER_PATH. 'metaData/class-fancy_previewlink.php';
    101100        require_once FANCYFILTER_PATH. 'includes/Class/class-fancyfilter-admin.php';
    102         require_once FANCYFILTER_PATH. 'includes/Class/class-fancyfilter-i18n.php';
    103101
    104102        require_once FANCYFILTER_PATH. '/includes/helper/fancyfilter-helper-function.php';
     
    126124     * of the plugin.
    127125     *
    128      * @since    2.0.1
     126     * @since    2.0.2
    129127     * @access   private
    130128     */
     
    141139    }
    142140
    143     /**
    144      * Define the locale for this plugin for internationalization.
    145      *
    146      * Uses the Qrc_composer_i18n class in order to set the domain and to register the hook
    147      * with WordPress.
    148      *
    149      * @since    1.0.   
    150      * @access   private
    151      */
    152     private function set_locale() {
    153141
    154         $plugin_i18n = new fancy_filter_i18n();
    155 
    156         $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
    157 
    158     }
    159142    /**
    160143     * Run the loader to execute all of the hooks with WordPress.
    161144     *
    162      * @since    2.0.1
     145     * @since    2.0.2
    163146     */
    164147    public function fancyfilter_get_run() {
     
    170153     * WordPress and to define internationalization functionality.
    171154     *
    172      * @since     2.0.1
     155     * @since     2.0.2
    173156     * @return    string    The name of the plugin.
    174157     */
     
    180163     * The reference to the class that orchestrates the hooks with the plugin.
    181164     *
    182      * @since     2.0.1
     165     * @since     2.0.2
    183166     * @return    fancyfilter_Loader    Orchestrates the hooks of the plugin.
    184167     */
     
    190173     * Retrieve the version number of the plugin.
    191174     *
    192      * @since     2.0.1
     175     * @since     2.0.2
    193176     * @return    string    The version number of the plugin.
    194177     */
  • fancy-fiter/trunk/includes/Class/class-fancyfilter_blog_shortcode.php

    r3145687 r3250371  
    3636        wp_register_script( 'lightbox', FANCYFILTER_URL . 'assets/js/lightbox.min.js',array('jquery'),FANCYFILTER_VERSION,true );
    3737
    38         wp_register_script( 'fancy-filter', FANCYFILTER_URL . 'assets/js/fancy-filter.js',array('jquery','isotope.pkgd.min','lightbox'),FANCYFILTER_VERSION ,true ,10 );   
     38        wp_register_script( 'fancy-fiter', FANCYFILTER_URL . 'assets/js/fancy-filter.js',array('jquery','isotope.pkgd.min','lightbox'),FANCYFILTER_VERSION ,true ,10 );   
    3939
    4040    }
     
    5252        wp_enqueue_script('isotope.pkgd.min');
    5353        wp_enqueue_script('lightbox');
    54         wp_enqueue_script('fancy-filter');
     54        wp_enqueue_script('fancy-fiter');
    5555        ob_start();
    5656
     
    9393            if($button == 'btnsyle-1' || $button == 'btnsyle-2' ){
    9494                    ?>
    95                 <li class=" <?php echo esc_attr($button_class); ?>" data-filter=".<?php echo $fancyfilter_pro_term->term_id ?>" style="margin-left:15px"> <?php echo $fancyfilter_pro_term->name;?></li>
     95                <li class=" <?php echo esc_attr($button_class); ?>" data-filter=".<?php echo esc_attr($fancyfilter_pro_term->term_id); ?>" style="margin-left:15px"> <?php echo esc_html($fancyfilter_pro_term->name);?></li>
    9696                <?php }
    9797
     
    177177
    178178    echo '<div class="fancyfilter_readmore" >
    179    <a href="'.$el_readmore_url.'">'.$el_readmore_txt.'<i class="eicon-long-arrow-right hidden-log"></i></a>
     179   <a href="'.esc_url($el_readmore_url).'">'.esc_html($el_readmore_txt).'<i class="eicon-long-arrow-right hidden-log"></i></a>
    180180    </div>';
    181181    }
  • fancy-fiter/trunk/includes/Class/class-fancyfilter_morefilter.php

    r3145687 r3250371  
    55 *
    66 * @link       https://sharabindu.com
    7  * @since      2.0.1
     7 * @since      2.0.2
    88 *
    99 * @package    fancyfilter_pro
     
    4545    function rw_post_updated_messages( $messages ) {
    4646
     47    $nonce = wp_create_nonce( 'fancyfilter-nonce' );
     48    if ( ! wp_verify_nonce( $nonce, 'fancyfilter-nonce' ) ) return;
     49
    4750        $post             = get_post();
    4851        $post_type        = get_post_type( $post );
     
    5154        $messages['morefilter'] = array(
    5255            0  => '', // Unused. Messages start at index 1.
    53             1  => __( 'Shortcode updated.' ),
    54             2  => __( 'Shortcodeupdated.' ),
    55             3  => __( 'Shortcode deleted.'),
    56             4  => __( 'Shortcode updated.' ),
     56            1  => esc_html( 'Shortcode updated.' ),
     57            2  => esc_html( 'Shortcodeupdated.' ),
     58            3  => esc_html( 'Shortcode deleted.'),
     59            4  => esc_html( 'Shortcode updated.' ),
    5760            /* translators: %s: date and time of the revision */
    58             5  => isset( $_GET['revision'] ) ? sprintf( __( 'Shortcode restored to revision from %s' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
    59             6  => __( 'Shortcode published.' ),
    60             7  => __( 'Shortcode saved.' ),
    61             8  => __( 'Shortcode submitted.' ),
     61            5  => isset( $_GET['revision'] ) ? sprintf( esc_html( 'Shortcode restored to revision from %s' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
     62            6  => esc_html( 'Shortcode published.' ),
     63            7  => esc_html( 'Shortcode saved.' ),
     64            8  => esc_html( 'Shortcode submitted.' ),
    6265            9  => sprintf(
    63                 __( 'Shortcode scheduled for: <strong>%1$s</strong>.' ),
     66                esc_html( 'Shortcode scheduled for: <strong>%1$s</strong>.' ),
    6467                // translators: Publish box date format, see http://php.net/date
    65                 date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) )
     68                date_i18n( esc_html( 'M j, Y @ G:i' ), strtotime( $post->post_date ) )
    6669            ),
    67             10 => __( 'Shortcode draft updated.' )
     70            10 => esc_html( 'Shortcode draft updated.' )
    6871        );
    6972
     
    8689
    8790        $labels = [
    88             "name" => esc_html__( "Create More Filter", "fancy-filter" ),
    89             "singular_name" => esc_html__( "Create More Filter", "fancy-filter" ),
    90             "menu_name" => esc_html__( "Create More Filter", "fancy-filter" ),
    91             "all_items" => esc_html__( "Shortcode", "fancy-filter" ),
    92             "add_new" => esc_html__( "Add New Shortcode", "fancy-filter" ),
    93             "add_new_item" => esc_html__( "Add New Shortcode", "fancy-filter" ),
    94             "edit_item" => esc_html__( "Edit Shortcode", "fancy-filter" ),
    95             "new_item" => esc_html__( "New Shortcode", "fancy-filter" ),
    96             "view_item" => esc_html__( "View Shortcode", "fancy-filter" ),
    97             "view_items" => esc_html__( "View All Shortcode", "fancy-filter" ),
    98             "search_items" => esc_html__( "Search Shortcode", "fancy-filter" ),
    99             "not_found" => esc_html__( "Not Found Shortcode", "fancy-filter" ),
    100             "not_found_in_trash" => esc_html__( "Not  found in Trash", "fancy-filter" ),
    101             "parent" => esc_html__( "Parent", "fancy-filter" ),
    102             "featured_image" => esc_html__( "Portfolio Image", "fancy-filter" ),
    103             "set_featured_image" => esc_html__( "Set Portfolio Image", "fancy-filter" ),
    104             "remove_featured_image" => esc_html__( "Remove Portfolio Image", "fancy-filter" ),
    105             "use_featured_image" => esc_html__( "Use Portfolio Image", "fancy-filter" ),
    106             "archives" => esc_html__( "Portfolio Archive", "fancy-filter" ),
    107             "parent_item_colon" => esc_html__( "Parent", "fancy-filter" ),
     91            "name" => esc_html__( "Create Shortcode", "fancy-fiter" ),
     92            "singular_name" => esc_html__( "Create Shortcode", "fancy-fiter" ),
     93            "menu_name" => esc_html__( "Create Shortcode", "fancy-fiter" ),
     94            "all_items" => esc_html__( "All shortcodes", "fancy-fiter" ),
     95            "add_new" => esc_html__( "Add New Shortcode", "fancy-fiter" ),
     96            "add_new_item" => esc_html__( "Add New Shortcode", "fancy-fiter" ),
     97            "edit_item" => esc_html__( "Edit Shortcode", "fancy-fiter" ),
     98            "new_item" => esc_html__( "New Shortcode", "fancy-fiter" ),
     99            "view_item" => esc_html__( "View Shortcode", "fancy-fiter" ),
     100            "view_items" => esc_html__( "View All Shortcode", "fancy-fiter" ),
     101            "search_items" => esc_html__( "Search Shortcode", "fancy-fiter" ),
     102            "not_found" => esc_html__( "Not Found Shortcode", "fancy-fiter" ),
     103            "not_found_in_trash" => esc_html__( "Not  found in Trash", "fancy-fiter" ),
     104            "parent" => esc_html__( "Parent", "fancy-fiter" ),
     105            "featured_image" => esc_html__( "Portfolio Image", "fancy-fiter" ),
     106            "set_featured_image" => esc_html__( "Set Portfolio Image", "fancy-fiter" ),
     107            "remove_featured_image" => esc_html__( "Remove Portfolio Image", "fancy-fiter" ),
     108            "use_featured_image" => esc_html__( "Use Portfolio Image", "fancy-fiter" ),
     109            "archives" => esc_html__( "Portfolio Archive", "fancy-fiter" ),
     110            "parent_item_colon" => esc_html__( "Parent", "fancy-fiter" ),
    108111        ];
    109112
     
    111114
    112115        $args = [
    113             "label" => esc_html__( "Fancy Filter", "fancy-filter" ),
     116            "label" => esc_html__( "Fancy Filter", "fancy-fiter" ),
    114117            "labels" => $labels,
    115118            "description" => "Fancy Filter is a Portfolio Filter Plugin",
     
    121124            "rest_base" => "",
    122125            "rest_controller_class" => "WP_REST_Posts_Controller",
    123             "has_archive" => false,
     126            "has_archive" => true,
    124127            "show_in_nav_menus" => true,
    125128            "delete_with_user" => false,
     
    129132            "hierarchical" => true,
    130133            "menu_icon" => "dashicons-grid-view",
    131             "rewrite" => false,
     134            "rewrite" => true,
    132135            'show_in_menu' => 'edit.php?post_type=fancyfilter',
    133136            "query_var" => true,
  • fancy-fiter/trunk/includes/Class/class-fancyfilter_permalink.php

    r2631339 r3250371  
    2929   function fancy_cpt_load_permalinks()
    3030   {
     31    $nonce = wp_create_nonce( 'fancyfilter-nonce' );
     32    if ( ! wp_verify_nonce( $nonce, 'fancyfilter-nonce' ) ) return;
     33
    3134      if( isset( $_POST['fancy_cpt_base'] ) )
    3235      {
    33          update_option( 'fancy_cpt_base', sanitize_title_with_dashes( $_POST['fancy_cpt_base'] ) );
     36         update_option( 'fancy_cpt_base', sanitize_title_with_dashes( wp_unslash($_POST['fancy_cpt_base'] )) );
    3437      }
    3538     
    3639      // Add a settings field to the permalink page
    37       add_settings_field( 'fancy_cpt_base', __( 'Fancy Filter Custom Permalink' ), array($this ,'fancy_cpt_field_callback'), 'permalink', 'optional', array('class' => 'fancyfiklteraaddon') );
     40      add_settings_field( 'fancy_cpt_base', esc_html( 'Fancy Filter Custom Permalink' ), array($this ,'fancy_cpt_field_callback'), 'permalink', 'optional', array('class' => 'fancyfiklteraaddon') );
    3841
    3942   }
  • fancy-fiter/trunk/includes/Class/class_fancyfilter-setting.php

    r3145687 r3250371  
    66 *
    77 * @link       https://sharabindu.com
    8  * @since      2.0.1
     8 * @since      2.0.2
    99 *
    1010 * @package    fancy-filter
     
    3535        ));
    3636
    37 
     37    include_once FANCYFILTER_PATH . 'vendor/wordpress-plugin-installer-main/class-connekt-plugin-installer.php';
    3838
    3939    }
     
    4141    {
    4242
    43       if ((isset($_GET['page']) && strpos($_GET['page'], FANCY_FILTER_WORKS) !== false) || (isset($_GET['page']) && strpos($_GET['page'], FANCY_FILTER_PLUGIN_ID) !== false) || 'morefilter' == get_post_type() ){         
    44    
     43
     44
     45    $nonce = wp_create_nonce( 'fancyfilter-nonce' );
     46    if ( ! wp_verify_nonce( $nonce, 'fancyfilter-nonce' ) ) return;
     47     $screen = get_current_screen();
     48    if ( sanitize_title(isset($_GET['page'])) && strpos((sanitize_title(wp_unslash($_GET['page']))), FANCY_FILTER_WORKS) !== false  || sanitize_title(isset($_GET['page'])) && strpos((sanitize_title(wp_unslash($_GET['page']))), FANCY_FILTER_PLUGIN_ID) !== false || 'morefilter' == $screen->post_type) {
     49
    4550        wp_enqueue_style('wp-color-picker');
    4651
     
    8994    {
    9095
    91         add_submenu_page('edit.php?post_type=fancyfilter', __('Settings', 'menu-test') , __('Settings', 'menu-test') , 'manage_options', 'fancyfilter_settings', array(
     96        add_submenu_page('edit.php?post_type=fancyfilter', __('Settings', 'fancy-fiter') , __('Settings', 'fancy-fiter') , 'manage_options', 'fancyfilter_settings', array(
    9297            $this,
    9398            'fancyfilter_settings'
     
    98103    function fancyfilter_settings()
    99104    {
     105
     106    $nonce = wp_create_nonce( 'fancyfilter-nonce' );
     107    if ( ! wp_verify_nonce( $nonce, 'fancyfilter-nonce' ) ) return;
    100108        settings_errors();
    101109        $options = get_option('fancyfilter_options');
    102         $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'setting';
    103110        $fancyfilter_image_url = FANCYFILTER_URL . '/assets/img/gif/'
    104111    ?>
     
    109116   
    110117              <li>
    111                 <img src=" <?php echo FANCYFILTER_URL . '/assets/img/lohof-55x52.png' ?>" alt="fancyfilter logo">
     118                <img src=" <?php echo esc_url(FANCYFILTER_URL). '/assets/img/lohof-55x52.png' ?>" alt="fancyfilter logo">
    112119            </li> <li>
    113                  <h3><?php echo esc_html('Fancy Filter', 'fancy-filter') . '<sup>'.FANCYFILTER_VERSION.'</sup>';?> </h3>
    114                  <small><?php echo esc_html('Creating beautiful masonry filters, increasing website traffic and sales', 'fancy-filter') ?></small>
     120                 <h3><?php echo esc_html('Fancy Filter', 'fancy-fiter') . '<sup>'.esc_html(FANCYFILTER_VERSION).'</sup>';?> </h3>
     121                 <small><?php echo esc_html('Creating beautiful masonry filters', 'fancy-fiter') ?></small>
    115122             </li>
    116123               </ul>
    117124                  <ul class="fancyfilter_nav_bar">
    118                     <li><a href="https://wordpress.org/support/plugin/fancy-fiter/" target="_blank"><?php echo esc_html('Support', 'fancy-filter') ?></a></li>
    119                      <li><a href="https://fancyfilter.pinkaddons.xyz/" target="_blank"><?php echo esc_html('Pro demo', 'fancy-filter') ?></a></li>
    120 
    121                      <li><a href="https://sharabindu.com/plugins/fancy-filter/" target="_blank"><?php echo esc_html('Get Premimum', 'fancy-filter') ?></a></li>
    122 
    123                      <li><a href="https://fancyfilter.pinkaddons.xyz/docs/introduction/" target="_blank"><?php echo esc_html('Docs', 'fancy-filter') ?></a></li>
     125                    <li><a href="https://wordpress.org/support/plugin/fancy-fiter/" target="_blank"><?php echo esc_html('Support', 'fancy-fiter') ?></a></li>
     126                     <li><a href="https://fancyfilter.pinkaddons.xyz/" target="_blank"><?php echo esc_html('Pro demo', 'fancy-fiter') ?></a></li>
     127
     128                     <li><a href="https://sharabindu.com/plugins/fancy-filter/" target="_blank"><?php echo esc_html('Get Premimum', 'fancy-fiter') ?></a></li>
     129
     130                     <li><a href="https://fancyfilter.pinkaddons.xyz/docs/introduction/" target="_blank"><?php echo esc_html('Docs', 'fancy-fiter') ?></a></li>
    124131                  </ul>
    125132        </div>
     
    129136<div class="tab-nav">
    130137  <ul>
    131     <li class="active"><a href="#tab1"><?php echo esc_html("Settings", "qr-code-composer") ?></a></li>
    132     <li><a href="#tab2"><?php echo esc_html("Pro Features", "qr-code-composer") ?></a></li>
    133 
    134   </ul> <!-- END tabs-nav -->
     138    <li class="active"><a href="#tab1"><?php echo esc_html("Settings", "fancy-fiter") ?></a></li>
     139    <li><a href="#tab2"><?php echo esc_html("Pro Features", "fancy-fiter") ?></a></li>
     140    <li><a href="#tab3"><?php echo esc_html("Our More Plugins", "fancy-fiter") ?></a></li>
     141
     142  </ul>
    135143</div>
    136144
     
    138146
    139147    <div  class="tab1-tab active">
    140 <form action="options.php" method="post" class="fancy_dhgformdtaa">
     148        <form action="options.php" method="post" class="fancy_dhgformdtaa">
    141149    <?php
    142150
     
    160168<?php   require_once FANCYFILTER_PATH. 'includes/helper/features.php'; ?>
    161169    </div>
     170    <div  class="tab3-tab">
     171<div class="poytgwbemfn">
     172<?php
     173
     174
     175$plugins = [
     176  [
     177    'slug' => 'qr-code-composer',
     178  ],
     179  [
     180    'slug' => 'barcode-generator-for-woocommerce',
     181  ],
     182  [
     183    'slug' => 'mini-cart-for-woocommerce',
     184  ],
     185  [
     186    'slug' => 'elfi-masonry-addon'
     187  ],
     188  [
     189    'slug' => 'yoo-bar'
     190  ],
     191  [
     192    'slug' => 'fancy-fiter'
     193  ],
     194  [
     195    'slug' => 'master-qr-generator'
     196  ]
     197];
     198
     199if( class_exists( 'Connekt_Plugin_Installer' ) ) {
     200  Connekt_Plugin_Installer::init( $plugins );
     201}
     202 ?>
     203        </div>
     204
     205
     206    </div>
     207
     208
     209
    162210</div>
    163211
  • fancy-fiter/trunk/includes/Class/class_fancyfilter_rows.php

    r2641038 r3250371  
    4545            if (!empty($appended_posts)) {
    4646                echo '<p class="dretyui">
    47                     [fancyfilter_portfolio id ="' . esc_attr($post_ID) . '" grid_style = "' . $slect_styledata . '" button="' . $slect_butondata . '" col_1="' . $el_fi_gridbg . '" col_2="' . $el_fi_gridbg_2 . '" align="' . $fancyMetabtn_align . '" btn_act="' . $fancy_metabtn_bg . '" btnclr="' . $fancy_metabtn_clor . '" btnbg="' . $fancy_metabtn_ac_bg . '" layout="' . $slect_prot_erp_rw . '" animation="' . $slect_styleanimation . '"]
     47                    [fancyfilter_portfolio id ="' . esc_attr($post_ID) . '" grid_style = "' . esc_attr($slect_styledata) . '" button="' . esc_attr($slect_butondata) . '" col_1="' . esc_attr($el_fi_gridbg) . '" col_2="' . esc_attr($el_fi_gridbg_2) . '" align="' . esc_attr($fancyMetabtn_align) . '" btn_act="' . esc_attr($fancy_metabtn_bg) . '" btnclr="' . esc_attr($fancy_metabtn_clor) . '" btnbg="' . esc_attr($fancy_metabtn_ac_bg) . '" layout="' . esc_attr($slect_prot_erp_rw) . '" animation="' . esc_attr($slect_styleanimation) . '"]
    4848                    </p>';
    4949            }
     
    6161            if (!empty($appended_meta_post)) {
    6262                echo '<p class="dretyui">
    63                 [fancyfilter_blog id ="' . esc_attr($post_ID) . '" grid_style = "' . $slectblog__styledata . '" button="' . $slect_blg_butondata . '" col_1="' . $el_fi_blog_gridbg . '" col_2="' . $el_fi_blog_gridbg_2 . '" align="' . $fancy_blogMetabtn_align . '" btn_act="' . $fancy_blog_metabtn_bg . '" btnclr="' . $fancy_blog_metabtn_clor . '" btnbg="' . $fancy_blogmetabtn_ac_bg . '" layout="' . $slect_blog_erp_rw . '" animation="' . $slect_styleanimationblog . '"]
     63                [fancyfilter_blog id ="' . esc_attr($post_ID) . '" grid_style = "' . esc_attr($slectblog__styledata) . '" button="' . esc_attr($slect_blg_butondata) . '" col_1="' . esc_attr($el_fi_blog_gridbg) . '" col_2="' . esc_attr($el_fi_blog_gridbg_2) . '" align="' . esc_attr($fancy_blogMetabtn_align) . '" btn_act="' . esc_attr($fancy_blog_metabtn_bg) . '" btnclr="' . esc_attr($fancy_blog_metabtn_clor) . '" btnbg="' . esc_attr($fancy_blogmetabtn_ac_bg) . '" layout="' . esc_attr($slect_blog_erp_rw) . '" animation="' . esc_attr($slect_styleanimationblog) . '"]
    6464                </p></div>';
    6565            }
     
    6767                $appended_meta_product = get_post_meta($post_ID, 'facncy_meta_product', true);
    6868                if (!empty($appended_meta_product)) {
    69                     echo '<p class="premium">
    70             [fancyfilter_product id ="'.esc_attr($post_ID).'" grid_style = "st-free" button="btnsyle-3" col_1="#81d742" col_2="#81d742" align="left" btn_act="#81d742" btnclr="#fff" btnbg="rgb(197,64,206)" layout="col-2"]</p>';
     69
     70
     71$slect_clm_erp_rw = get_post_meta($post_ID, "slect_clm_erp_rw", true) ? get_post_meta($post_ID, "slect_clm_erp_rw", true): 'col-2';
     72$slect_styleanimationcm = get_post_meta($post_ID, "slect_styleanimationcm", true) ? get_post_meta($post_ID, "slect_styleanimationcm", true): ' ';
     73
     74$slect_prodct_butondata = get_post_meta($post_ID, "slect_prodct_butondata", true) ? get_post_meta($post_ID, "slect_prodct_butondata", true): ' ';
     75$el_fi_prodct_gridbg = get_post_meta($post_ID, "el_fi_prodct_gridbg", true) ? get_post_meta($post_ID, "el_fi_prodct_gridbg", true): ' ';
     76$el_fi_prodct_gridbg_2 = get_post_meta($post_ID, "el_fi_prodct_gridbg_2", true);
     77$fancy_proMetabtn_align = get_post_meta($post_ID, "fancy_proMetabtn_align", true) ? get_post_meta($post_ID, "fancy_proMetabtn_align", true): 'left';
     78
     79
     80$fancy_Pro_metabtn_ac_bg = get_post_meta($post_ID, "fancy_Pro_metabtn_ac_bg", true);
     81
     82
     83
     84$fancy_Pro_metabtn_bg = get_post_meta($post_ID, "fancy_Pro_metabtn_bg", true) ? get_post_meta($post_ID, "fancy_Pro_metabtn_bg", true): '#81d742';
     85
     86$fancy_metabtn_Proclor = get_post_meta($post_ID, "fancy_metabtn_Proclor", true) ? get_post_meta($post_ID, "fancy_metabtn_Proclor", true): '#2d2d2d';
     87
     88
     89                    echo '<p class="dretyui">
     90            [fancyfilter_product id ="'.esc_attr($post_ID).'" grid_style ="st-free" button="'.esc_attr($slect_prodct_butondata).'" col_1="'.esc_attr($el_fi_prodct_gridbg).'" col_2="'.esc_attr($el_fi_prodct_gridbg_2).'" align="'.esc_attr($fancy_proMetabtn_align).'" btn_act="'.esc_attr($fancy_Pro_metabtn_bg).'" btnclr="'.esc_attr($fancy_metabtn_Proclor).'" btnbg="'.esc_attr($fancy_Pro_metabtn_ac_bg).'" layout="'.esc_attr($slect_clm_erp_rw).'" animation="'.esc_attr($slect_styleanimationcm).'"]</p>';
    7191                }
    7292        }
  • fancy-fiter/trunk/includes/Class/class_fancyfilter_shortcode.php

    r3145687 r3250371  
    3838        wp_register_script( 'lightbox', FANCYFILTER_URL . 'assets/js/lightbox.min.js',array('jquery'),FANCYFILTER_VERSION,true );
    3939
    40         wp_register_script( 'fancy-filter', FANCYFILTER_URL . 'assets/js/fancy-filter.js',array('jquery','isotope.pkgd.min','lightbox'),FANCYFILTER_VERSION ,true ,10 );   
     40        wp_register_script( 'fancy-fiter', FANCYFILTER_URL . 'assets/js/fancy-filter.js',array('jquery','isotope.pkgd.min','lightbox'),FANCYFILTER_VERSION ,true ,10 );   
    4141
    4242    }
     
    5656        ob_start();
    5757
    58            wp_enqueue_script('isotope.pkgd.min');
     58        wp_enqueue_script('isotope.pkgd.min');
    5959        wp_enqueue_script('lightbox');
    60         wp_enqueue_script('fancy-filter');
     60        wp_enqueue_script('fancy-fiter');
    6161
    6262         include FANCYFILTER_PATH .'includes/extra/OptionDataPortfolio.php';
     
    181181
    182182    echo '<div class="fancyfilter_readmore" >
    183    <a href="'.$el_readmore_url.'">'.$el_readmore_txt.'<i class="eicon-long-arrow-right hidden-log"></i></a>
     183   <a href="'.esc_url($el_readmore_url).'">'.esc_html($el_readmore_txt).'<i class="eicon-long-arrow-right hidden-log"></i></a>
    184184    </div>';
    185185    }
  • fancy-fiter/trunk/includes/Class/class_fancyfilterproduct_shortcode.php

    r3145687 r3250371  
    3535        wp_register_script( 'lightbox', FANCYFILTER_URL . 'assets/js/lightbox.min.js',array('jquery'),FANCYFILTER_VERSION,true );
    3636
    37         wp_register_script( 'fancy-filter', FANCYFILTER_URL . 'assets/js/fancy-filter.js',array('jquery','isotope.pkgd.min','lightbox'),FANCYFILTER_VERSION ,true ,10 );   
     37        wp_register_script( 'fancy-fiter', FANCYFILTER_URL . 'assets/js/fancy-filter.js',array('jquery','isotope.pkgd.min','lightbox'),FANCYFILTER_VERSION ,true ,10 );   
    3838
    3939    }
     
    5454        wp_enqueue_script('isotope.pkgd.min');
    5555        wp_enqueue_script('lightbox');
    56         wp_enqueue_script('fancy-filter');
     56        wp_enqueue_script('fancy-fiter');
    5757        ob_start();
    5858
    5959        include FANCYFILTER_PATH .'includes/extra/OptionDataPortfolio.php';
    6060        include FANCYFILTER_PATH .'includes/extra/PortfolioCssdata.php';
     61
    6162        ?>
    6263
     
    6465
    6566                    <div class="fancyfilter-filter-nav" id="fancyfilter-filter-nav-shrcode">
    66                         <ul style="text-align:<?php echo esc_attr($align); ?>">
     67            <ul style="text-align:<?php echo esc_attr($align); ?>">
    6768
    68                 <?php if($fabcy_remove_al_btn !== 'checked'){
    69             if($button == 'btnsyle-1' ||  $button == 'btnsyle-2' ){?>
     69        <?php if($fabcy_remove_al_btn !== 'checked'){
     70    if($button == 'btnsyle-1' ||  $button == 'btnsyle-2' ){?>
    7071
    7172
    72             <li class="active <?php echo esc_attr($button_class); ?>" data-filter="*" style="margin-left:15px"><?php echo esc_html($el_all_text); ?></li>
     73    <li class="active <?php echo esc_attr($button_class); ?>" data-filter="*" style="margin-left:15px"><?php echo esc_html($el_all_text); ?></li>
    7374
    74                 <?php }   }
     75        <?php }   }
    7576            $facncy_meta_post = get_post_meta($post_id, "facncy_meta_product", true);
    7677            if($facncy_meta_post){
     
    9596            if($button == 'btnsyle-1' || $button == 'btnsyle-2' ){
    9697                    ?>
    97                 <li class=" <?php echo esc_attr($button_class); ?>" data-filter=".<?php echo $fancyfilter_pro_term->term_id ?>" style="margin-left:15px"> <?php echo $fancyfilter_pro_term->name;?></li>
     98                <li class=" <?php echo esc_attr($button_class); ?>" data-filter=".<?php echo esc_attr($fancyfilter_pro_term->term_id)?>" style="margin-left:15px"> <?php echo esc_html($fancyfilter_pro_term->name);?></li>
    9899                <?php }
    99100
     
    177178
    178179        echo '<div class="fancyfilter_pro_readmore" >
    179            <a href="'.$el_readmore_url.'">'.$el_readmore_txt.'<i class="hidden-log">&#8594;</i></a>
     180           <a href="'.esc_url($el_readmore_url).'">'.esc_html($el_readmore_txt).'<i class="hidden-log">&#8594;</i></a>
    180181        </div>';
    181182    }
  • fancy-fiter/trunk/includes/extra/FancyProductData.php

    r3145687 r3250371  
    3131   
    3232   $writeiconclasss = get_post_meta(get_the_ID(), "writeiconclasss", true);
    33    $rand = rand(213233,13023);
     33   $rand = wp_rand(213233,13023);
    3434         
    3535
    3636?>
    3737
    38         <div  class=" grid-item <?php echo esc_attr($on_draught) . ' ' . $layout_class; ?>" style="width:<?php echo esc_attr($grid_layout) ?>%">
     38        <div  class=" grid-item <?php echo esc_attr($on_draught) . ' ' . esc_attr($layout_class); ?>" style="width:<?php echo esc_attr($grid_layout) ?>%">
    3939        <div id="rerepopup-<?php echo esc_attr($x . $rand_type); ?>" class="image-popup-child white-popup mfp-hide">
    4040           <img src="<?php echo esc_url(fancyfilter_blog_thumbnail()); ?>" alt="<?php echo esc_attr(fancyfilter_pro_alt_text()); ?>">
    41            <h2 class="fancyfilter_pro-mfg-title" style="color:<?php echo $el_pup_t_clr;?>"> <?php echo esc_html(get_the_title()) ?></h2>
    42            <a href="<?php echo esc_url(get_the_permalink()); ?>" class="fancyfilter_pro_poptilie_link_" style="color: <?php echo $el_pup_btn_clr; ?>;background: <?php echo $el_pup_btn_bg; ?>;border-radius: <?php echo $el_pup_btn_bdr ?>px; "><?php echo esc_html($el_pup_btn_title) ?></a>
     41           <h2 class="fancyfilter_pro-mfg-title" style="color:<?php echo esc_attr($el_pup_t_clr);?>"> <?php echo esc_html(get_the_title()) ?></h2>
     42           <a href="<?php echo esc_url(get_the_permalink()); ?>" class="fancyfilter_pro_poptilie_link_" style="color: <?php echo esc_attr($el_pup_btn_clr); ?>;background: <?php echo esc_attr($el_pup_btn_bg); ?>;border-radius: <?php echo esc_attr($el_pup_btn_bdr) ?>px; "><?php echo esc_html($el_pup_btn_title) ?></a>
    4343        </div>
    4444
     
    6464          <div class="fancyfilter_pro-free-item__info">
    6565
    66             <h2 class="fancyfilter_pro-free-item__header"><?php echo fancyfilter_pro_shtcode_title(); ?></h2>
     66            <h2 class="fancyfilter_pro-free-item__header"><?php echo esc_html(fancyfilter_pro_shtcode_title()); ?></h2>
    6767
    6868            <div class="fancyfilter_pro-free-item__links">
     
    7070              <div class="fancyfilter_pro-free-item__link-block">
    7171
    72                 <a href="<?php echo esc_url(get_the_permalink(get_the_ID())); ?>" class="fancyfilter_pro_port_link "><?php echo $link_icon; ?></a>
     72                <a href="<?php echo esc_url(get_the_permalink(get_the_ID())); ?>" class="fancyfilter_pro_port_link "><?php echo wp_kses_post($link_icon); ?></a>
    7373              </div>
    7474
     
    8383            <?php
    8484
    85             echo '<p class="fancyfilter_proprice">' . $product->get_price_html() . '</p>';
     85            echo '<p class="fancyfilter_proprice">' . wp_kses_post($product->get_price_html()) . '</p>';
    8686           
    8787                echo '<div class="fancyfilter_product woocommerce fancyfilter_pro_variable">'. do_shortcode('[add_to_cart id="'.get_the_ID().'" show_price="false"]').'</div>';
     
    9292          if ($product->is_on_sale())
    9393                {
    94                     echo '<p class="fancyfilter_pro_on_sale">' . esc_html__('Sale', 'fancy-filter') . '</p>';
     94                    echo '<p class="fancyfilter_pro_on_sale">' . esc_html__('Sale', 'fancy-fiter') . '</p>';
    9595               } ?>
    9696          </div>
  • fancy-fiter/trunk/includes/extra/OptionDataPortfolio.php

    r2631339 r3250371  
    22
    33$options = get_option('fancyfilter_options');
    4 $fancyfilter_pro_col_by = isset($options['fancyfilter_pro_col_by']) ? $options['fancyfilter_pro_col_by'] : 'col-2';
    5 $fancyfilter_btn_ = isset($options['fancyfilter_pro_btn_style']) ? $options['fancyfilter_pro_btn_style'] : 'btnsyle-1';
     4
     5$layout = isset($options['fancyfilter_pro_col_by']) ? $options['fancyfilter_pro_col_by'] : 'col-2';
     6$button = isset($options['fancyfilter_pro_btn_style']) ? $options['fancyfilter_pro_btn_style'] : 'btnsyle-1';
    67
    78$portfolioselect2_style = isset($options['slct_portfoli_types']) ? $options['slct_portfoli_types'] : ' ';
     
    1011$fancyfilter_select2_style = isset($options['yoo_slct_post_types']) ? $options['yoo_slct_post_types'] : ' ';
    1112
    12 $grid_fstyle = isset($options['fancyfilter_pro_main_style']) ? $options['fancyfilter_pro_main_style'] : 'st-free';
     13$grid_style = isset($options['fancyfilter_pro_main_style']) ? $options['fancyfilter_pro_main_style'] : 'st-free';
    1314
    14 $el_item_bg_color = isset($options['el_item_bg_color']) ? $options['el_item_bg_color'] : '#e91e63';
     15$col_1 = isset($options['el_item_bg_color']) ? $options['el_item_bg_color'] : '#e91e63';
    1516
    16 $el_item_bg_two_color = isset($options['el_item_bg_two_color']) ? $options['el_item_bg_two_color'] : 'rgba(20,44,160,0.67)';
     17$col_2 = isset($options['el_item_bg_two_color']) ? $options['el_item_bg_two_color'] : 'rgba(20,44,160,0.67)';
    1718
    18 $fancyfilter_pro_btn_alighmnt = isset($options['fancyfilter_pro_btn_alighmnt']) ? $options['fancyfilter_pro_btn_alighmnt'] : 'center';
     19$align = isset($options['fancyfilter_pro_btn_alighmnt']) ? $options['fancyfilter_pro_btn_alighmnt'] : 'center';
    1920
    20 $el_btntxt_color = isset($options['el_btntxt_color']) ? $options['el_btntxt_color'] : '#000';
     21$btnclr = isset($options['el_btntxt_color']) ? $options['el_btntxt_color'] : '#000';
    2122
    22 $el_btnact_color = isset($options['el_btnact_color']) ? $options['el_btnact_color'] : '#ccc';
     23$btn_act = isset($options['el_btnact_color']) ? $options['el_btnact_color'] : '#ccc';
    2324
    24 $el_btnact_bgcolor = isset($options['el_btnact_bgcolor']) ? $options['el_btnact_bgcolor'] : 'rgba(0, 0, 255, 1)';
     25$btnbg = isset($options['el_btnact_bgcolor']) ? $options['el_btnact_bgcolor'] : 'rgba(0, 0, 255, 1)';
    2526
    2627
    27 $fancyfilter_franimation = isset($options['fancyfilter_pro_style_animation']) ? $options['fancyfilter_pro_style_animation'] : 'fancyfilter_pro-free-item--eff1';
     28$animation = isset($options['fancyfilter_pro_style_animation']) ? $options['fancyfilter_pro_style_animation'] : 'fancyfilter_pro-free-item--eff1';
    2829
    2930global $post;
    3031$post->ID;
    3132extract(shortcode_atts(array(
    32     'button' => $fancyfilter_btn_,
    33     'grid_style' => $grid_fstyle,
     33    'button' => $button,
     34    'grid_style' => $grid_style,
    3435    'id' => $post->ID,
    35     'animation' => $fancyfilter_franimation,
    36     'layout' => $fancyfilter_pro_col_by,
    37     'col_1' => $el_item_bg_color,
    38     'col_2' => $el_item_bg_two_color,
    39     'align' => $fancyfilter_pro_btn_alighmnt,
    40     'btn_act' => $el_btnact_color,
    41     'btnclr' => $el_btntxt_color,
    42     'btnbg' => $el_btnact_bgcolor
     36    'animation' => $animation,
     37    'layout' => $layout,
     38    'col_1' => $col_1,
     39    'col_2' => $col_2,
     40    'align' => $align,
     41    'btn_act' => $btn_act,
     42    'btnclr' => $btnclr,
     43    'btnbg' => $btnbg
    4344
    4445) , $atts));
    4546
    4647$post_id = $id;
     48$rand_type = $id;
    4749
     50$grid_layout = '49';
     51if($layout == 'col-2'){
     52   $grid_layout = '32.33';
     53}
     54if($layout == 'col-1'){
     55  $grid_layout = '49';
     56}
     57if($layout == 'col-3'){
     58  $grid_layout = '24';
     59}
    4860$fancyfilter_pro_display_readmore = isset($options['fancyfilter_pro_display_readmore']) && $options['fancyfilter_pro_display_readmore'] === 'fancyfilter_pro_display_readmore' ? 'checked' : '';
    4961
     
    114126}
    115127
    116 $rand_type = rand(123456789, 12345678);
     128
    117129
    118130$el_btn_f_size = isset($options['el_btn_f_size']) ? $options['el_btn_f_size'] : '20';
     
    142154$fancyfilter_pro_readmore_align = isset($options['fancyfilter_pro_readmore_align']) ? $options['fancyfilter_pro_readmore_align'] : 'center';
    143155
    144 if($layout == 'col-2'){
    145    $grid_layout = '32.33';
    146 }
    147 elseif($layout == 'col-1'){
    148   $grid_layout = '49';
    149 }
    150 elseif($layout == 'col-3'){
    151   $grid_layout = '24';
    152 }else{
    153  $grid_layout = '32.33'; 
    154 }
     156
    155157
    156158$fabcy_remove_al_btn = isset($options['fabcy_remove_al_btn']) && $options['fabcy_remove_al_btn'] === 'fabcy_remove_al_btn' ? 'checked' : '';
  • fancy-fiter/trunk/includes/extra/PortfolioCssdata.php

    r2702846 r3250371  
    11<style>
    22
    3 .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> a.image-popup,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> a.video-popup,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> a.shrcode-popup,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> a.fancyfilter_port_link{
     3.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> a.image-popup,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> a.video-popup,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> a.shrcode-popup,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> a.fancyfilter_port_link{
    44
    5     color: <?php echo esc_html($el_zoom_color) ?>;
    6     fill: <?php echo esc_html($el_zoom_color) ?>;
    7     background-color:<?php echo esc_html($el_zoom_bgcolor) ?>;
    8     border: 1px solid <?php echo esc_html($el_zoom_bgcolor) ?>
     5    color: <?php echo esc_attr($el_zoom_color) ?>;
     6    fill: <?php echo esc_attr($el_zoom_color) ?>;
     7    background-color:<?php echo esc_attr($el_zoom_bgcolor) ?>;
     8    border: 1px solid <?php echo esc_attr($el_zoom_bgcolor) ?>
    99}
    10 .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> a.image-popup:hover,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> a.video-popup:hover,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> a.shrcode-popup:hover,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> a.fancyfilter_port_link:hover,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .portfolio_wrap_six .portfolio_content .icon li a:after{
     10.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> a.image-popup:hover,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> a.video-popup:hover,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> a.shrcode-popup:hover,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> a.fancyfilter_port_link:hover,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .portfolio_wrap_six .portfolio_content .icon li a:after{
    1111
    12     color: <?php echo esc_html($el_link_color) ?>;
    13     fill: <?php echo esc_html($el_link_color) ?>;
    14     background-color:<?php echo esc_html($el_link_bgcolor) ?>;
    15     border: 1px solid <?php echo esc_html($el_link_bgcolor) ?>;
     12    color: <?php echo esc_attr($el_link_color) ?>;
     13    fill: <?php echo esc_attr($el_link_color) ?>;
     14    background-color:<?php echo esc_attr($el_link_bgcolor) ?>;
     15    border: 1px solid <?php echo esc_attr($el_link_bgcolor) ?>;
    1616
    1717}
    18     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .fancyfilter_readmore{
    19         text-align: <?php echo $fancyfilter_pro_readmore_align; ?>;
     18    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .fancyfilter_readmore{
     19        text-align: <?php echo esc_attr($fancyfilter_pro_readmore_align); ?>;
    2020    }
    21     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .fancyfilter_readmore a{
     21    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .fancyfilter_readmore a{
    2222
    23             background: <?php echo esc_html($el_readmore_bgcolor); ?>;
    24             color: <?php echo esc_html($el_readmore_color); ?>;;
    25             border: 1px solid <?php echo esc_html($el_readmore_bgcolor); ?>;
     23            background: <?php echo esc_attr($el_readmore_bgcolor); ?>;
     24            color: <?php echo esc_attr($el_readmore_color); ?>;;
     25            border: 1px solid <?php echo esc_attr($el_readmore_bgcolor); ?>;
    2626        }
    2727       
    2828
    29         .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .fancyfilter_readmore a:hover{
    30             color: <?php echo esc_html($el_readmore_bgcolor); ?>;;
     29        .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .fancyfilter_readmore a:hover{
     30            color: <?php echo esc_attr($el_readmore_bgcolor); ?>;;
    3131        }
    32     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .fancyfilter_pro_pagination a.next.page-numbers,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?>  .fancyfilter_pro_pagination a.page-numbers{
    33         color:  <?php echo $el_pagination_color; ?>;
    34         background-color:  <?php echo $el_pagination_bg_color; ?>;
    35         border: 2px solid  <?php echo $el_pagination_bg_color; ?>;
     32    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .fancyfilter_pro_pagination a.next.page-numbers,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?>  .fancyfilter_pro_pagination a.page-numbers{
     33        color:  <?php echo esc_attr($el_pagination_color); ?>;
     34        background-color:  <?php echo esc_attr($el_pagination_bg_color); ?>;
     35        border: 2px solid  <?php echo esc_attr($el_pagination_bg_color); ?>;
    3636
    3737    }
    38     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .fancyfilter_pro_pagination span.page-numbers.current{
    39         color:  <?php echo $el_pagination_ac_color; ?>;
     38    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .fancyfilter_pro_pagination span.page-numbers.current{
     39        color:  <?php echo esc_attr($el_pagination_ac_color); ?>;
    4040
    4141
    4242    }
    43     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .fancyfilter_pro_pagination{
     43    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .fancyfilter_pro_pagination{
    4444
    45     text-align: <?php echo $fancyfilter_pro_pg_align; ?>;
    46     margin-top: <?php echo $el_pagination_top_space?>px;
     45    text-align: <?php echo esc_attr($fancyfilter_pro_pg_align); ?>;
     46    margin-top: <?php echo esc_attr($el_pagination_top_space);?>px;
    4747
    4848}
     
    5151
    5252       
    53     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .fancyfilter_pagination a.next.page-numbers,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?>  .fancyfilter_pagination a.page-numbers{
    54         color:  <?php echo esc_html($el_pagination_color); ?>;
    55         background-color:  <?php echo esc_html($el_pagination_bg_color); ?>;
    56         border: 2px solid  <?php echo esc_html($el_pagination_bg_color); ?>;
     53    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .fancyfilter_pagination a.next.page-numbers,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?>  .fancyfilter_pagination a.page-numbers{
     54        color:  <?php echo esc_attr($el_pagination_color); ?>;
     55        background-color:  <?php echo esc_attr($el_pagination_bg_color); ?>;
     56        border: 2px solid  <?php echo esc_attr($el_pagination_bg_color); ?>;
    5757
    5858    }
    59     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .fancyfilter_pagination span.page-numbers.current{
    60         color:  <?php echo esc_html($el_pagination_ac_color); ?>;
     59    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .fancyfilter_pagination span.page-numbers.current{
     60        color:  <?php echo esc_attr($el_pagination_ac_color); ?>;
    6161
    6262
    6363    }
    64     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .fancyfilter_pagination{
     64    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .fancyfilter_pagination{
    6565
    66     text-align: <?php echo esc_html($fancyfilter_pro_pg_align); ?>;
    67     margin-top: <?php echo esc_html($el_pagination_top_space)?>px;
     66    text-align: <?php echo esc_attr($fancyfilter_pro_pg_align); ?>;
     67    margin-top: <?php echo esc_attr($el_pagination_top_space)?>px;
    6868
    6969}
    70 .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> li.hover_eight.hover_button,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> li.hover_eight.hover_button:before,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> li.hover_eight.hover_button:after,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> li.hover_three::before{
    71         background: <?php echo esc_html($btnbg) ?>;
     70.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> li.hover_eight.hover_button,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> li.hover_eight.hover_button:before,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> li.hover_eight.hover_button:after,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> li.hover_three::before{
     71        background: <?php echo esc_attr($btnbg) ?>;
    7272    }
    7373
    7474
    7575
    76     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .hover_six.active,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .hover_seven svg.button-stroke,.hover_two rect{
    77         border-top-color: <?php echo esc_html($btn_act) ?>;
    78         stroke: <?php echo esc_html($btn_act) ?>;
     76    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .hover_six.active,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .hover_seven svg.button-stroke,.hover_two rect{
     77        border-top-color: <?php echo esc_attr($btn_act) ?>;
     78        stroke: <?php echo esc_attr($btn_act) ?>;
    7979    }
    80     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .hover_twelve.from-right:before,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .hover_univer:hover:after,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .active.hover_univer:after,.hover_four:after{
     80    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .hover_twelve.from-right:before,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .hover_univer:hover:after,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .active.hover_univer:after,.hover_four:after{
    8181
    82       background: <?php echo esc_html($btnbg) ?>; 
     82      background: <?php echo esc_attr($btnbg) ?>; 
    8383    }
    8484
     
    8686
    8787
    88     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .portfolio_content:before,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?>  .fancyfilter_imageclass:before,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?>  .fancyfilter-free-item__info{
     88    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .portfolio_content:before,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?>  .fancyfilter_imageclass:before,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?>  .fancyfilter-free-item__info{
    8989
    90     background:<?php echo esc_html($col_2) ?> ;
    91     background: linear-gradient(151deg, <?php echo esc_html($col_1) ?> 36%, <?php echo esc_html($col_2) ?> 100%)
     90    background:<?php echo esc_attr($col_2) ?> ;
     91    background: linear-gradient(151deg, <?php echo esc_attr($col_1) ?> 36%, <?php echo esc_attr($col_2) ?> 100%)
    9292       
    9393    }
    9494
    9595
    96     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .portfolio_content small{
    97     color:<?php echo esc_html($el_cat_color)?>     
     96    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .portfolio_content small{
     97    color:<?php echo esc_attr($el_cat_color)?>     
    9898    }
    99     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .portfolio_content h2{
    100         color:<?php echo esc_html($el_title_color);?>
     99    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .portfolio_content h2{
     100        color:<?php echo esc_attr($el_title_color);?>
    101101
    102102    }
    103  .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?>  .fancyfilter-filter-nav ul li{
     103 .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?>  .fancyfilter-filter-nav ul li{
    104104
    105     color: <?php echo esc_html($btnclr) ?>;
     105    color: <?php echo esc_attr($btnclr) ?>;
    106106   
    107107  }
    108   .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .fancyfilter-filter-nav ul li.active{
    109    color: <?php echo esc_html($btn_act) ?>;
     108  .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .fancyfilter-filter-nav ul li.active{
     109   color: <?php echo esc_attr($btn_act) ?>;
    110110  }
    111   .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .fancyfilter-free-item__link{
    112     fill: <?php echo esc_html($el_zoom_color) ?>;
    113     background:<?php echo esc_html($el_zoom_bgcolor) ?>;
     111  .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .fancyfilter-free-item__link{
     112    fill: <?php echo esc_attr($el_zoom_color) ?>;
     113    background:<?php echo esc_attr($el_zoom_bgcolor) ?>;
    114114  }
    115   .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type)?> .fancyfilter-free-item__link:hover{
    116   fill: <?php echo esc_html($el_link_color) ?>;
    117   background:<?php echo esc_html($el_link_bgcolor) ?>; 
     115  .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type)?> .fancyfilter-free-item__link:hover{
     116  fill: <?php echo esc_attr($el_link_color) ?>;
     117  background:<?php echo esc_attr($el_link_bgcolor) ?>; 
    118118  }
    119119  .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> #fancyfilter-filter-nav-shrcode  ul li{
    120     font-weight: <?php echo esc_html($el_btn_f_weight) ?>;
    121     font-size:<?php echo esc_html($el_btn_f_size) ?>px;
     120    font-weight: <?php echo esc_attr($el_btn_f_weight) ?>;
     121    font-size:<?php echo esc_attr($el_btn_f_size) ?>px;
    122122
    123123  }
    124124  .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> .portfolio_content h2{
    125125
    126   font-weight: <?php echo esc_html($el_ti_font_w) ?>;
    127   font-size:<?php echo esc_html($el_ti_font) ?>px; 
     126  font-weight: <?php echo esc_attr($el_ti_font_w) ?>;
     127  font-size:<?php echo esc_attr($el_ti_font) ?>px; 
    128128  }
    129129
    130130  @media (max-width:768px){
    131   .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type) ?>   .fancyfilter-filter-nav ul{
     131  .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?>   .fancyfilter-filter-nav ul{
    132132        text-align: center;
    133133    }
    134     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type) ?>     .fancyfilter-filter-nav ul li {
     134    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?>     .fancyfilter-filter-nav ul li {
    135135        text-align: center;
    136136        display: block;
    137137        margin:20px 0;
    138138    }
    139     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type) ?>    .active.hover_one::before, .active.hover_one::after {
     139    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?>    .active.hover_one::before, .active.hover_one::after {
    140140        width: 20%;
    141141        left: 41%;
     
    144144
    145145    }
    146     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type) ?> .portfolio_content .icon li a{
    147        background-color: <?php echo esc_html($el_zoom_bgcolor) ?>;
    148        border: 1px solid <?php echo esc_html($el_zoom_bgcolor) ?>;
     146    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> .portfolio_content .icon li a{
     147       background-color: <?php echo esc_attr($el_zoom_bgcolor) ?>;
     148       border: 1px solid <?php echo esc_attr($el_zoom_bgcolor) ?>;
    149149    }
    150     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type) ?> .portfolio_content .icon li a svg{
    151             fill: <?php echo esc_html($el_zoom_color) ?>;
     150    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> .portfolio_content .icon li a svg{
     151            fill: <?php echo esc_attr($el_zoom_color) ?>;
    152152    }
    153     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type) ?> .portfolio_content .icon li a:hover svg,.fancyfilter-filter-wrapper-<?php echo esc_html($rand_type) ?> a.fancyfilter_port_link:hover svg#fancyLinkOIconTwoss{
    154             fill: <?php echo esc_html($el_link_color) ?>;
     153    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> .portfolio_content .icon li a:hover svg,.fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> a.fancyfilter_port_link:hover svg#fancyLinkOIconTwoss{
     154            fill: <?php echo esc_attr($el_link_color) ?>;
    155155    }
    156156
    157     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type) ?> a.fancyfilter_port_link:hover svg#fancyLinkOIconThree, a.fancyfilter_port_link:hover svg#fancyLinkOIconThree path {
    158      stroke: <?php echo esc_html($el_link_color) ?>;
     157    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> a.fancyfilter_port_link:hover svg#fancyLinkOIconThree, a.fancyfilter_port_link:hover svg#fancyLinkOIconThree path {
     158     stroke: <?php echo esc_attr($el_link_color) ?>;
    159159    }
    160160
    161      .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type) ?> .portfolio_content .icon li a:hover{
    162             background-color: <?php echo esc_html($el_link_bgcolor) ?>;
    163             border-color:<?php echo esc_html($el_link_bgcolor) ?>;
     161     .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> .portfolio_content .icon li a:hover{
     162            background-color: <?php echo esc_attr($el_link_bgcolor) ?>;
     163            border-color:<?php echo esc_attr($el_link_bgcolor) ?>;
    164164    }
    165165
    166     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type) ?> a.fancyfilter_port_link svg#fancyLinkOIconThree, a.fancyfilter_port_link svg#fancyLinkOIconThree path {
    167         stroke: <?php echo esc_html($el_zoom_color) ?>;
     166    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> a.fancyfilter_port_link svg#fancyLinkOIconThree, a.fancyfilter_port_link svg#fancyLinkOIconThree path {
     167        stroke: <?php echo esc_attr($el_zoom_color) ?>;
    168168        fill: none;
    169169    }
    170     .fancyfilter-filter-wrapper-<?php echo esc_html($rand_type) ?> a.fancyfilter_port_link svg#fancyLinkOIconTwoss{
     170    .fancyfilter-filter-wrapper-<?php echo esc_attr($rand_type) ?> a.fancyfilter_port_link svg#fancyLinkOIconTwoss{
    171171
    172         fill:  <?php echo esc_html($el_zoom_color) ?>;
     172        fill:  <?php echo esc_attr($el_zoom_color) ?>;
    173173        stroke: none;
    174174    }
  • fancy-fiter/trunk/includes/extra/PortfolioQueryDAta.php

    r3145687 r3250371  
    3232    <div class="fancyfilter-free-item__info">
    3333
    34     <h2 class="fancyfilter-free-item__header"><?php echo fancyfilter_shtcode_title(); ?></h2>
     34    <h2 class="fancyfilter-free-item__header"><?php echo esc_html(fancyfilter_shtcode_title()); ?></h2>
    3535
    3636    <div class="fancyfilter-free-item__links">
     
    5757
    5858    </div>
    59 
  • fancy-fiter/trunk/includes/helper/fancyfilter-helper-function.php

    r2702846 r3250371  
    207207            $excerpt = preg_replace(" ([.*?])",'',$excerpt);
    208208            $excerpt = strip_shortcodes($excerpt);
    209             $excerpt = strip_tags($excerpt);
     209            $excerpt = wp_strip_all_tags($excerpt);
    210210            $excerpt = substr($excerpt, 0, $excerpt_length);
    211211            $excerpt = substr($excerpt, 0, strripos($excerpt, " "));
  • fancy-fiter/trunk/includes/helper/features.php

    r3145687 r3250371  
    1111            <a href="http://fancyfilter.sharabindu.com/">Check Demo</a>
    1212          </p>
    13           <img src="
    14             <?php echo FANCYFILTER_URL.'/assets/admin/img/4.jpg'?>" alt="">
     13          <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/admin/img/4.jpg'?>" alt="">
    1514        </div>
    1615      </li>
     
    2221            <a href="https://fancyfilter.pinkaddons.xyz/docs/metabox-fancy-filter/#2-toc-title">How to Set</a>
    2322          </p>
    24           <img src="
    25               <?php echo FANCYFILTER_URL.'/assets/admin/img/1-min.jpg'?>" alt="">
     23          <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/admin/img/1-min.jpg'?>" alt="">
    2624        </div>
    2725      </li>
     
    3331            <a href="https://fancyfilter.pinkaddons.xyz/docs/metabox-fancy-filter/#2-toc-title">How to Set</a>
    3432          </p>
    35           <img src="
    36                 <?php echo FANCYFILTER_URL.'/assets/admin/img/3-min.jpg'?>" alt="">
     33          <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/admin/img/3-min.jpg'?>" alt="">
    3734        </div>
    3835      </li>
     
    4441            <a href="https://fancyfilter.pinkaddons.xyz/docs/metabox-fancy-filter/#2-toc-title">How to Set</a>
    4542          </p>
    46           <img src="
    47                   <?php echo FANCYFILTER_URL.'/assets/admin/img/2-min.jpg'?>" alt="">
     43          <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/admin/img/2-min.jpg'?>" alt="">
    4844        </div>
    4945      </li>
     
    5450      <div>
    5551        <h2>WooCommerce Support</h2>
    56         <p>Create a beautiful Product Showcase with the Premium Version</p>
     52        <p>Create a beautiful Product Showcase with AJax Add to cart button in the Premium Version</p>
    5753        <p>
    5854          <a href="https://fancyfilter.pinkaddons.xyz/product-filter/">View Demo</a>
    5955        </p>
    60         <img src="
    61                   <?php echo FANCYFILTER_URL.'/assets/admin/img/product.jpg'?>" alt="">
     56        <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/admin/img/product.jpg'?>" alt="">
    6257      </div>
    6358    </li>
     
    6661        <h2>10 Unique Design</h2>
    6762        <p>Amazing Design and smooth hover effects for the Premium Version</p>
    68         <img src="
    69                     <?php echo FANCYFILTER_URL.'/assets/admin/img/coll-style.jpg'?>" alt="">
     63        <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/admin/img/coll-style.jpg'?>" alt="">
    7064      </div>
    7165    </li>
     
    7468        <h2>12+ attractive button</h2>
    7569        <p>Cool & attrtacive filter button deign for the premium version</p>
    76         <img src="
    77                       <?php echo FANCYFILTER_URL.'/assets/admin/img/button.jpg'?>" alt="">
     70        <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/admin/img/button.jpg'?>" alt=" Filter Button">
    7871      </div>
    7972    </li>
     
    9285    </thead>
    9386    <tbody>
     87
     88      <tr>
     89        <td data-label="button no">10+ unique designs</td>
     90        <td data-label="Style no" class="tabtxtali">
     91          <span class="dashicons dashicons-yes"></span>
     92        </td>
     93        <td data-label="Shortcode with Attribute" class="tabtxtali">
     94          <span class="dashicons dashicons-no-alt"></span>
     95        </td>
     96      </tr>
     97      <tr>
     98        <td data-label="button no">12+ Cool Button designs</td>
     99        <td data-label="Style no" class="tabtxtali">
     100          <span class="dashicons dashicons-yes"></span>
     101        </td>
     102        <td data-label="Shortcode with Attribute" class="tabtxtali">
     103          <span class="dashicons dashicons-no-alt"></span>
     104        </td>
     105      </tr>
     106      <tr>
     107        <td data-label="button no">Popup content with image gallery</td>
     108        <td data-label="Style no" class="tabtxtali">
     109          <span class="dashicons dashicons-yes"></span>
     110        </td>
     111        <td data-label="Shortcode with Attribute" class="tabtxtali">
     112          <span class="dashicons dashicons-no-alt"></span>
     113        </td>
     114      </tr>
     115      <tr>
     116        <td data-label="button no">Popup video for the item</td>
     117        <td data-label="Style no" class="tabtxtali">
     118          <span class="dashicons dashicons-yes"></span>
     119        </td>
     120        <td data-label="Shortcode with Attribute" class="tabtxtali">
     121          <span class="dashicons dashicons-no-alt"></span>
     122        </td>
     123      </tr>
     124      <tr>
     125        <td data-label="button no">Popup Short code Support</td>
     126        <td data-label="Style no" class="tabtxtali">
     127          <span class="dashicons dashicons-yes"></span>
     128        </td>
     129        <td data-label="Shortcode with Attribute" class="tabtxtali">
     130          <span class="dashicons dashicons-no-alt"></span>
     131        </td>
     132      </tr>
     133      <tr>
     134        <td data-label="button no">Popup raw html Support</td>
     135        <td data-label="Style no" class="tabtxtali">
     136          <span class="dashicons dashicons-yes"></span>
     137        </td>
     138        <td data-label="Shortcode with Attribute" class="tabtxtali">
     139          <span class="dashicons dashicons-no-alt"></span>
     140        </td>
     141      </tr>
     142      <tr>
     143        <td data-label="button no">Preview & Download Metabox</td>
     144        <td data-label="Style no" class="tabtxtali">
     145          <span class="dashicons dashicons-yes"></span>
     146        </td>
     147        <td data-label="Shortcode with Attribute" class="tabtxtali">
     148          <span class="dashicons dashicons-no-alt"></span>
     149        </td>
     150      </tr>
    94151      <tr>
    95152        <td data-label="button no">WooCommerce Support(Product Filter)</td>
     
    98155        </td>
    99156        <td data-label="Shortcode with Attribute" class="tabtxtali">
    100           <span class="dashicons dashicons-no-alt"></span>
    101         </td>
    102       </tr>
    103       <tr>
    104         <td data-label="button no">10+ unique designs</td>
    105         <td data-label="Style no" class="tabtxtali">
    106           <span class="dashicons dashicons-yes"></span>
    107         </td>
    108         <td data-label="Shortcode with Attribute" class="tabtxtali">
    109           <span class="dashicons dashicons-no-alt"></span>
    110         </td>
    111       </tr>
    112       <tr>
    113         <td data-label="button no">12+ Cool Button designs</td>
    114         <td data-label="Style no" class="tabtxtali">
    115           <span class="dashicons dashicons-yes"></span>
    116         </td>
    117         <td data-label="Shortcode with Attribute" class="tabtxtali">
    118           <span class="dashicons dashicons-no-alt"></span>
    119         </td>
    120       </tr>
    121       <tr>
    122         <td data-label="button no">Popup content with image gallery</td>
    123         <td data-label="Style no" class="tabtxtali">
    124           <span class="dashicons dashicons-yes"></span>
    125         </td>
    126         <td data-label="Shortcode with Attribute" class="tabtxtali">
    127           <span class="dashicons dashicons-no-alt"></span>
    128         </td>
    129       </tr>
    130       <tr>
    131         <td data-label="button no">Popup video for the item</td>
    132         <td data-label="Style no" class="tabtxtali">
    133           <span class="dashicons dashicons-yes"></span>
    134         </td>
    135         <td data-label="Shortcode with Attribute" class="tabtxtali">
    136           <span class="dashicons dashicons-no-alt"></span>
    137         </td>
    138       </tr>
    139       <tr>
    140         <td data-label="button no">Popup Short code Support</td>
    141         <td data-label="Style no" class="tabtxtali">
    142           <span class="dashicons dashicons-yes"></span>
    143         </td>
    144         <td data-label="Shortcode with Attribute" class="tabtxtali">
    145           <span class="dashicons dashicons-no-alt"></span>
    146         </td>
    147       </tr>
    148       <tr>
    149         <td data-label="button no">Popup raw html Support</td>
    150         <td data-label="Style no" class="tabtxtali">
    151           <span class="dashicons dashicons-yes"></span>
    152         </td>
    153         <td data-label="Shortcode with Attribute" class="tabtxtali">
    154           <span class="dashicons dashicons-no-alt"></span>
    155         </td>
    156       </tr>
    157       <tr>
    158         <td data-label="button no">Preview & Download Metabox</td>
    159         <td data-label="Style no" class="tabtxtali">
    160           <span class="dashicons dashicons-yes"></span>
    161         </td>
    162         <td data-label="Shortcode with Attribute" class="tabtxtali">
    163           <span class="dashicons dashicons-no-alt"></span>
    164         </td>
    165       </tr>
     157          <span class="dashicons dashicons-yes"></span>
     158        </td>
     159      </tr>
     160
    166161      <tr>
    167162        <td data-label="button no">Dynamic Shortcode Creating</td>
  • fancy-fiter/trunk/metaData/FancyMetaExtra/BlogData.php

    r2631339 r3250371  
    4141
    4242<select class="item_slct"  name="slectblog__styledata">
    43  <option value="st-free" ' . selected('st-free', $slectblog__styledata, false) . '>'.esc_html('Free Style', 'fancy-filter').'</option>
    44  <option class="prodataver">'.esc_html('Style One (Pro)', 'fancy-filter').'</option>
    45  <option class="prodataver">'.esc_html('Style Two (Pro)', 'fancy-filter').'</option>
    46  <option class="prodataver">'.esc_html('Style Three (Pro)', 'fancy-filter').'</option>
    47  <option class="prodataver">'.esc_html('Style Four (Pro)', 'fancy-filter').'</option>
    48  <option class="prodataver">'.esc_html('Style Five (Pro)', 'fancy-filter').'</option>
    49  <option class="prodataver">'.esc_html('Style Six (Pro)', 'fancy-filter').'</option>
    50  <option class="prodataver">'.esc_html('Style Seven (Pro)', 'fancy-filter').'</option>
    51  <option class="prodataver">'.esc_html('Style Eight (Pro)', 'fancy-filter').'</option>
    52  <option class="prodataver">'.esc_html('Style Nine (Pro)', 'fancy-filter').'</option>
    53  <option class="prodataver">'.esc_html('Style Ten (Pro)', 'fancy-filter').'</option>
     43 <option value="st-free" ' . selected('st-free', $slectblog__styledata, false) . '>'.esc_html('Free Style', 'fancy-fiter').'</option>
     44 <option class="prodataver">'.esc_html('Style One (Pro)', 'fancy-fiter').'</option>
     45 <option class="prodataver">'.esc_html('Style Two (Pro)', 'fancy-fiter').'</option>
     46 <option class="prodataver">'.esc_html('Style Three (Pro)', 'fancy-fiter').'</option>
     47 <option class="prodataver">'.esc_html('Style Four (Pro)', 'fancy-fiter').'</option>
     48 <option class="prodataver">'.esc_html('Style Five (Pro)', 'fancy-fiter').'</option>
     49 <option class="prodataver">'.esc_html('Style Six (Pro)', 'fancy-fiter').'</option>
     50 <option class="prodataver">'.esc_html('Style Seven (Pro)', 'fancy-fiter').'</option>
     51 <option class="prodataver">'.esc_html('Style Eight (Pro)', 'fancy-fiter').'</option>
     52 <option class="prodataver">'.esc_html('Style Nine (Pro)', 'fancy-fiter').'</option>
     53 <option class="prodataver">'.esc_html('Style Ten (Pro)', 'fancy-fiter').'</option>
    5454</select></li>
    5555<li  class="mtfgfancy_selectsd"><label class="fancymetagrid"> Animation Effects</label><select class="item_slct" name="slect_styleanimationblog" id="id_free_method" >
    5656
    57 <option value="fancyfilter_pro-free-item--eff1" ' . selected('fancyfilter_pro-free-item--eff1', $slect_styleanimationblog, false) . '>'.esc_html('Effect 1', 'fancy-filter').'</option> 
    58 <option value="fancyfilter_pro-free-item--eff2" ' . selected('fancyfilter_pro-free-item--eff2', $slect_styleanimationblog, false) . '>'.esc_html('Effect 2', 'fancy-filter').'</option> 
    59 <option value="fancyfilter_pro-free-item--eff3" ' . selected('fancyfilter_pro-free-item--eff3', $slect_styleanimationblog, false) . '>'.esc_html('Effect 3', 'fancy-filter').'</option> 
    60 <option value="fancyfilter_pro-free-item--eff4" ' . selected('fancyfilter_pro-free-item--eff4', $slect_styleanimationblog, false) . '>'.esc_html('Effect 4', 'fancy-filter').'</option>  </select></li>
     57<option value="fancyfilter_pro-free-item--eff1" ' . selected('fancyfilter_pro-free-item--eff1', $slect_styleanimationblog, false) . '>'.esc_html('Effect 1', 'fancy-fiter').'</option> 
     58<option value="fancyfilter_pro-free-item--eff2" ' . selected('fancyfilter_pro-free-item--eff2', $slect_styleanimationblog, false) . '>'.esc_html('Effect 2', 'fancy-fiter').'</option> 
     59<option value="fancyfilter_pro-free-item--eff3" ' . selected('fancyfilter_pro-free-item--eff3', $slect_styleanimationblog, false) . '>'.esc_html('Effect 3', 'fancy-fiter').'</option> 
     60<option value="fancyfilter_pro-free-item--eff4" ' . selected('fancyfilter_pro-free-item--eff4', $slect_styleanimationblog, false) . '>'.esc_html('Effect 4', 'fancy-fiter').'</option>  </select></li>
    6161
    6262
     
    7171
    7272<select class="item_slct"  name="slect_blog_erp_rw">
    73    <option value="col-1" ' . selected('col-1', $slect_blog_erp_rw, false) . '>'.esc_html('Two Column', 'fancy-filter').'</option>
    74    <option value="col-2"  ' . selected('col-2', $slect_blog_erp_rw, false) . '>'.esc_html('Three Column', 'fancy-filter').'</option>
    75    <option value="col-3"  ' . selected('col-3', $slect_blog_erp_rw, false) . '>'.esc_html('Four Column', 'fancy-filter').'</option>
     73   <option value="col-1" ' . selected('col-1', $slect_blog_erp_rw, false) . '>'.esc_html('Two Column', 'fancy-fiter').'</option>
     74   <option value="col-2"  ' . selected('col-2', $slect_blog_erp_rw, false) . '>'.esc_html('Three Column', 'fancy-fiter').'</option>
     75   <option value="col-3"  ' . selected('col-3', $slect_blog_erp_rw, false) . '>'.esc_html('Four Column', 'fancy-fiter').'</option>
    7676</select></li>' ;
    7777
    7878$html .= '<li  class="mtfgfancy_selectsd"><label class="fancymetagrid">Choose Filter Button Style</label>
    7979<select  name="slect_blg_butondata" id="id_application_method">
    80  <option value="btnsyle-no" ' . selected('btnsyle-no', $slect_blg_butondata, false) . '>'.esc_html('None', 'fancy-filter').'</option>
    81  <option value="btnsyle-1" ' . selected('btnsyle-1', $slect_blg_butondata, false) . '>'.esc_html('Style 1 ', 'fancy-filter').'</option>
    82  <option value="btnsyle-2" ' . selected('btnsyle-2', $slect_blg_butondata, false) . '>'.esc_html('Style 2 ', 'fancy-filter').'</option>
    83   <option class="prodataver">'.esc_html('Style 3 (Pro)', 'fancy-filter').'</option>
    84   <option class="prodataver">'.esc_html('Style 4 (Pro)', 'fancy-filter').'</option>
    85   <option class="prodataver">'.esc_html('Style 5 (Pro)', 'fancy-filter').'</option>
    86   <option class="prodataver">'.esc_html('Style 6 (Pro)', 'fancy-filter').'</option>
    87   <option class="prodataver">'.esc_html('Style 7 (Pro)', 'fancy-filter').'</option>
    88   <option class="prodataver">'.esc_html('Style 8 (Pro)', 'fancy-filter').'</option>
    89   <option class="prodataver">'.esc_html('Style 9 (Pro)', 'fancy-filter').'</option>
    90   <   
    91   <option class="prodataver">'.esc_html('Style 10 (Pro)', 'fancy-filter').'</option>
    92   <option class="prodataver">'.esc_html('Style 11 (Pro)', 'fancy-filter').'</option>
    93   <option class="prodataver">'.esc_html('Style 12 (Pro)', 'fancy-filter').'</option>
    94   <option class="prodataver">'.esc_html('Style 13 (Pro)', 'fancy-filter').'</option>
     80 <option value="btnsyle-no" ' . selected('btnsyle-no', $slect_blg_butondata, false) . '>'.esc_html('None', 'fancy-fiter').'</option>
     81 <option value="btnsyle-1" ' . selected('btnsyle-1', $slect_blg_butondata, false) . '>'.esc_html('Style 1 ', 'fancy-fiter').'</option>
     82 <option value="btnsyle-2" ' . selected('btnsyle-2', $slect_blg_butondata, false) . '>'.esc_html('Style 2 ', 'fancy-fiter').'</option>
    9583 </select></li>
    9684<li  class="mtfgfancy_selectsd">
    9785<label class="fancymetagrid">Button Align</label>
    9886<select  name="fancy_blogMetabtn_align"  class="item_slct" >
    99  <option value="left" ' . selected('left', $fancy_blogMetabtn_align, false) . '>'.esc_html('Left', 'fancy-filter').'</option>
    100  <option value="center" ' . selected('center', $fancy_blogMetabtn_align, false) . '>'.esc_html('Center', 'fancy-filter').'</option>
    101  <option value="right" ' . selected('right', $fancy_blogMetabtn_align, false) . '>'.esc_html('Right', 'fancy-filter').'</option>
     87 <option value="left" ' . selected('left', $fancy_blogMetabtn_align, false) . '>'.esc_html('Left', 'fancy-fiter').'</option>
     88 <option value="center" ' . selected('center', $fancy_blogMetabtn_align, false) . '>'.esc_html('Center', 'fancy-fiter').'</option>
     89 <option value="right" ' . selected('right', $fancy_blogMetabtn_align, false) . '>'.esc_html('Right', 'fancy-fiter').'</option>
    10290</select></li>
    10391
     
    120108else{
    121109
    122 echo "Please create an item by attaching a category first <a href='".admin_url('/')."edit.php?post_type=fancyfilter'>Click here</a>";
     110echo "Please create an item by attaching a category first <a href='".esc_url(admin_url('/'))."edit.php?post_type=fancyfilter'>Click here</a>";
    123111
    124112}
     
    127115$html .= '</ul>';
    128116
    129 echo $html;
     117
     118 $allowed_html = array(
     119    'ul' => array(
     120        'id'    => array(),
     121        'class'    => array(),
     122        'style'    => array(),
     123
     124    ),
     125    'li' => array(
     126        'id'    => array(),
     127        'class'    => array(),
     128        'style'    => array(),
     129    ),
     130    'label' => array(
     131        'id'    => array(),
     132        'class'    => array(),
     133        'for'    => array(),
     134    ),
     135    'input' => array(
     136        'type'  => array(),
     137        'id'    => array(),
     138        'class'    => array(),
     139        'name'  => array(),
     140        'value' => array(),
     141        'checked'  => array(),
     142     ),
     143    'select' => array(
     144        'class'    => array(),
     145        'id'    => array(),
     146        'name'  => array(),
     147        'multiple'  => array(),
     148
     149     ),
     150        'option'  => array(
     151        'value' => array(),
     152        'class'    => array(),
     153        'id'    => array(),
     154        'selected'  => array(),       
     155        ),
     156        'div'  => array(
     157        'class'    => array(),
     158        'id'    => array(),
     159        'style'    => array(),
     160        ),
     161        'strong'  => array(
     162        'class'    => array(),
     163        'id'    => array(),
     164        ),
     165        'table'  => array(
     166        'class'    => array(),
     167        'id'    => array(),
     168        ),
     169        'tr'  => array(
     170        'class'    => array(),
     171        'id'    => array(),
     172        ),
     173        'tbody'  => array(
     174        'class'    => array(),
     175        'id'    => array(),
     176        ),
     177        'th'  => array(
     178        'class'    => array(),
     179        'id'    => array(),
     180        ),
     181        'td'  => array(
     182        'class'    => array(),
     183        'id'    => array(),
     184        ),
     185        'span' => array(
     186        'id'    => array(),
     187        'class'    => array(),
     188        'style'    => array(),
     189    ),
     190        'em' => array(
     191        'id'    => array(),
     192        'class'    => array(),
     193        'style'    => array(),
     194    ),
     195);
     196
     197
     198
     199echo wp_kses($html,$allowed_html );
    130200
    131201if (!empty($appended_meta_post))
     
    136206    <em><p>To display the frontend, copy the code below and paste it in the desired location</p></em>
    137207    <p class="dynashorcde">
    138     [fancyfilter_blog id ="'.esc_attr($post->ID).'" grid_style = "'. $slectblog__styledata.'" button="'.$slect_blg_butondata.'" col_1="'.$el_fi_blog_gridbg.'" col_2="'.$el_fi_blog_gridbg_2.'" align="'.$fancy_blogMetabtn_align.'" btn_act="'.$fancy_blog_metabtn_bg.'" btnclr="'.$fancy_blog_metabtn_clor.'" btnbg="'.$fancy_blogmetabtn_ac_bg.'" layout="'.$slect_blog_erp_rw.'" animation="'.$slect_styleanimationblog.'"]
     208    [fancyfilter_blog id ="'.esc_attr($post->ID).'" grid_style = "'. esc_attr($slectblog__styledata).'" button="'.esc_attr($slect_blg_butondata).'" col_1="'.esc_attr($el_fi_blog_gridbg).'" col_2="'.esc_attr($el_fi_blog_gridbg_2).'" align="'.esc_attr($fancy_blogMetabtn_align).'" btn_act="'.esc_attr($fancy_blog_metabtn_bg).'" btnclr="'.esc_attr($fancy_blog_metabtn_clor).'" btnbg="'.esc_attr($fancy_blogmetabtn_ac_bg).'" layout="'.esc_attr($slect_blog_erp_rw).'" animation="'.esc_attr($slect_styleanimationblog).'"]
    139209    </p></div>';
    140210}
  • fancy-fiter/trunk/metaData/FancyMetaExtra/PortfolioData.php

    r2631339 r3250371  
    4040
    4141  <select class="item_slct"  name="slect_styledata">
    42      <option value="st-free" ' . selected('st-free', $slect_styledata, false) . '>'.esc_html('Free Style', 'fancy-filter').'</option>
    43      <option class="prodataver">'.esc_html('Style One (Pro)', 'fancy-filter').'</option>
    44      <option class="prodataver">'.esc_html('Style Two (Pro)', 'fancy-filter').'</option>
    45      <option class="prodataver">'.esc_html('Style Three (Pro)', 'fancy-filter').'</option>
    46      <option class="prodataver">'.esc_html('Style Four (Pro)', 'fancy-filter').'</option>
    47      <option class="prodataver">'.esc_html('Style Five (Pro)', 'fancy-filter').'</option>
    48      <option class="prodataver">'.esc_html('Style Six (Pro)', 'fancy-filter').'</option>
    49      <option class="prodataver">'.esc_html('Style Seven (Pro)', 'fancy-filter').'</option>
    50      <option class="prodataver">'.esc_html('Style Eight (Pro)', 'fancy-filter').'</option>
    51      <option class="prodataver">'.esc_html('Style Nine (Pro)', 'fancy-filter').'</option>
    52      <option class="prodataver">'.esc_html('Style Ten (Pro)', 'fancy-filter').'</option>
     42     <option value="st-free" ' . selected('st-free', $slect_styledata, false) . '>'.esc_html('Free Style', 'fancy-fiter').'</option>
     43     <option class="prodataver">'.esc_html('Style One (Pro)', 'fancy-fiter').'</option>
     44     <option class="prodataver">'.esc_html('Style Two (Pro)', 'fancy-fiter').'</option>
     45     <option class="prodataver">'.esc_html('Style Three (Pro)', 'fancy-fiter').'</option>
     46     <option class="prodataver">'.esc_html('Style Four (Pro)', 'fancy-fiter').'</option>
     47     <option class="prodataver">'.esc_html('Style Five (Pro)', 'fancy-fiter').'</option>
     48     <option class="prodataver">'.esc_html('Style Six (Pro)', 'fancy-fiter').'</option>
     49     <option class="prodataver">'.esc_html('Style Seven (Pro)', 'fancy-fiter').'</option>
     50     <option class="prodataver">'.esc_html('Style Eight (Pro)', 'fancy-fiter').'</option>
     51     <option class="prodataver">'.esc_html('Style Nine (Pro)', 'fancy-fiter').'</option>
     52     <option class="prodataver">'.esc_html('Style Ten (Pro)', 'fancy-fiter').'</option>
    5353  </select></li>
    5454  <li  class="mtfgfancy_selectsd"><label class="fancymetagrid"> Animation Effects</label><select class="item_slct" name="slect_styleanimation" id="id_free_method" >
    5555
    56   <option value="fancyfilter_pro-free-item--eff1" ' . selected('fancyfilter_pro-free-item--eff1', $slect_styleanimation, false) . '>'.esc_html('Effect 1', 'fancy-filter').'</option> 
    57   <option value="fancyfilter_pro-free-item--eff2" ' . selected('fancyfilter_pro-free-item--eff2', $slect_styleanimation, false) . '>'.esc_html('Effect 2', 'fancy-filter').'</option> 
    58   <option value="fancyfilter_pro-free-item--eff3" ' . selected('fancyfilter_pro-free-item--eff3', $slect_styleanimation, false) . '>'.esc_html('Effect 3', 'fancy-filter').'</option> 
    59   <option value="fancyfilter_pro-free-item--eff4" ' . selected('fancyfilter_pro-free-item--eff4', $slect_styleanimation, false) . '>'.esc_html('Effect 4', 'fancy-filter').'</option>  </select></li>
     56  <option value="fancyfilter_pro-free-item--eff1" ' . selected('fancyfilter_pro-free-item--eff1', $slect_styleanimation, false) . '>'.esc_html('Effect 1', 'fancy-fiter').'</option> 
     57  <option value="fancyfilter_pro-free-item--eff2" ' . selected('fancyfilter_pro-free-item--eff2', $slect_styleanimation, false) . '>'.esc_html('Effect 2', 'fancy-fiter').'</option> 
     58  <option value="fancyfilter_pro-free-item--eff3" ' . selected('fancyfilter_pro-free-item--eff3', $slect_styleanimation, false) . '>'.esc_html('Effect 3', 'fancy-fiter').'</option> 
     59  <option value="fancyfilter_pro-free-item--eff4" ' . selected('fancyfilter_pro-free-item--eff4', $slect_styleanimation, false) . '>'.esc_html('Effect 4', 'fancy-fiter').'</option>  </select></li>
    6060  <li   class="mtfgfancy_selectsd"><label class="fancymetagrid">Background One</label>
    6161  <input type="text" name="el_fi_gridbg" value="'.$el_fi_gridbg.'" class="fancyfilter_color" data-alpha-enabled="true">
     
    6969
    7070  <select class="item_slct"  name="slect_prot_erp_rw">
    71      <option value="col-1" ' . selected('col-1', $slect_prot_erp_rw, false) . '>'.esc_html('Two Column', 'fancy-filter').'</option>
    72      <option value="col-2"  ' . selected('col-2', $slect_prot_erp_rw, false) . '>'.esc_html('Three Column', 'fancy-filter').'</option>
    73      <option value="col-3"  ' . selected('col-3', $slect_prot_erp_rw, false) . '>'.esc_html('Four Column', 'fancy-filter').'</option>
     71     <option value="col-1" ' . selected('col-1', $slect_prot_erp_rw, false) . '>'.esc_html('Two Column', 'fancy-fiter').'</option>
     72     <option value="col-2"  ' . selected('col-2', $slect_prot_erp_rw, false) . '>'.esc_html('Three Column', 'fancy-fiter').'</option>
     73     <option value="col-3"  ' . selected('col-3', $slect_prot_erp_rw, false) . '>'.esc_html('Four Column', 'fancy-fiter').'</option>
    7474  </select></li>' ;
    7575  $html .= '<li  class="mtfgfancy_selectsd"><label class="fancymetagrid">Choose Filter Button Style</label>
    7676  <select  name="slect_butondata" id="id_application_method">
    77      <option value="btnsyle-no" ' . selected('btnsyle-no', $slect_butondata, false) . '>'.esc_html('None', 'fancy-filter').'</option>
    78      <option value="btnsyle-1" ' . selected('btnsyle-1', $slect_butondata, false) . '>'.esc_html('Style 1 ', 'fancy-filter').'</option>
    79      <option value="btnsyle-2" ' . selected('btnsyle-2', $slect_butondata, false) . '>'.esc_html('Style 2 ', 'fancy-filter').'</option>
    80       <option class="prodataver">'.esc_html('Style 3 (Pro)', 'fancy-filter').'</option>
    81       <option class="prodataver">'.esc_html('Style 4 (Pro)', 'fancy-filter').'</option>
    82       <option class="prodataver">'.esc_html('Style 5 (Pro)', 'fancy-filter').'</option>
    83       <option class="prodataver">'.esc_html('Style 6 (Pro)', 'fancy-filter').'</option>
    84       <option class="prodataver">'.esc_html('Style 7 (Pro)', 'fancy-filter').'</option>
    85       <option class="prodataver">'.esc_html('Style 8 (Pro)', 'fancy-filter').'</option>
    86       <option class="prodataver">'.esc_html('Style 9 (Pro)', 'fancy-filter').'</option>
     77     <option value="btnsyle-no" ' . selected('btnsyle-no', $slect_butondata, false) . '>'.esc_html('None', 'fancy-fiter').'</option>
     78     <option value="btnsyle-1" ' . selected('btnsyle-1', $slect_butondata, false) . '>'.esc_html('Style 1 ', 'fancy-fiter').'</option>
     79     <option value="btnsyle-2" ' . selected('btnsyle-2', $slect_butondata, false) . '>'.esc_html('Style 2 ', 'fancy-fiter').'</option>
     80      <option class="prodataver">'.esc_html('Style 3 (Pro)', 'fancy-fiter').'</option>
     81      <option class="prodataver">'.esc_html('Style 4 (Pro)', 'fancy-fiter').'</option>
     82      <option class="prodataver">'.esc_html('Style 5 (Pro)', 'fancy-fiter').'</option>
     83      <option class="prodataver">'.esc_html('Style 6 (Pro)', 'fancy-fiter').'</option>
     84      <option class="prodataver">'.esc_html('Style 7 (Pro)', 'fancy-fiter').'</option>
     85      <option class="prodataver">'.esc_html('Style 8 (Pro)', 'fancy-fiter').'</option>
     86      <option class="prodataver">'.esc_html('Style 9 (Pro)', 'fancy-fiter').'</option>
    8787      <   
    88       <option class="prodataver">'.esc_html('Style 10 (Pro)', 'fancy-filter').'</option>
    89       <option class="prodataver">'.esc_html('Style 11 (Pro)', 'fancy-filter').'</option>
    90       <option class="prodataver">'.esc_html('Style 12 (Pro)', 'fancy-filter').'</option>
    91       <option class="prodataver">'.esc_html('Style 13 (Pro)', 'fancy-filter').'</option>
     88      <option class="prodataver">'.esc_html('Style 10 (Pro)', 'fancy-fiter').'</option>
     89      <option class="prodataver">'.esc_html('Style 11 (Pro)', 'fancy-fiter').'</option>
     90      <option class="prodataver">'.esc_html('Style 12 (Pro)', 'fancy-fiter').'</option>
     91      <option class="prodataver">'.esc_html('Style 13 (Pro)', 'fancy-fiter').'</option>
    9292     </select></li>
    9393  <li  class="mtfgfancy_selectsd">
    9494  <label class="fancymetagrid">Button Align</label>
    9595  <select  name="fancyMetabtn_align"  class="item_slct" >
    96      <option value="left" ' . selected('left', $fancyMetabtn_align, false) . '>'.esc_html('Left', 'fancy-filter').'</option>
    97      <option value="center" ' . selected('center', $fancyMetabtn_align, false) . '>'.esc_html('Center', 'fancy-filter').'</option>
    98      <option value="right" ' . selected('right', $fancyMetabtn_align, false) . '>'.esc_html('Right', 'fancy-filter').'</option>
     96     <option value="left" ' . selected('left', $fancyMetabtn_align, false) . '>'.esc_html('Left', 'fancy-fiter').'</option>
     97     <option value="center" ' . selected('center', $fancyMetabtn_align, false) . '>'.esc_html('Center', 'fancy-fiter').'</option>
     98     <option value="right" ' . selected('right', $fancyMetabtn_align, false) . '>'.esc_html('Right', 'fancy-fiter').'</option>
    9999  </select></li>
    100100
     
    118118else{
    119119   
    120     echo "Please create an item by attaching a category first <a href='".admin_url('/')."edit.php?post_type=fancyfilter'>Click here</a>";
     120    echo "Please create an item by attaching a category first <a href='".esc_url(admin_url('/'))."edit.php?post_type=fancyfilter'>Click here</a>";
    121121
    122122}
     
    125125$html .= '</ul>';
    126126
    127 echo $html;
     127 $allowed_html = array(
     128    'ul' => array(
     129        'id'    => array(),
     130        'class'    => array(),
     131        'style'    => array(),
     132
     133    ),
     134    'li' => array(
     135        'id'    => array(),
     136        'class'    => array(),
     137        'style'    => array(),
     138    ),
     139    'label' => array(
     140        'id'    => array(),
     141        'class'    => array(),
     142        'for'    => array(),
     143    ),
     144    'input' => array(
     145        'type'  => array(),
     146        'id'    => array(),
     147        'class'    => array(),
     148        'name'  => array(),
     149        'value' => array(),
     150        'checked'  => array(),
     151     ),
     152    'select' => array(
     153        'class'    => array(),
     154        'id'    => array(),
     155        'name'  => array(),
     156        'multiple'  => array(),
     157
     158     ),
     159        'option'  => array(
     160        'value' => array(),
     161        'class'    => array(),
     162        'id'    => array(),
     163        'selected'  => array(),       
     164        ),
     165        'div'  => array(
     166        'class'    => array(),
     167        'id'    => array(),
     168        'style'    => array(),
     169        ),
     170        'strong'  => array(
     171        'class'    => array(),
     172        'id'    => array(),
     173        ),
     174        'table'  => array(
     175        'class'    => array(),
     176        'id'    => array(),
     177        ),
     178        'tr'  => array(
     179        'class'    => array(),
     180        'id'    => array(),
     181        ),
     182        'tbody'  => array(
     183        'class'    => array(),
     184        'id'    => array(),
     185        ),
     186        'th'  => array(
     187        'class'    => array(),
     188        'id'    => array(),
     189        ),
     190        'td'  => array(
     191        'class'    => array(),
     192        'id'    => array(),
     193        ),
     194        'span' => array(
     195        'id'    => array(),
     196        'class'    => array(),
     197        'style'    => array(),
     198    ),
     199        'em' => array(
     200        'id'    => array(),
     201        'class'    => array(),
     202        'style'    => array(),
     203    ),
     204);
     205
     206
     207
     208echo wp_kses($html,$allowed_html );
    128209
    129210if (!empty($appended_posts))
     
    134215        <em><p>To display the frontend, copy the code below and paste it in the desired location</p></em>
    135216        <p class="dynashorcde">
    136         [fancyfilter_portfolio id ="'.esc_attr($post->ID).'" grid_style = "'. $slect_styledata.'" button="'.$slect_butondata.'" col_1="'.$el_fi_gridbg.'" col_2="'.$el_fi_gridbg_2.'" align="'.$fancyMetabtn_align.'" btn_act="'.$fancy_metabtn_bg.'" btnclr="'.$fancy_metabtn_clor.'" btnbg="'.$fancy_metabtn_ac_bg.'" layout="'.$slect_prot_erp_rw.'" animation="'.$slect_styleanimation.'"]
     217        [fancyfilter_portfolio id ="'.esc_attr($post->ID).'" grid_style = "'. esc_attr($slect_styledata).'" button="'.esc_attr($slect_butondata).'" col_1="'.esc_attr($el_fi_gridbg).'" col_2="'.esc_attr($el_fi_gridbg_2).'" align="'.esc_attr($fancyMetabtn_align).'" btn_act="'.esc_attr($fancy_metabtn_bg).'" btnclr="'.esc_attr($fancy_metabtn_clor).'" btnbg="'.esc_attr($fancy_metabtn_ac_bg).'" layout="'.esc_attr($slect_prot_erp_rw).'" animation="'.esc_attr($slect_styleanimation).'"]
    137218        </p></div>';
    138219
  • fancy-fiter/trunk/metaData/FancyMetaExtra/ProductData.php

    r2631339 r3250371  
    1 <?php
     1<?php
     2
     3
     4$slect_stylepro_data = get_post_meta($post->ID, "slect_stylepro_data", true) ? get_post_meta($post->ID, "slect_stylepro_data", true): ' ';
     5$slect_clm_erp_rw = get_post_meta($post->ID, "slect_clm_erp_rw", true) ? get_post_meta($post->ID, "slect_clm_erp_rw", true): 'col-2';
     6$slect_styleanimationcm = get_post_meta($post->ID, "slect_styleanimationcm", true) ? get_post_meta($post->ID, "slect_styleanimationcm", true): ' ';
     7
     8$slect_prodct_butondata = get_post_meta($post->ID, "slect_prodct_butondata", true) ? get_post_meta($post->ID, "slect_prodct_butondata", true): ' ';
     9$el_fi_prodct_gridbg = get_post_meta($post->ID, "el_fi_prodct_gridbg", true) ? get_post_meta($post->ID, "el_fi_prodct_gridbg", true): ' ';
     10$el_fi_prodct_gridbg_2 = get_post_meta($post->ID, "el_fi_prodct_gridbg_2", true);
     11$fancy_proMetabtn_align = get_post_meta($post->ID, "fancy_proMetabtn_align", true) ? get_post_meta($post->ID, "fancy_proMetabtn_align", true): 'left';
     12
     13
     14$fancy_Pro_metabtn_ac_bg = get_post_meta($post->ID, "fancy_Pro_metabtn_ac_bg", true);
     15
     16
     17
     18$fancy_Pro_metabtn_bg = get_post_meta($post->ID, "fancy_Pro_metabtn_bg", true) ? get_post_meta($post->ID, "fancy_Pro_metabtn_bg", true): '#81d742';
     19
     20$fancy_metabtn_Proclor = get_post_meta($post->ID, "fancy_metabtn_Proclor", true) ? get_post_meta($post->ID, "fancy_metabtn_Proclor", true): '#2d2d2d';
     21
    222
    323
     
    929
    1030));
    11 $slect_stylepro_data='';
    1231   if ($facncy_meta_product)
    1332   {
     
    2342    $html .= '<li  class="mtfgfancy_selectsd"><label class="fancymetagrid"> Choose Grid Style</label>
    2443
    25   <select class="item_slct"  name="slect_stylepro_data">
    26      <option>'.esc_html('Free Style', 'fancy-filter').'</option>
    27      <option>'.esc_html('Style One ', 'fancy-filter').'</option>
    28      <option>'.esc_html('Style two ', 'fancy-filter').'</option>
    29      <option>'.esc_html('Style three ', 'fancy-filter').'</option>
    30      <option>'.esc_html('Style Four ', 'fancy-filter').'</option>
    31      <option>'.esc_html('Style Five ', 'fancy-filter').'</option>
    32      <option>'.esc_html('Style Six ', 'fancy-filter').'</option>
    33      <option>'.esc_html('Style Seven ', 'fancy-filter').'</option>
    34      <option>'.esc_html('Style Eight ', 'fancy-filter').'</option>
    35      <option>'.esc_html('Style Nine ', 'fancy-filter').'</option>
    36      <option>'.esc_html('Style Ten ', 'fancy-filter').'</option>
     44  <select value="st-free" selected>
     45     <option>'.esc_html('Free Style', 'fancy-fiter').'</option>
    3746  </select></li>
    38   <li  class="mtfgfancy_selectsd"><label class="fancymetagrid"> Animation Effects</label><select class="item_slct" id="id_free_method" >
    39   <option>'.esc_html('Effect 1', 'fancy-filter').'</option> 
    40   <option>'.esc_html('Effect 2', 'fancy-filter').'</option> 
    41   <option>'.esc_html('Effect 3', 'fancy-filter').'</option> 
    42   <option>'.esc_html('Effect 4', 'fancy-filter').'</option>  </select></li>
     47 <li  class="mtfgfancy_selectsd"><label class="fancymetagrid"> Animation Effects</label><select class="item_slct" name="slect_styleanimationcm" id="id_free_method" >
     48
     49  <option value="fancyfilter_pro-free-item--eff1" ' . selected('fancyfilter_pro-free-item--eff1', $slect_styleanimationcm, false) . '>'.esc_html('Effect 1', 'fancy-fiter').'</option> 
     50  <option value="fancyfilter_pro-free-item--eff2" ' . selected('fancyfilter_pro-free-item--eff2', $slect_styleanimationcm, false) . '>'.esc_html('Effect 2', 'fancy-fiter').'</option> 
     51  <option value="fancyfilter_pro-free-item--eff3" ' . selected('fancyfilter_pro-free-item--eff3', $slect_styleanimationcm, false) . '>'.esc_html('Effect 3', 'fancy-fiter').'</option> 
     52  <option value="fancyfilter_pro-free-item--eff4" ' . selected('fancyfilter_pro-free-item--eff4', $slect_styleanimationcm, false) . '>'.esc_html('Effect 4', 'fancy-fiter').'</option>  </select></li>
    4353  <li   class="mtfgfancy_selectsd"><label class="fancymetagrid">Background One</label>
    44   <input type="text" name="el_fi_prodct_gridbg" value="" class="fancyfilter_color" data-alpha-enabled="true">
     54  <input type="text" name="el_fi_prodct_gridbg" value="'.$el_fi_prodct_gridbg.'" class="fancyfilter_color" data-alpha-enabled="true">
    4555  </li><li  class="mtfgfancy_selectsd">
    4656  <label class="fancymetagrid">Background Two(For Gradient)</label>
    47   <input type="text" name="el_fi_prodct_gridbg_2" value="#ccc" class="fancyfilter_color" data-alpha-enabled="true" >
     57  <input type="text" name="el_fi_prodct_gridbg_2" value="'.$el_fi_prodct_gridbg_2.'" class="fancyfilter_color" data-alpha-enabled="true" >
    4858    <div><em>Not Applicable for Grid Style 4</em></div>
    4959  </li> ' ;
     
    5363
    5464  <select class="item_slct"  name="slect_clm_erp_rw">
    55      <option>'.esc_html('Two Column', 'fancy-filter').'</option>
    56      <option>'.esc_html('Three Column', 'fancy-filter').'</option>
    57      <option>'.esc_html('Four Column', 'fancy-filter').'</option>
     65     <option value="col-1" ' . selected('col-1', $slect_clm_erp_rw, false) . '>'.esc_html('Two Column', 'fancy-fiter').'</option>
     66     <option value="col-2"  ' . selected('col-2', $slect_clm_erp_rw, false) . '>'.esc_html('Three Column', 'fancy-fiter').'</option>
     67     <option value="col-3"  ' . selected('col-3', $slect_clm_erp_rw, false) . '>'.esc_html('Four Column', 'fancy-fiter').'</option>
    5868  </select></li>' ;
    59 
    6069
    6170  $html .= '<li  class="mtfgfancy_selectsd"><label class="fancymetagrid">Choose Filter Button Style</label>
    6271  <select  name="slect_prodct_butondata" id="id_application_method">
    63      <option>'.esc_html('None', 'fancy-filter').'</option>
    64      <option>'.esc_html('Style 1 ', 'fancy-filter').'</option>
    65      <option>'.esc_html('Style 2 ', 'fancy-filter').'</option>
    66      <option selected>'.esc_html('Style 3 ', 'fancy-filter').'</option>
    67      <option>'.esc_html('Style 4', 'fancy-filter').'</option>
    68      <option>'.esc_html('Style 5', 'fancy-filter').'</option>
    69      <option>'.esc_html('Style 6', 'fancy-filter').'</option>
    70      <option>'.esc_html('Style 7', 'fancy-filter').'</option>
    71      <option>'.esc_html('Style 8', 'fancy-filter').'</option>
    72      <option>'.esc_html('Style 9', 'fancy-filter').'</option>
    73      <   
    74      <option>'.esc_html('Style 10 ', 'fancy-filter').'</option>
    75      <option>'.esc_html('Style 11 ', 'fancy-filter').'</option>
    76      <option>'.esc_html('Style 12 ', 'fancy-filter').'</option>
    77      <option>'.esc_html('Style 13 ', 'fancy-filter').'</option>
     72     <option value="btnsyle-no" ' . selected('btnsyle-no', $slect_prodct_butondata, false) . '>'.esc_html('None', 'fancy-fiter').'</option>
     73     <option value="btnsyle-1" ' . selected('btnsyle-1', $slect_prodct_butondata, false) . '>'.esc_html('Style 1 ', 'fancy-fiter').'</option>
     74     <option value="btnsyle-2" ' . selected('btnsyle-2', $slect_prodct_butondata, false) . '>'.esc_html('Style 2 ', 'fancy-fiter').'</option>
    7875  </select></li>
    7976  <li  class="mtfgfancy_selectsd">
    8077  <label class="fancymetagrid">Button Align</label>
    8178  <select  name="fancy_proMetabtn_align"  class="item_slct" >
    82      <option value="left" select>'.esc_html('Left', 'fancy-filter').'</option>
    83      <option value="center" >'.esc_html('Center', 'fancy-filter').'</option>
    84      <option value="right">'.esc_html('Right', 'fancy-filter').'</option>
     79     <option value="left" ' . selected('left', $fancy_proMetabtn_align, false) . '>'.esc_html('Left', 'fancy-fiter').'</option>
     80     <option value="center" ' . selected('center', $fancy_proMetabtn_align, false) . '>'.esc_html('Center', 'fancy-fiter').'</option>
     81     <option value="right" ' . selected('right', $fancy_proMetabtn_align, false) . '>'.esc_html('Right', 'fancy-fiter').'</option>
    8582  </select></li>
    8683
    8784  </li><li   class="mtfgfancy_selectsd">
    8885  <label class="fancymetagrid">Button Label Color</label>
    89   <input type="text" value="#fff" class="fancyfilter_color" data-alpha-enabled="true">
     86  <input type="text" name="fancy_metabtn_Proclor" value="'.$fancy_metabtn_Proclor.'" class="fancyfilter_color" data-alpha-enabled="true">
    9087  </li>
    9188    <li   class="mtfgfancy_selectsd">
    9289    <label class="fancymetagrid">Button Background</label>
    93     <input type="text" value="rgb(197,64,206)" class="fancyfilter_color" data-alpha-enabled="true" >
     90    <input type="text" name="fancy_Pro_metabtn_ac_bg" value="'.$fancy_Pro_metabtn_ac_bg.'" class="fancyfilter_color" data-alpha-enabled="true" >
    9491    <div><em>Applies only to button styles 3,4,6,8,10,13</em></div>
    9592    </li>
    9693  <li   class="mtfgfancy_selectsd">
    9794  <label class="fancymetagrid">Active Color</label>
    98   <input type="text" value="#81d742" class="fancyfilter_color" data-alpha-enabled="true">
    99   </li>
    100 
    101 
    102 
    103 
    104 
    105 
    106   ';
     95  <input type="text" name="fancy_Pro_metabtn_bg" value="'.$fancy_Pro_metabtn_bg.'" class="fancyfilter_color" data-alpha-enabled="true">
     96  </li>';
    10797}
    10898else{
    10999   
    110     echo "Please create an item by attaching a category first <a href='".admin_url('/')."edit.php?post_type=fancyfilter'>Click here</a>";
     100    echo "Please create an item by attaching a category first <a href='".esc_url(admin_url('/'))."edit.php?post_type=fancyfilter'>Click here</a>";
    111101
    112102}
     
    115105$html .= '</ul>';
    116106
    117 echo $html;
     107 $allowed_html = array(
     108    'ul' => array(
     109        'id'    => array(),
     110        'class'    => array(),
     111        'style'    => array(),
     112
     113    ),
     114    'li' => array(
     115        'id'    => array(),
     116        'class'    => array(),
     117        'style'    => array(),
     118    ),
     119    'label' => array(
     120        'id'    => array(),
     121        'class'    => array(),
     122        'for'    => array(),
     123    ),
     124    'input' => array(
     125        'type'  => array(),
     126        'id'    => array(),
     127        'class'    => array(),
     128        'name'  => array(),
     129        'value' => array(),
     130        'checked'  => array(),
     131     ),
     132    'select' => array(
     133        'class'    => array(),
     134        'id'    => array(),
     135        'name'  => array(),
     136        'multiple'  => array(),
     137
     138     ),
     139        'option'  => array(
     140        'value' => array(),
     141        'class'    => array(),
     142        'id'    => array(),
     143        'selected'  => array(),       
     144        ),
     145        'div'  => array(
     146        'class'    => array(),
     147        'id'    => array(),
     148        'style'    => array(),
     149        ),
     150        'strong'  => array(
     151        'class'    => array(),
     152        'id'    => array(),
     153        ),
     154        'table'  => array(
     155        'class'    => array(),
     156        'id'    => array(),
     157        ),
     158        'tr'  => array(
     159        'class'    => array(),
     160        'id'    => array(),
     161        ),
     162        'tbody'  => array(
     163        'class'    => array(),
     164        'id'    => array(),
     165        ),
     166        'th'  => array(
     167        'class'    => array(),
     168        'id'    => array(),
     169        ),
     170        'td'  => array(
     171        'class'    => array(),
     172        'id'    => array(),
     173        ),
     174        'span' => array(
     175        'id'    => array(),
     176        'class'    => array(),
     177        'style'    => array(),
     178    ),
     179        'em' => array(
     180        'id'    => array(),
     181        'class'    => array(),
     182        'style'    => array(),
     183    ),
     184);
     185
     186
     187
     188echo wp_kses($html,$allowed_html );
    118189
    119190if (!empty($appended_meta_product))
     
    124195        <em><p>To display the frontend, copy the code below and paste it in the desired location</p></em>
    125196        <p class="dynashorcde">
    126         [fancyfilter_product id ="'.esc_attr($post->ID).'" grid_style = "st-free" button="btnsyle-3" col_1="#81d742" col_2="#81d742" align="left" btn_act="#81d742" btnclr="#fff" btnbg="rgb(197,64,206)" layout="col-2"]
    127        (Premium Only)</p></div>';
     197        [fancyfilter_product id ="'.esc_attr($post->ID).'" grid_style ="st-free" button="'.esc_attr($slect_prodct_butondata).'" col_1="'.esc_attr($el_fi_prodct_gridbg).'" col_2="'.esc_attr($el_fi_prodct_gridbg_2).'" align="'.esc_attr($fancy_proMetabtn_align).'" btn_act="'.esc_attr($fancy_Pro_metabtn_bg).'" btnclr="'.esc_attr($fancy_metabtn_Proclor).'" btnbg="'.esc_attr($fancy_Pro_metabtn_ac_bg).'" layout="'.esc_attr($slect_clm_erp_rw).'" animation="'.esc_attr($slect_styleanimationcm).'"]
     198        </p></div>';
    128199
    129200}
  • fancy-fiter/trunk/metaData/class-fancy-dmeolinkdata.php

    r2631339 r3250371  
    5555          add_meta_box(
    5656            'Fancydmeolinkdata',
    57             __( '<span class="dashicons-before dashicons-grid-view"> Fancy Video Link/Shortcode/Raw Html <em>(Premium version)</em></span>', 'textdomain' ),
     57            '<span class="dashicons-before dashicons-grid-view"> Fancy Video Link/Shortcode/Raw Html <em>(Premium version)</em></span>',
    5858            array( $this, 'meta_box_callback' ),
    5959            $s,
     
    8383            case 'textarea':
    8484              $input = sprintf(
    85                 '<textarea style="width: 100%%" id="%s" name="%s" rows="5">%s</textarea>',
     85                '<textarea style="width: 100%%" id="%s" name="%s" rows="5" cols="50">%s</textarea>',
    8686                $field['id'],
    8787                $field['id'],
     
    120120          $output .= $this->format_rows( $label, $input );
    121121        }
    122         echo '<table class="form-table"><tbody>' . $output . '</tbody></table>';
     122
     123 $allowed_html = array(
     124    'textarea' => array(
     125        'id'    => array(),
     126        'class'    => array(),
     127        'rows'    => array(),
     128        'cols'    => array(),
     129        'name'  => array(),
     130        'value' => array(),
     131    ),
     132    'label' => array(
     133        'id'    => array(),
     134        'class'    => array(),
     135        'for'    => array(),
     136    ),
     137    'input' => array(
     138        'type'  => array(),
     139        'id'    => array(),
     140        'class'    => array(),
     141        'name'  => array(),
     142        'value' => array(),
     143        'checked'  => array(),
     144     ),
     145    'select' => array(
     146        'class'    => array(),
     147        'id'    => array(),
     148        'name'  => array(),
     149
     150     ),
     151        'option'  => array(
     152        'value' => array(),
     153        'class'    => array(),
     154        'id'    => array(),
     155        'selected'  => array(),       
     156        ),
     157        'div'  => array(
     158        'class'    => array(),
     159        'id'    => array(),
     160        'style'    => array(),
     161        ),
     162        'strong'  => array(
     163        'class'    => array(),
     164        'id'    => array(),
     165        ),
     166        'table'  => array(
     167        'class'    => array(),
     168        'id'    => array(),
     169        ),
     170        'tr'  => array(
     171        'class'    => array(),
     172        'id'    => array(),
     173        ),
     174        'tbody'  => array(
     175        'class'    => array(),
     176        'id'    => array(),
     177        ),
     178        'th'  => array(
     179        'class'    => array(),
     180        'id'    => array(),
     181        ),
     182        'td'  => array(
     183        'class'    => array(),
     184        'id'    => array(),
     185        ),
     186        'span' => array(
     187        'id'    => array(),
     188        'class'    => array(),
     189        'style'    => array(),
     190    ),
     191);
     192
     193
     194        echo '<table class="form-table"><tbody>' . wp_kses($output ,$allowed_html ) . '</tbody></table>';
     195
    123196      }
    124197
  • fancy-fiter/trunk/metaData/class-fancy_BlogMeatada.php

    r2631339 r3250371  
    5656    {
    5757
     58    $nonce = wp_create_nonce( 'fancyblog-nonce' );
     59    if ( ! wp_verify_nonce( $nonce, 'fancyblog-nonce' ) ) return;
     60
     61
    5862        if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return $post_id;
    5963
    6064        if ($post->post_type == 'morefilter')
    6165        {
    62             if (isset($_POST['facncy_meta_post'])) update_post_meta($post_id, 'facncy_meta_post', sanitize_mime_type($_POST['facncy_meta_post']));
     66            if (isset($_POST['facncy_meta_post'])) update_post_meta($post_id, 'facncy_meta_post', sanitize_mime_type(wp_unslash($_POST['facncy_meta_post'])));
    6367            else delete_post_meta($post_id, 'facncy_meta_post');
    6468
    6569            if (isset($_POST['slect_blg_butondata']))
    66             {update_post_meta($post_id, 'slect_blg_butondata', sanitize_text_field($_POST['slect_blg_butondata']));}else{delete_post_meta($post_id, 'slect_blg_butondata');}
     70            {update_post_meta($post_id, 'slect_blg_butondata', sanitize_text_field(wp_unslash($_POST['slect_blg_butondata'])));
     71            }else{delete_post_meta($post_id, 'slect_blg_butondata');}
    6772            if (isset($_POST['el_fi_blog_gridbg']))
    68             {update_post_meta($post_id, 'el_fi_blog_gridbg', sanitize_text_field($_POST['el_fi_blog_gridbg']));}else{delete_post_meta($post_id, 'el_fi_blog_gridbg');}
     73            {update_post_meta($post_id, 'el_fi_blog_gridbg', sanitize_text_field(wp_unslash($_POST['el_fi_blog_gridbg'])));
     74            }else{delete_post_meta($post_id, 'el_fi_blog_gridbg');}
    6975            if (isset($_POST['el_fi_blog_gridbg_2']))
    70             {update_post_meta($post_id, 'el_fi_blog_gridbg_2', sanitize_text_field($_POST['el_fi_blog_gridbg_2']));}else{delete_post_meta($post_id, 'el_fi_blog_gridbg_2');}
     76            {update_post_meta($post_id, 'el_fi_blog_gridbg_2', sanitize_text_field(wp_unslash($_POST['el_fi_blog_gridbg_2'])));
     77            }else{delete_post_meta($post_id, 'el_fi_blog_gridbg_2');}
    7178            if (isset($_POST['fancy_blogMetabtn_align']))
    72             {update_post_meta($post_id, 'fancy_blogMetabtn_align', sanitize_text_field($_POST['fancy_blogMetabtn_align']));}else{delete_post_meta($post_id, 'fancy_blogMetabtn_align');}
     79            {update_post_meta($post_id, 'fancy_blogMetabtn_align', sanitize_text_field(wp_unslash($_POST['fancy_blogMetabtn_align'])));}else{delete_post_meta($post_id, 'fancy_blogMetabtn_align');}
    7380            if (isset($_POST['fancy_blog_metabtn_bg']))
    74             {update_post_meta($post_id, 'fancy_blog_metabtn_bg', sanitize_text_field($_POST['fancy_blog_metabtn_bg']));}else{delete_post_meta($post_id, 'fancy_blog_metabtn_bg');}
     81            {update_post_meta($post_id, 'fancy_blog_metabtn_bg', sanitize_text_field(wp_unslash($_POST['fancy_blog_metabtn_bg'])));}else{delete_post_meta($post_id, 'fancy_blog_metabtn_bg');}
    7582            if (isset($_POST['fancy_blogmetabtn_ac_bg']))
    76             {update_post_meta($post_id, 'fancy_blogmetabtn_ac_bg', sanitize_text_field($_POST['fancy_blogmetabtn_ac_bg']));}else{delete_post_meta($post_id, 'fancy_blogmetabtn_ac_bg');}
     83            {update_post_meta($post_id, 'fancy_blogmetabtn_ac_bg', sanitize_text_field(wp_unslash($_POST['fancy_blogmetabtn_ac_bg'])));}else{delete_post_meta($post_id, 'fancy_blogmetabtn_ac_bg');}
    7784            if (isset($_POST['fancy_blog_metabtn_clor']))
    78             {update_post_meta($post_id, 'fancy_blog_metabtn_clor', sanitize_text_field($_POST['fancy_blog_metabtn_clor']));}else{delete_post_meta($post_id, 'fancy_blog_metabtn_clor');}
     85            {update_post_meta($post_id, 'fancy_blog_metabtn_clor', sanitize_text_field(wp_unslash($_POST['fancy_blog_metabtn_clor'])));}else{delete_post_meta($post_id, 'fancy_blog_metabtn_clor');}
    7986
    8087            if (isset($_POST['slectblog__styledata']))
    81             {update_post_meta($post_id, 'slectblog__styledata', sanitize_text_field($_POST['slectblog__styledata']));}else{delete_post_meta($post_id, 'slectblog__styledata');}
     88            {update_post_meta($post_id, 'slectblog__styledata', sanitize_text_field(wp_unslash($_POST['slectblog__styledata'])));}else{delete_post_meta($post_id, 'slectblog__styledata');}
    8289            if (isset($_POST['slect_blog_erp_rw']))
    83             {update_post_meta($post_id, 'slect_blog_erp_rw', sanitize_text_field($_POST['slect_blog_erp_rw']));}else{delete_post_meta($post_id, 'slect_blog_erp_rw');}
     90            {update_post_meta($post_id, 'slect_blog_erp_rw', sanitize_text_field(wp_unslash($_POST['slect_blog_erp_rw'])));}else{delete_post_meta($post_id, 'slect_blog_erp_rw');}
    8491            if (isset($_POST['slect_styleanimationblog']))
    85             {update_post_meta($post_id, 'slect_styleanimationblog', sanitize_text_field($_POST['slect_styleanimationblog']));}else{delete_post_meta($post_id, 'slect_styleanimationblog');}
     92            {update_post_meta($post_id, 'slect_styleanimationblog', sanitize_text_field(wp_unslash($_POST['slect_styleanimationblog'])));}else{delete_post_meta($post_id, 'slect_styleanimationblog');}
    8693
    8794            return $post_id;
  • fancy-fiter/trunk/metaData/class-fancy_portfolio_Metada.php

    r2631339 r3250371  
    5858    public function fancyfilter_posttype_save_metas($post_id, $post)
    5959    {
    60 
     60    $nonce = wp_create_nonce( 'fancyportfolios-nonce' );
     61    if ( ! wp_verify_nonce( $nonce, 'fancyportfolios-nonce' ) ) return;
    6162        if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return $post_id;
    6263
    6364        if ($post->post_type == 'morefilter')
    6465        {
    65             if (isset($_POST['facncy_portfolios'])) update_post_meta($post_id, 'facncy_portfolios', sanitize_mime_type($_POST['facncy_portfolios']));
     66            if (isset($_POST['facncy_portfolios'])) update_post_meta($post_id, 'facncy_portfolios', sanitize_mime_type(wp_unslash($_POST['facncy_portfolios'])));
    6667            else delete_post_meta($post_id, 'facncy_portfolios');
    6768            if (isset($_POST['slect_styledata']))
    68             {update_post_meta($post_id, 'slect_styledata', sanitize_text_field($_POST['slect_styledata']));}else{delete_post_meta($post_id, 'slect_styledata');}
     69            {update_post_meta($post_id, 'slect_styledata', sanitize_text_field(wp_unslash($_POST['slect_styledata'])));}else{delete_post_meta($post_id, 'slect_styledata');}
    6970            if (isset($_POST['slect_butondata']))
    70             {update_post_meta($post_id, 'slect_butondata', sanitize_text_field($_POST['slect_butondata']));}else{delete_post_meta($post_id, 'slect_butondata');}
     71            {update_post_meta($post_id, 'slect_butondata', sanitize_text_field(wp_unslash($_POST['slect_butondata'])));}else{delete_post_meta($post_id, 'slect_butondata');}
    7172            if (isset($_POST['el_fi_gridbg']))
    72             {update_post_meta($post_id, 'el_fi_gridbg', sanitize_text_field($_POST['el_fi_gridbg']));}else{delete_post_meta($post_id, 'el_fi_gridbg');}
     73            {update_post_meta($post_id, 'el_fi_gridbg', sanitize_text_field(wp_unslash($_POST['el_fi_gridbg'])));}else{delete_post_meta($post_id, 'el_fi_gridbg');}
    7374            if (isset($_POST['el_fi_gridbg_2']))
    74             {update_post_meta($post_id, 'el_fi_gridbg_2', sanitize_text_field($_POST['el_fi_gridbg_2']));}else{delete_post_meta($post_id, 'el_fi_gridbg_2');}
     75            {update_post_meta($post_id, 'el_fi_gridbg_2', sanitize_text_field(wp_unslash($_POST['el_fi_gridbg_2'])));}else{delete_post_meta($post_id, 'el_fi_gridbg_2');}
    7576            if (isset($_POST['fancyMetabtn_align']))
    76             {update_post_meta($post_id, 'fancyMetabtn_align', sanitize_text_field($_POST['fancyMetabtn_align']));}else{delete_post_meta($post_id, 'fancyMetabtn_align');}
     77            {update_post_meta($post_id, 'fancyMetabtn_align', sanitize_text_field(wp_unslash($_POST['fancyMetabtn_align'])));}else{delete_post_meta($post_id, 'fancyMetabtn_align');}
    7778            if (isset($_POST['fancy_metabtn_bg']))
    78             {update_post_meta($post_id, 'fancy_metabtn_bg', sanitize_text_field($_POST['fancy_metabtn_bg']));}else{delete_post_meta($post_id, 'fancy_metabtn_bg');}
     79            {update_post_meta($post_id, 'fancy_metabtn_bg', sanitize_text_field(wp_unslash($_POST['fancy_metabtn_bg'])));}else{delete_post_meta($post_id, 'fancy_metabtn_bg');}
    7980            if (isset($_POST['fancy_metabtn_ac_bg']))
    80             {update_post_meta($post_id, 'fancy_metabtn_ac_bg', sanitize_text_field($_POST['fancy_metabtn_ac_bg']));}else{delete_post_meta($post_id, 'fancy_metabtn_ac_bg');}
     81            {update_post_meta($post_id, 'fancy_metabtn_ac_bg', sanitize_text_field(wp_unslash($_POST['fancy_metabtn_ac_bg'])));}else{delete_post_meta($post_id, 'fancy_metabtn_ac_bg');}
    8182            if (isset($_POST['fancy_metabtn_clor']))
    82             {update_post_meta($post_id, 'fancy_metabtn_clor', sanitize_text_field($_POST['fancy_metabtn_clor']));}else{delete_post_meta($post_id, 'fancy_metabtn_clor');}
     83            {update_post_meta($post_id, 'fancy_metabtn_clor', sanitize_text_field(wp_unslash($_POST['fancy_metabtn_clor'])));}else{delete_post_meta($post_id, 'fancy_metabtn_clor');}
    8384       
    8485            if (isset($_POST['slect_prot_erp_rw']))
    85             {update_post_meta($post_id, 'slect_prot_erp_rw', sanitize_text_field($_POST['slect_prot_erp_rw']));}else{delete_post_meta($post_id, 'slect_prot_erp_rw');}       
     86            {update_post_meta($post_id, 'slect_prot_erp_rw', sanitize_text_field(wp_unslash($_POST['slect_prot_erp_rw'])));}else{delete_post_meta($post_id, 'slect_prot_erp_rw');}       
    8687            if (isset($_POST['slect_styleanimation']))
    87             {update_post_meta($post_id, 'slect_styleanimation', sanitize_text_field($_POST['slect_styleanimation']));}else{delete_post_meta($post_id, 'slect_styleanimation');}
     88            {update_post_meta($post_id, 'slect_styleanimation', sanitize_text_field(wp_unslash($_POST['slect_styleanimation'])));}else{delete_post_meta($post_id, 'slect_styleanimation');}
    8889            return $post_id;
    8990        }
  • fancy-fiter/trunk/metaData/class-fancy_previewlink.php

    r2631339 r3250371  
    2727         add_meta_box(
    2828           'FancyPreviewURL',
    29            __( '<span class="dashicons-before dashicons-grid-view"> Fany Filter Preview & Download URL <em>(Premium version)</em></span>', 'textdomain' ),
     29           __( '<span class="dashicons-before dashicons-grid-view"> Fany Filter Preview & Download URL <em>(Premium version)</em></span>', 'fancy-fiter' ),
    3030           array( $this, 'meta_box_callback' ),
    3131           $s,
     
    6464         $output .= $this->format_rows( $label, $input );
    6565       }
    66        echo '<table class="form-table"><tbody>' . $output . '</tbody></table>';
     66
     67
     68$allowed_html = array(
     69
     70    'label' => array(
     71        'id'    => array(),
     72        'class'    => array(),
     73        'for'    => array(),
     74    ),
     75    'input' => array(
     76        'type'  => array(),
     77        'id'    => array(),
     78        'class'    => array(),
     79        'name'  => array(),
     80        'value' => array(),
     81        'style' => array(),
     82     ),
     83
     84        'div'  => array(
     85        'class'    => array(),
     86        'id'    => array(),
     87        'style'    => array(),
     88        ),
     89        'strong'  => array(
     90        'class'    => array(),
     91        'id'    => array(),
     92        ),
     93        'table'  => array(
     94        'class'    => array(),
     95        'id'    => array(),
     96        ),
     97        'tr'  => array(
     98        'class'    => array(),
     99        'id'    => array(),
     100        ),
     101        'tbody'  => array(
     102        'class'    => array(),
     103        'id'    => array(),
     104        ),
     105        'th'  => array(
     106        'class'    => array(),
     107        'id'    => array(),
     108        ),
     109        'td'  => array(
     110        'class'    => array(),
     111        'id'    => array(),
     112        ),
     113        'span' => array(
     114        'id'    => array(),
     115        'class'    => array(),
     116        'style'    => array(),
     117    ),
     118);
     119
     120
     121        echo '<table class="form-table"><tbody>' . wp_kses($output ,$allowed_html ) . '</tbody></table>';
     122
    67123
    68124
  • fancy-fiter/trunk/metaData/class-fancy_productMetadata.php

    r2631339 r3250371  
    3434    {
    3535
    36         add_meta_box('fancy_filter_type', 'Product(Premium Only)', array(
     36        add_meta_box('fancy_filter_type', 'Product', array(
    3737            $this,
    3838            'fancyfilter_posttype_select_metas'
     
    5757    public function fancyfilter_posttype_save_metas($post_id, $post)
    5858    {
    59 
     59    $nonce = wp_create_nonce( 'fancyproduct-nonce' );
     60    if ( ! wp_verify_nonce( $nonce, 'fancyproduct-nonce' ) ) return;
    6061        if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return $post_id;
    6162
    6263        if ($post->post_type == 'morefilter')
    6364        {
    64             if (isset($_POST['facncy_meta_product'])) update_post_meta($post_id, 'facncy_meta_product', sanitize_mime_type($_POST['facncy_meta_product']));
     65            if (isset($_POST['facncy_meta_product'])) update_post_meta($post_id, 'facncy_meta_product', sanitize_mime_type(wp_unslash($_POST['facncy_meta_product'])));
    6566            else delete_post_meta($post_id, 'facncy_meta_product');
    6667            if (isset($_POST['slect_stylepro_data']))
    67             {update_post_meta($post_id, 'slect_stylepro_data', sanitize_text_field($_POST['slect_stylepro_data']));}else{delete_post_meta($post_id, 'slect_stylepro_data');}
     68            {update_post_meta($post_id, 'slect_stylepro_data', sanitize_text_field(wp_unslash($_POST['slect_stylepro_data'])));}else{delete_post_meta($post_id, 'slect_stylepro_data');}
    6869            if (isset($_POST['slect_prodct_butondata']))
    69             {update_post_meta($post_id, 'slect_prodct_butondata', sanitize_text_field($_POST['slect_prodct_butondata']));}else{delete_post_meta($post_id, 'slect_prodct_butondata');}
     70            {update_post_meta($post_id, 'slect_prodct_butondata', sanitize_text_field(wp_unslash($_POST['slect_prodct_butondata'])));}else{delete_post_meta($post_id, 'slect_prodct_butondata');}
    7071            if (isset($_POST['el_fi_prodct_gridbg']))
    71             {update_post_meta($post_id, 'el_fi_prodct_gridbg', sanitize_text_field($_POST['el_fi_prodct_gridbg']));}else{delete_post_meta($post_id, 'el_fi_prodct_gridbg');}
     72            {update_post_meta($post_id, 'el_fi_prodct_gridbg', sanitize_text_field(wp_unslash($_POST['el_fi_prodct_gridbg'])));}else{delete_post_meta($post_id, 'el_fi_prodct_gridbg');}
    7273            if (isset($_POST['el_fi_prodct_gridbg_2']))
    73             {update_post_meta($post_id, 'el_fi_prodct_gridbg_2', sanitize_text_field($_POST['el_fi_prodct_gridbg_2']));}else{delete_post_meta($post_id, 'el_fi_prodct_gridbg_2');}
     74            {update_post_meta($post_id, 'el_fi_prodct_gridbg_2', sanitize_text_field(wp_unslash($_POST['el_fi_prodct_gridbg_2'])));}else{delete_post_meta($post_id, 'el_fi_prodct_gridbg_2');}
    7475            if (isset($_POST['fancy_proMetabtn_align']))
    75             {update_post_meta($post_id, 'fancy_proMetabtn_align', sanitize_text_field($_POST['fancy_proMetabtn_align']));}else{delete_post_meta($post_id, 'fancy_proMetabtn_align');}
     76            {update_post_meta($post_id, 'fancy_proMetabtn_align', sanitize_text_field(wp_unslash($_POST['fancy_proMetabtn_align'])));}else{delete_post_meta($post_id, 'fancy_proMetabtn_align');}
    7677            if (isset($_POST['fancy_Pro_metabtn_bg']))
    77             {update_post_meta($post_id, 'fancy_Pro_metabtn_bg', sanitize_text_field($_POST['fancy_Pro_metabtn_bg']));}else{delete_post_meta($post_id, 'fancy_Pro_metabtn_bg');}
     78            {update_post_meta($post_id, 'fancy_Pro_metabtn_bg', sanitize_text_field(wp_unslash($_POST['fancy_Pro_metabtn_bg'])));}else{delete_post_meta($post_id, 'fancy_Pro_metabtn_bg');}
    7879            if (isset($_POST['fancy_Pro_metabtn_ac_bg']))
    79             {update_post_meta($post_id, 'fancy_Pro_metabtn_ac_bg', sanitize_text_field($_POST['fancy_Pro_metabtn_ac_bg']));}else{delete_post_meta($post_id, 'fancy_Pro_metabtn_ac_bg');}
     80            {update_post_meta($post_id, 'fancy_Pro_metabtn_ac_bg', sanitize_text_field(wp_unslash($_POST['fancy_Pro_metabtn_ac_bg'])));}else{delete_post_meta($post_id, 'fancy_Pro_metabtn_ac_bg');}
    8081
    8182            if (isset($_POST['fancy_metabtn_Proclor']))
    82             {update_post_meta($post_id, 'fancy_metabtn_Proclor', sanitize_text_field($_POST['fancy_metabtn_Proclor']));}else{delete_post_meta($post_id, 'fancy_metabtn_Proclor');}
     83            {update_post_meta($post_id, 'fancy_metabtn_Proclor', sanitize_text_field(wp_unslash($_POST['fancy_metabtn_Proclor'])));}else{delete_post_meta($post_id, 'fancy_metabtn_Proclor');}
    8384            if (isset($_POST['slect_clm_erp_rw']))
    84             {update_post_meta($post_id, 'slect_clm_erp_rw', sanitize_text_field($_POST['slect_clm_erp_rw']));}else{delete_post_meta($post_id, 'slect_clm_erp_rw');}
     85            {update_post_meta($post_id, 'slect_clm_erp_rw', sanitize_text_field(wp_unslash($_POST['slect_clm_erp_rw'])));}else{delete_post_meta($post_id, 'slect_clm_erp_rw');}
    8586
    8687       
  • fancy-fiter/trunk/partials/FancyButtnSetting.php

    r3145687 r3250371  
    11<div class="fancyfilter-accordion active">
    2    <div class="fancyfilter-accordion_tab"><?php echo esc_html__('Filter Button Settings','fancy-filter') ?>
     2   <div class="fancyfilter-accordion_tab"><?php echo esc_html__('Filter Button Settings','fancy-fiter') ?>
    33   </div>
    44   <div class="fancyfilter-accordion_content">
     
    77         <ul class="fancydescrip">
    88            <li>
    9          <p class="item_title"><?php echo esc_html__('Button Style  ','fancy-filter') ?></p>
     9         <p class="item_title"><?php echo esc_html__('Button Style  ','fancy-fiter') ?></p>
    1010         <?php
    1111            $fancyfilter_pro_btn_style = isset($options['fancyfilter_pro_btn_style']) ? $options['fancyfilter_pro_btn_style'] : 'btnsyle-1';
    1212                ?>
    1313         <select  name="fancyfilter_options[fancyfilter_pro_btn_style]" id="id_application_method">
    14             <option value="btnsyle-no" <?php echo esc_attr($fancyfilter_pro_btn_style) == 'btnsyle-no' ? 'selected' : '' ?>><?php esc_html_e('None', 'fancy-filter'); ?></option>
    15             <option value="btnsyle-1" <?php echo esc_attr($fancyfilter_pro_btn_style) == 'btnsyle-1' ? 'selected' : '' ?>><?php esc_html_e('Style 1', 'fancy-filter'); ?></option>
    16             <option value="btnsyle-2" <?php echo esc_attr($fancyfilter_pro_btn_style) == 'btnsyle-2' ? 'selected' : '' ?>><?php esc_html_e('Style 2', 'fancy-filter'); ?></option>
    17             <option class="btnpto" value="btnsyle-3"><?php esc_html_e('Style 3 (PRO)', 'fancy-filter'); ?></option>
    18             <option class="btnpto"  value="btnsyle-4"><?php esc_html_e('Style 4 (PRO)', 'fancy-filter'); ?></option>
    19             <option class="btnpto"  value="btnsyle-5"><?php esc_html_e('Style 5 (PRO)', 'fancy-filter'); ?></option>
    20             <option class="btnpto"  value="btnsyle-6"><?php esc_html_e('Style 6 (PRO)', 'fancy-filter'); ?></option>
    21             <option class="btnpto"  value="btnsyle-7"><?php esc_html_e('Style 7 (PRO)', 'fancy-filter'); ?></option>
    22             <option class="btnpto" value="btnsyle-8"><?php esc_html_e('Style 8 (PRO)', 'fancy-filter'); ?></option>
    23             <option  class="btnpto" value="btnsyle-9"><?php esc_html_e('Style 9 (PRO)', 'fancy-filter'); ?></option>
     14            <option value="btnsyle-no" <?php echo esc_attr($fancyfilter_pro_btn_style) == 'btnsyle-no' ? 'selected' : '' ?>><?php esc_html_e('None', 'fancy-fiter'); ?></option>
     15            <option value="btnsyle-1" <?php echo esc_attr($fancyfilter_pro_btn_style) == 'btnsyle-1' ? 'selected' : '' ?>><?php esc_html_e('Style 1', 'fancy-fiter'); ?></option>
     16            <option value="btnsyle-2" <?php echo esc_attr($fancyfilter_pro_btn_style) == 'btnsyle-2' ? 'selected' : '' ?>><?php esc_html_e('Style 2', 'fancy-fiter'); ?></option>
     17            <option class="btnpto" value="btnsyle-3"><?php esc_html_e('Style 3 (PRO)', 'fancy-fiter'); ?></option>
     18            <option class="btnpto"  value="btnsyle-4"><?php esc_html_e('Style 4 (PRO)', 'fancy-fiter'); ?></option>
     19            <option class="btnpto"  value="btnsyle-5"><?php esc_html_e('Style 5 (PRO)', 'fancy-fiter'); ?></option>
     20            <option class="btnpto"  value="btnsyle-6"><?php esc_html_e('Style 6 (PRO)', 'fancy-fiter'); ?></option>
     21            <option class="btnpto"  value="btnsyle-7"><?php esc_html_e('Style 7 (PRO)', 'fancy-fiter'); ?></option>
     22            <option class="btnpto" value="btnsyle-8"><?php esc_html_e('Style 8 (PRO)', 'fancy-fiter'); ?></option>
     23            <option  class="btnpto" value="btnsyle-9"><?php esc_html_e('Style 9 (PRO)', 'fancy-fiter'); ?></option>
    2424            <   
    25             <option  class="btnpto" value="btnsyle-10"><?php esc_html_e('Style 10 (PRO)', 'fancy-filter'); ?></option>
    26             <option  class="btnpto" value="btnsyle-11"><?php esc_html_e('Style 11 (PRO)', 'fancy-filter'); ?></option>
    27             <option  class="btnpto" value="btnsyle-12"><?php esc_html_e('Style 12 (PRO)', 'fancy-filter'); ?></option>
    28             <option  class="btnpto" value="btnsyle-13"><?php esc_html_e('Style 13 (PRO)', 'fancy-filter'); ?></option>
     25            <option  class="btnpto" value="btnsyle-10"><?php esc_html_e('Style 10 (PRO)', 'fancy-fiter'); ?></option>
     26            <option  class="btnpto" value="btnsyle-11"><?php esc_html_e('Style 11 (PRO)', 'fancy-fiter'); ?></option>
     27            <option  class="btnpto" value="btnsyle-12"><?php esc_html_e('Style 12 (PRO)', 'fancy-fiter'); ?></option>
     28            <option  class="btnpto" value="btnsyle-13"><?php esc_html_e('Style 13 (PRO)', 'fancy-fiter'); ?></option>
    2929         </select>
    3030         <span class="efli-pro">
    3131         <span id="tr-btnsyle-1" class="method_options_tn">
    32          <img src="<?php echo FANCYFILTER_URL.'/assets/img/gif/btn-1-min.gif' ?>" alt="btn-demo">
     32         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/btn-1-min.gif' ?>" alt="btn-demo">
    3333         </span>
    3434         <span id="tr-btnsyle-2" class="method_options_tn">
    35          <img src="<?php echo FANCYFILTER_URL.'/assets/img/gif/btn-2.gif' ?>" alt="btn-demo">
     35         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/btn-2.gif' ?>" alt="btn-demo">
    3636         </span>
    3737         <span id="tr-btnsyle-3" class="method_options_tn">
    38          <img src="<?php echo FANCYFILTER_URL.'/assets/img/gif/btn-3-min.gif' ?>" alt="btn-demo">
     38         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/btn-3-min.gif' ?>" alt="btn-demo">
    3939         </span>
    4040         <span id="tr-btnsyle-4" class="method_options_tn">
    41          <img src="<?php echo FANCYFILTER_URL.'/assets/img/gif/btn-4-min.gif' ?>" alt="btn-demo">
     41         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/btn-4-min.gif' ?>" alt="btn-demo">
    4242         </span>
    4343         <span id="tr-btnsyle-5" class="method_options_tn">
    44          <img src="<?php echo FANCYFILTER_URL.'/assets/img/gif/btn-5-min.gif' ?>" alt="btn-demo">
     44         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/btn-5-min.gif' ?>" alt="btn-demo">
    4545         </span>
    4646         <span id="tr-btnsyle-6" class="method_options_tn">
    47          <img src="<?php echo FANCYFILTER_URL.'/assets/img/gif/btn-6-min.gif' ?>" alt="btn-demo">
     47         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/btn-6-min.gif' ?>" alt="btn-demo">
    4848         </span>
    4949         <span id="tr-btnsyle-7" class="method_options_tn">
    50          <img src="<?php echo FANCYFILTER_URL.'/assets/img/gif/btn-7-min.gif' ?>" alt="btn-demo">
     50         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/btn-7-min.gif' ?>" alt="btn-demo">
    5151         </span>
    5252         <span id="tr-btnsyle-8" class="method_options_tn">
    53          <img src="<?php echo FANCYFILTER_URL.'/assets/img/gif/btn-8-min.gif' ?>" alt="btn-demo">
     53         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/btn-8-min.gif' ?>" alt="btn-demo">
    5454         </span>
    5555         <span id="tr-btnsyle-9" class="method_options_tn">
    56          <img src="<?php echo FANCYFILTER_URL.'/assets/img/gif/btn-9-min.gif' ?>" alt="btn-demo">
     56         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/btn-9-min.gif' ?>" alt="btn-demo">
    5757         </span>
    5858         <span id="tr-btnsyle-10" class="method_options_tn">
    59          <img src="<?php echo FANCYFILTER_URL.'/assets/img/gif/btn-10-min.gif' ?>" alt="btn-demo">
     59         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/btn-10-min.gif' ?>" alt="btn-demo">
    6060         </span>
    6161         <span id="tr-btnsyle-11" class="method_options_tn">
    62          <img src="<?php echo FANCYFILTER_URL.'/assets/img/gif/btn-11-min.gif' ?>" alt="btn-demo">
     62         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/btn-11-min.gif' ?>" alt="btn-demo">
    6363         </span>
    6464         <span id="tr-btnsyle-12" class="method_options_tn">
    65          <img src="<?php echo FANCYFILTER_URL.'/assets/img/gif/btn-102.gif' ?>" alt="btn-demo">
     65         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/btn-102.gif' ?>" alt="btn-demo">
    6666         </span>
    6767         <span id="tr-btnsyle-13" class="method_options_tn">
    68          <img src="<?php echo FANCYFILTER_URL.'/assets/img/gif/btn-13.gif' ?>" alt="btn-demo">
     68         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/btn-13.gif' ?>" alt="btn-demo">
    6969         </span>
    7070         </span>
    7171
    7272      </li><li>
    73          <p class="item_title bbfgfgfg"><?php echo esc_html__('Change \'All\' Text','fancy-filter') ?></p>
     73         <p class="item_title bbfgfgfg"><?php echo esc_html__('Change \'All\' Text','fancy-fiter') ?></p>
    7474         <?php
    7575            $el_all_text = isset($options['el_all_text']) ? $options['el_all_text'] : 'All';
    76             printf('<input type="text" name="fancyfilter_options[el_all_text]" value="%s" placeholder="All" >', $el_all_text);
     76            printf('<input type="text" name="fancyfilter_options[el_all_text]" value="%s" placeholder="All" >', esc_attr($el_all_text));
    7777           
    7878                 ?>
     
    8282         <ul class="fancydescrip">
    8383            <li>
    84          <p class="item_title"><?php echo esc_html__('Button Align','fancy-filter') ?></p>
     84         <p class="item_title"><?php echo esc_html__('Button Align','fancy-fiter') ?></p>
    8585         <?php
    8686            $fancyfilter_pro_btn_alighmnt = isset($options['fancyfilter_pro_btn_alighmnt']) ? $options['fancyfilter_pro_btn_alighmnt'] : 'center';
    8787                ?>
    8888         <select class="item_slct" name="fancyfilter_options[fancyfilter_pro_btn_alighmnt]">
    89             <option value="left" <?php echo esc_attr($fancyfilter_pro_btn_style) == 'btn_left' ? 'selected' : '' ?>><?php esc_html_e('Left', 'fancy-filter'); ?></option>
    90             <option value="center" <?php echo esc_attr($fancyfilter_pro_btn_style) == 'btn_center' ? 'selected' : '' ?>><?php esc_html_e('Center', 'fancy-filter'); ?></option>
    91             <option value="right" <?php echo esc_attr($fancyfilter_pro_btn_style) == 'btn_right' ? 'selected' : '' ?>><?php esc_html_e('Right', 'fancy-filter'); ?></option>
     89            <option value="left" <?php echo esc_attr($fancyfilter_pro_btn_style) == 'btn_left' ? 'selected' : '' ?>><?php esc_html_e('Left', 'fancy-fiter'); ?></option>
     90            <option value="center" <?php echo esc_attr($fancyfilter_pro_btn_style) == 'btn_center' ? 'selected' : '' ?>><?php esc_html_e('Center', 'fancy-fiter'); ?></option>
     91            <option value="right" <?php echo esc_attr($fancyfilter_pro_btn_style) == 'btn_right' ? 'selected' : '' ?>><?php esc_html_e('Right', 'fancy-fiter'); ?></option>
    9292         </select>
    9393         </li><li>
    94          <p class="item_title bbfgfgfg"><?php echo esc_html__('Remove \'ALL\' Button','fancy-filter') ?></p>
     94         <p class="item_title bbfgfgfg"><?php echo esc_html__('Remove \'ALL\' Button','fancy-fiter') ?></p>
    9595         <?php
    9696         $fabcy_remove_al_btn = isset($options['fabcy_remove_al_btn']) && $options['fabcy_remove_al_btn'] === 'fabcy_remove_al_btn' ? 'checked' : ' ';
    9797
    98          printf('<input type="checkbox" class="fancyfil_apple-switch" id="fancyfilter_pro_feature" name="fancyfilter_options[fabcy_remove_al_btn]" value="fabcy_remove_al_btn" %s>', $fabcy_remove_al_btn);
     98         printf('<input type="checkbox" class="fancyfil_apple-switch" id="fancyfilter_pro_feature" name="fancyfilter_options[fabcy_remove_al_btn]" value="fabcy_remove_al_btn" %s>', esc_attr($fabcy_remove_al_btn));
    9999
    100100         ?>
     
    104104         <ul class="fancydescrip">
    105105            <li>
    106          <p class="item_title"><?php echo esc_html__('Button Label Color','fancy-filter') ?></p>
     106         <p class="item_title"><?php echo esc_html__('Button Label Color','fancy-fiter') ?></p>
    107107         <?php
    108108            $el_btntxt_color = isset($options['el_btntxt_color']) ? $options['el_btntxt_color'] : '#000';
    109             printf('<input type="text" name="fancyfilter_options[el_btntxt_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', $el_btntxt_color);?>
     109            printf('<input type="text" name="fancyfilter_options[el_btntxt_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', esc_attr($el_btntxt_color));?>
    110110            </li><li>
    111            <p class="item_title"><?php echo esc_html__('Active Color','fancy-filter') ?></p>
     111           <p class="item_title"><?php echo esc_html__('Active Color','fancy-fiter') ?></p>
    112112           <?php
    113113            $el_btnact_color = isset($options['el_btnact_color']) ? $options['el_btnact_color'] : '#ccc';
    114             printf('<input type="text" name="fancyfilter_options[el_btnact_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', $el_btnact_color);
     114            printf('<input type="text" name="fancyfilter_options[el_btnact_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', esc_attr($el_btnact_color));
    115115             
    116116         ?>
     
    120120         <ul class="fancydescrip">
    121121            <li>
    122          <p class="item_title"><?php echo esc_html__('Button Font Size(Px)','fancy-filter') ?></p>
     122         <p class="item_title"><?php echo esc_html__('Button Font Size(Px)','fancy-fiter') ?></p>
    123123         <?php
    124124            $el_btn_f_size = isset($options['el_btn_f_size']) ? $options['el_btn_f_size'] : '20';
    125             printf('<input type="number" name="fancyfilter_options[el_btn_f_size]" value="%s" >', $el_btn_f_size);
     125            printf('<input type="number" name="fancyfilter_options[el_btn_f_size]" value="%s" >', esc_attr($el_btn_f_size));
    126126           
    127127            ?>
    128128         </li><li>
    129             <p class="item_title bbfgfgfg"><?php echo esc_html__('Button Font Weight','fancy-filter') ?></p>
     129            <p class="item_title bbfgfgfg"><?php echo esc_html__('Button Font Weight','fancy-fiter') ?></p>
    130130            <?php
    131131            $el_btn_f_weight = isset($options['el_btn_f_weight']) ? $options['el_btn_f_weight'] : '600';
    132             printf('<input type="number" name="fancyfilter_options[el_btn_f_weight]" value="%s" >', $el_btn_f_weight);
     132            printf('<input type="number" name="fancyfilter_options[el_btn_f_weight]" value="%s" >', esc_attr($el_btn_f_weight));
    133133
    134134            ?>
  • fancy-fiter/trunk/partials/FancyExtra.php

    r3145687 r3250371  
    11   <div class="fancyfilter-accordion active">
    22      <div class="fancyfilter-accordion_tab">
    3          <?php echo esc_html__('Pagination  & View More Button','fancy-filter') ?>
     3         <?php echo esc_html__('Pagination  & View More Button','fancy-fiter') ?>
    44      </div>
    55      <div class="fancyfilter-accordion_content">
    66         <div class="fancyfilter-accordion_item">
    77
    8             <p class="item_title"><?php echo esc_html__('Show Pagination?','fancy-filter') ?></p>
     8            <p class="item_title"><?php echo esc_html__('Show Pagination?','fancy-fiter') ?></p>
    99            <?php
    1010               $fancyfilter_pro_display_pgination = isset($options['fancyfilter_pro_display_pgination']) && $options['fancyfilter_pro_display_pgination'] === 'fancyfilter_pro_display_pgination' ? 'checked' : '';
    1111               
    12                      printf('<input type="checkbox" class="fancyfil_apple-switch" id="fancyfilter_pro_pagination" name="fancyfilter_options[fancyfilter_pro_display_pgination]" value="fancyfilter_pro_display_pgination" %s>', $fancyfilter_pro_display_pgination);
     12                     printf('<input type="checkbox" class="fancyfil_apple-switch" id="fancyfilter_pro_pagination" name="fancyfilter_options[fancyfilter_pro_display_pgination]" value="fancyfilter_pro_display_pgination" %s>', esc_attr($fancyfilter_pro_display_pgination));
    1313                     
    1414                ?>
     
    1818               <ul class="fancydescrip">
    1919                  <li>
    20                <p class="item_title"><?php echo esc_html__('Color of numbers','fancy-filter') ?></p>
     20               <p class="item_title"><?php echo esc_html__('Color of numbers','fancy-fiter') ?></p>
    2121               <?php
    2222                  $el_pagination_color = isset($options['el_pagination_color']) ? $options['el_pagination_color'] : '#000';
    23                   printf('<input type="text" name="fancyfilter_options[el_pagination_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', $el_pagination_color);
     23                  printf('<input type="text" name="fancyfilter_options[el_pagination_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', esc_attr($el_pagination_color));
    2424                     
    2525                  ?>
    2626               </li><li>
    27                   <p class="item_title bbfgfgfg"><?php echo esc_html__('Background of numbers','fancy-filter') ?></p>
     27                  <p class="item_title bbfgfgfg"><?php echo esc_html__('Background of numbers','fancy-fiter') ?></p>
    2828               <?php
    2929               $el_pagination_bg_color = isset($options['el_pagination_bg_color']) ? $options['el_pagination_bg_color'] : '#ccc';
    30                printf('<input type="text" name="fancyfilter_options[el_pagination_bg_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', $el_pagination_bg_color);
     30               printf('<input type="text" name="fancyfilter_options[el_pagination_bg_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', esc_attr($el_pagination_bg_color));
    3131
    3232               ?>
     
    3636               <ul class="fancydescrip">
    3737                  <li>
    38                <p class="item_title"><?php echo esc_html__('Active Color of number','fancy-filter') ?></p>
     38               <p class="item_title"><?php echo esc_html__('Active Color of number','fancy-fiter') ?></p>
    3939               <?php
    4040                  $el_pagination_ac_color = isset($options['el_pagination_ac_color']) ? $options['el_pagination_ac_color'] : '#00A796';
    41                   printf('<input type="text" name="fancyfilter_options[el_pagination_ac_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', $el_pagination_ac_color);
     41                  printf('<input type="text" name="fancyfilter_options[el_pagination_ac_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', esc_attr($el_pagination_ac_color));
    4242                     
    4343                  ?>
    4444               </li><li>
    45                   <p class="item_title bbfgfgfg"><?php echo esc_html__('Align Pagination','fancy-filter') ?></p>
     45                  <p class="item_title bbfgfgfg"><?php echo esc_html__('Align Pagination','fancy-fiter') ?></p>
    4646                  <?php
    4747                     $fancyfilter_pro_pg_align = isset($options['fancyfilter_pro_pg_align']) ? $options['fancyfilter_pro_pg_align'] : 'center';
    4848                     ?>
    4949                  <select  name="fancyfilter_options[fancyfilter_pro_pg_align]">
    50                      <option value="left" <?php echo esc_attr($fancyfilter_pro_pg_align) == 'left' ? 'selected' : '' ?>><?php esc_html_e('Left', 'fancy-filter'); ?>
     50                     <option value="left" <?php echo esc_attr($fancyfilter_pro_pg_align) == 'left' ? 'selected' : '' ?>><?php esc_html_e('Left', 'fancy-fiter'); ?>
    5151                     </option>
    52                      <option value="center" <?php echo esc_attr($fancyfilter_pro_pg_align) == 'center' ? 'selected' : '' ?>><?php esc_html_e('Center', 'fancy-filter'); ?>
     52                     <option value="center" <?php echo esc_attr($fancyfilter_pro_pg_align) == 'center' ? 'selected' : '' ?>><?php esc_html_e('Center', 'fancy-fiter'); ?>
    5353                     </option>
    54                      <option value="right" <?php echo esc_attr($fancyfilter_pro_pg_align) == 'right' ? 'selected' : '' ?>><?php esc_html_e('Right', 'fancy-filter'); ?>
     54                     <option value="right" <?php echo esc_attr($fancyfilter_pro_pg_align) == 'right' ? 'selected' : '' ?>><?php esc_html_e('Right', 'fancy-fiter'); ?>
    5555                     </option>
    5656                  </select>
     
    5858            </div>
    5959            <div class="fancyfilter-accordion_item">
    60                <p class="item_title"><?php echo esc_html__('Space(Px) from top','fancy-filter') ?></p>
     60               <p class="item_title"><?php echo esc_html__('Space(Px) from top','fancy-fiter') ?></p>
    6161               <?php
    6262                  $el_pagination_top_space = isset($options['el_pagination_top_space']) ? $options['el_pagination_top_space'] : '30';
    63                   printf('<input type="number" min="10" max="1000" step="10" name="fancyfilter_options[el_pagination_top_space]" value="%s"  >', $el_pagination_top_space);
     63                  printf('<input type="number" min="10" max="1000" step="10" name="fancyfilter_options[el_pagination_top_space]" value="%s"  >', esc_attr($el_pagination_top_space));
    6464                     
    6565                  ?>
    66                <em><?php echo esc_html__('min:10px, max:1000px, Step: 10px','fancy-filter') ?></em>
     66               <em><?php echo esc_html__('min:10px, max:1000px, Step: 10px','fancy-fiter') ?></em>
    6767            </div>
    6868         </div>
    6969         <div class="fancyfilter-accordion_item">
    70             <p class="item_title"><?php echo esc_html__('Display Read More Button?','fancy-filter') ?></p>
     70            <p class="item_title"><?php echo esc_html__('Display Read More Button?','fancy-fiter') ?></p>
    7171            <?php
    7272               $fancyfilter_pro_display_readmore = isset($options['fancyfilter_pro_display_readmore']) && $options['fancyfilter_pro_display_readmore'] === 'fancyfilter_pro_display_readmore' ? 'checked' : '';
    73                printf('<input type="checkbox" class="fancyfil_apple-switch" id="fancyfilter_pro_readmore" name="fancyfilter_options[fancyfilter_pro_display_readmore]" value="fancyfilter_pro_display_readmore" %s>', $fancyfilter_pro_display_readmore);
     73               printf('<input type="checkbox" class="fancyfil_apple-switch" id="fancyfilter_pro_readmore" name="fancyfilter_options[fancyfilter_pro_display_readmore]" value="fancyfilter_pro_display_readmore" %s>', esc_attr($fancyfilter_pro_display_readmore));
    7474                     
    7575                ?>
     
    7979               <ul class="fancydescrip">
    8080                  <li>
    81                <p class="item_title"><?php echo esc_html__('Button Text','fancy-filter') ?></p>
     81               <p class="item_title"><?php echo esc_html__('Button Text','fancy-fiter') ?></p>
    8282               <?php
    8383                  $el_readmore_txt = isset($options['el_readmore_txt']) ? $options['el_readmore_txt'] : 'View More';
    84                   printf('<input type="text" name="fancyfilter_options[el_readmore_txt]" value="%s" placeholder="View More">', $el_readmore_txt);
     84                  printf('<input type="text" name="fancyfilter_options[el_readmore_txt]" value="%s" placeholder="View More">', esc_attr($el_readmore_txt));
    8585                     
    8686                  ?>
    8787               </li><li>
    88             <p class="item_title bbfgfgfg"><?php echo esc_html__('Button Link','fancy-filter') ?></p>
     88            <p class="item_title bbfgfgfg"><?php echo esc_html__('Button Link','fancy-fiter') ?></p>
    8989            <?php
    9090            $el_readmore_url = isset($options['el_readmore_url']) ? $options['el_readmore_url'] : 'htts://';
    91             printf('<input type="text" name="fancyfilter_options[el_readmore_url]" value="%s" placeholder="htts://">', $el_readmore_url);
     91            printf('<input type="text" name="fancyfilter_options[el_readmore_url]" value="%s" placeholder="htts://">', esc_attr($el_readmore_url));
    9292
    9393            ?>
     
    9797               <ul class="fancydescrip">
    9898                  <li>
    99                <p class="item_title"><?php echo esc_html__('Text Color','fancy-filter') ?></p>
     99               <p class="item_title"><?php echo esc_html__('Text Color','fancy-fiter') ?></p>
    100100               <?php
    101101                  $el_readmore_color = isset($options['el_readmore_color']) ? $options['el_readmore_color'] : '#fff';
    102                   printf('<input type="text" name="fancyfilter_options[el_readmore_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', $el_readmore_color);
     102                  printf('<input type="text" name="fancyfilter_options[el_readmore_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', esc_attr($el_readmore_color));
    103103                     
    104104                  ?>
    105105               </li><li>
    106                <p class="item_title bbfgfgfg"><?php echo esc_html__('Button Background','fancy-filter') ?></p>
     106               <p class="item_title bbfgfgfg"><?php echo esc_html__('Button Background','fancy-fiter') ?></p>
    107107               <?php
    108108               $el_readmore_bgcolor = isset($options['el_readmore_bgcolor']) ? $options['el_readmore_bgcolor'] : '#000';
    109                printf('<input type="text" name="fancyfilter_options[el_readmore_bgcolor]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', $el_readmore_bgcolor);
     109               printf('<input type="text" name="fancyfilter_options[el_readmore_bgcolor]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', esc_attr($el_readmore_bgcolor));
    110110
    111111               ?>
     
    115115            <div class="fancyfilter-accordion_item">
    116116               <ul class="fancydescrip"><li>
    117                   <p class="item_title bbfgfgfg"><?php echo esc_html__('Alignment','fancy-filter') ?></p>
     117                  <p class="item_title bbfgfgfg"><?php echo esc_html__('Alignment','fancy-fiter') ?></p>
    118118                  <?php
    119119                     $fancyfilter_pro_readmore_align = isset($options['fancyfilter_pro_readmore_align']) ? $options['fancyfilter_pro_readmore_align'] : 'center';
    120120                     ?>
    121121                  <select  name="fancyfilter_options[fancyfilter_pro_readmore_align]">
    122                      <option value="left" <?php echo esc_attr($fancyfilter_pro_readmore_align) == 'left' ? 'selected' : '' ?>><?php esc_html_e('Left', 'fancy-filter'); ?>
     122                     <option value="left" <?php echo esc_attr($fancyfilter_pro_readmore_align) == 'left' ? 'selected' : '' ?>><?php esc_html_e('Left', 'fancy-fiter'); ?>
    123123                     </option>
    124                      <option value="center" <?php echo esc_attr($fancyfilter_pro_readmore_align) == 'center' ? 'selected' : '' ?>><?php esc_html_e('Center', 'fancy-filter'); ?>
     124                     <option value="center" <?php echo esc_attr($fancyfilter_pro_readmore_align) == 'center' ? 'selected' : '' ?>><?php esc_html_e('Center', 'fancy-fiter'); ?>
    125125                     </option>
    126                      <option value="right" <?php echo esc_attr($fancyfilter_pro_readmore_align) == 'right' ? 'selected' : '' ?>><?php esc_html_e('Right', 'fancy-filter'); ?>
     126                     <option value="right" <?php echo esc_attr($fancyfilter_pro_readmore_align) == 'right' ? 'selected' : '' ?>><?php esc_html_e('Right', 'fancy-fiter'); ?>
    127127                     </option>
    128128                  </select>
     
    135135   </div>
    136136</div>
    137       <button type="submit" class="fancyfilter_sbt_btn"><?php echo esc_html__('Save Changes','fancy-filter') ?><span class="fancy_sdhi"></span></button>
     137      <button type="submit" class="fancyfilter_sbt_btn"><?php echo esc_html__('Save Changes','fancy-fiter') ?><span class="fancy_sdhi"></span></button>
    138138      <span class="fancy_djkfhjhj"></span>
  • fancy-fiter/trunk/partials/FancyItemWrapper.php

    r3145687 r3250371  
    22<div class="fancyfilter-accordion active">
    33   <div class="fancyfilter-accordion_tab active">
    4       <?php echo esc_html__('Items Settings','fancy-filter') ?>
     4      <?php echo esc_html__('Items Settings','fancy-fiter') ?>
    55   </div>
    66   <div class="fancyfilter-accordion_content">
     
    99         <ul class="fancydescrip_custom">
    1010            <li class="fancydescrip_custom_l1">
    11          <p class="item_title"><label for="slct_portfoli_types">      <?php echo esc_html__('Choose Portfolio Categories: ','fancy-filter') ?></label></p>
     11         <p class="item_title"><label for="slct_portfoli_types">      <?php echo esc_html__('Choose Portfolio Categories: ','fancy-fiter') ?></label></p>
    1212      <?php
    1313
     
    2828
    2929                 $selected = (is_array($portfolioselect2_style) && in_array($el_category->term_id, $portfolioselect2_style)) ? ' selected="selected"' : '';
    30                  echo '<option value="' . $el_category->term_id . '" ' . $selected . '>' .$el_category->name. '</option>';
     30                 echo '<option value="' . esc_attr($el_category->term_id) . '" ' . esc_attr($selected) . '>' .esc_html($el_category->name). '</option>';
    3131             }
    3232             echo '</select>';
     
    3939            <li class="fancydescrip_custom_l2">
    4040            <span>[fancyfilter_portfolio]</span>
    41             <a href="<?php echo admin_url('/').'edit.php?post_type=morefilter' ?>"><?php echo esc_html__('Create More Shortcode','fancy-filter') ?></a>
     41            <a href="<?php echo esc_url(admin_url('/')).'edit.php?post_type=morefilter' ?>"><?php echo esc_html__('Create More Shortcode','fancy-fiter') ?></a>
    4242
    4343            </li>
     
    5151            <ul class="fancydescrip_custom">
    5252               <li class="fancydescrip_custom_l1">
    53             <p class="item_title"><label for="slct_post_types"><?php echo esc_html__('Choose Post Categories: ','fancy-filter') ?></label></p>
     53            <p class="item_title"><label for="slct_post_types"><?php echo esc_html__('Choose Post Categories: ','fancy-fiter') ?></label></p>
    5454         <?php
    5555
     
    7575             }else{
    7676
    77              echo "Please create an item by attaching a category first <a href='".admin_url('/')."edit.php?post_type=fancyfilter'>Click here</a>";
     77             echo "Please create an item by attaching a category first <a href='".esc_url(admin_url('/'))."edit.php?post_type=fancyfilter'>Click here</a>";
    7878
    7979             }
    80                echo $html;
     80
     81
     82   $allowed_html = array(
     83
     84    'label' => array(
     85        'id'    => array(),
     86        'class'    => array(),
     87        'for'    => array(),
     88    ),
     89    'input' => array(
     90        'type'  => array(),
     91        'id'    => array(),
     92        'class'    => array(),
     93        'name'  => array(),
     94        'value' => array(),
     95        'checked'  => array(),
     96     ),
     97    'select' => array(
     98        'class'    => array(),
     99        'id'    => array(),
     100        'name'  => array(),
     101        'multiple'  => array(),
     102
     103     ),
     104        'option'  => array(
     105        'value' => array(),
     106        'class'    => array(),
     107        'id'    => array(),
     108        'selected'  => array(),       
     109        ),
     110        'div'  => array(
     111        'class'    => array(),
     112        'id'    => array(),
     113        'style'    => array(),
     114        ),
     115        'strong'  => array(
     116        'class'    => array(),
     117        'id'    => array(),
     118        ),
     119        'span' => array(
     120        'id'    => array(),
     121        'class'    => array(),
     122        'style'    => array(),
     123    ),
     124);
     125
     126               echo wp_kses($html ,$allowed_html );
    81127
    82128               ?>
     
    85131            <li class="fancydescrip_custom_l2">
    86132            <span>[fancyfilter_blog]</span>
    87             <a href="<?php echo admin_url('/').'edit.php?post_type=morefilter' ?>"><?php echo esc_html__('Create More Shortcode','fancy-filter') ?></a>
     133            <a href="<?php echo esc_url(admin_url('/')).'edit.php?post_type=morefilter' ?>"><?php echo esc_html__('Create More Shortcode','fancy-fiter') ?></a>
    88134            </li>
    89135         <?php } ?>
     
    100146                  <li class="fancydescrip_custom_l1">
    101147               <p class="item_title">
    102                   <label for="yoo_slct_post_types"><?php echo esc_html__('Choose Product Categories: ','fancy-filter') ?></label></p>
     148                  <label for="yoo_slct_post_types"><?php echo esc_html__('Choose Product Categories: ','fancy-fiter') ?></label></p>
    103149            <?php
    104150
     
    124170                }else{
    125171
    126                 echo "Please create an item by attaching a category first <a href='".admin_url('/')."edit.php?post_type=fancyfilter'>Click here</a>";
     172                echo "Please create an item by attaching a category first <a href='".esc_url(admin_url('/'))."edit.php?post_type=fancyfilter'>Click here</a>";
    127173
    128174                }
    129                   echo $html;
    130 
     175
     176
     177   $allowed_html = array(
     178
     179    'label' => array(
     180        'id'    => array(),
     181        'class'    => array(),
     182        'for'    => array(),
     183    ),
     184    'input' => array(
     185        'type'  => array(),
     186        'id'    => array(),
     187        'class'    => array(),
     188        'name'  => array(),
     189        'value' => array(),
     190        'checked'  => array(),
     191     ),
     192    'select' => array(
     193        'class'    => array(),
     194        'id'    => array(),
     195        'name'  => array(),
     196        'multiple'  => array(),
     197     ),
     198        'option'  => array(
     199        'value' => array(),
     200        'class'    => array(),
     201        'id'    => array(),
     202        'selected'  => array(),       
     203        ),
     204        'div'  => array(
     205        'class'    => array(),
     206        'id'    => array(),
     207        'style'    => array(),
     208        ),
     209        'strong'  => array(
     210        'class'    => array(),
     211        'id'    => array(),
     212        ),
     213        'span' => array(
     214        'id'    => array(),
     215        'class'    => array(),
     216        'style'    => array(),
     217    ),
     218);
     219
     220               echo wp_kses($html ,$allowed_html );
    131221                  ?>
    132222               </li>
     
    135225               <li class="fancydescrip_custom_l2">
    136226               <span>[fancyfilter_product]</span>
    137                <a href="<?php echo admin_url('/').'edit.php?post_type=morefilter' ?>"><?php echo esc_html__('Create More Shortcode','fancy-filter') ?></a>
     227               <a href="<?php echo esc_url(admin_url('/')).'edit.php?post_type=morefilter' ?>"><?php echo esc_html__('Create More Shortcode','fancy-fiter') ?></a>
    138228               </li>
    139229               <?php } ?>
     
    145235            <ul class="fancydescrip">
    146236               <li>
    147          <p class="item_title"><?php echo esc_html__('Grid Style ','fancy-filter') ?></p>
     237         <p class="item_title"><?php echo esc_html__('Grid Style ','fancy-fiter') ?></p>
    148238         <?php
    149239            $options = get_option('fancyfilter_options');
     
    153243         echo '<select class="item_slct"  id="id_style_method" name="fancyfilter_options[fancyfilter_pro_main_style]">
    154244
    155             <option value="st-free" ' . selected('st-free', $fancyfilter_pro_main_style, false) . '>'.esc_html('Free Style', 'fancy-filter').'</option>
    156 
    157             <option value="portfolio_wrap_one" class="prodataver">'.esc_html('Style One (Pro)', 'fancy-filter').'</option>
    158             <option value="portfolio_wrap_two" class="prodataver">'.esc_html('Style Two (Pro)', 'fancy-filter').'</option>
    159             <option value="portfolio_wrap_three" class="prodataver">'.esc_html('Style Three (Pro)', 'fancy-filter').'</option>
    160             <option value="portfolio_wrap_four" class="prodataver">'.esc_html('Style Four (Pro)', 'fancy-filter').'</option>
    161             <option value="portfolio_wrap_five" class="prodataver">'.esc_html('Style Five (Pro)', 'fancy-filter').'</option>
    162             <option value="portfolio_wrap_six" class="prodataver">'.esc_html('Style Six (Pro)', 'fancy-filter').'</option>
    163             <option value="portfolio_wrap_seven" class="prodataver">'.esc_html('Style Seven (Pro)', 'fancy-filter').'</option>
    164             <option value="portfolio_wrap_eight" class="prodataver">'.esc_html('Style Eight (Pro)', 'fancy-filter').'</option>
    165             <option value="portfolio_wrap_nine" class="prodataver">'.esc_html('Style Nine (Pro)', 'fancy-filter').'</option>
    166             <option value="portfolio_wrap_ten" class="prodataver">'.esc_html('Style Ten (Pro)', 'fancy-filter').'</option>
     245            <option value="st-free" ' . selected('st-free', $fancyfilter_pro_main_style, false) . '>'.esc_html('Free Style', 'fancy-fiter').'</option>
     246
     247            <option value="portfolio_wrap_one" class="prodataver">'.esc_html('Style One (Pro)', 'fancy-fiter').'</option>
     248            <option value="portfolio_wrap_two" class="prodataver">'.esc_html('Style Two (Pro)', 'fancy-fiter').'</option>
     249            <option value="portfolio_wrap_three" class="prodataver">'.esc_html('Style Three (Pro)', 'fancy-fiter').'</option>
     250            <option value="portfolio_wrap_four" class="prodataver">'.esc_html('Style Four (Pro)', 'fancy-fiter').'</option>
     251            <option value="portfolio_wrap_five" class="prodataver">'.esc_html('Style Five (Pro)', 'fancy-fiter').'</option>
     252            <option value="portfolio_wrap_six" class="prodataver">'.esc_html('Style Six (Pro)', 'fancy-fiter').'</option>
     253            <option value="portfolio_wrap_seven" class="prodataver">'.esc_html('Style Seven (Pro)', 'fancy-fiter').'</option>
     254            <option value="portfolio_wrap_eight" class="prodataver">'.esc_html('Style Eight (Pro)', 'fancy-fiter').'</option>
     255            <option value="portfolio_wrap_nine" class="prodataver">'.esc_html('Style Nine (Pro)', 'fancy-fiter').'</option>
     256            <option value="portfolio_wrap_ten" class="prodataver">'.esc_html('Style Ten (Pro)', 'fancy-fiter').'</option>
    167257         </select>'; ?>
    168          <p class="filtersesdb"><?php echo esc_html__('Choose Item Design','fancy-filter') ?></p>
     258         <p class="filtersesdb"><?php echo esc_html__('Choose Item Design','fancy-fiter') ?></p>
    169259      </li><li>
    170          <p class="item_title"><?php echo esc_html__('Free Style- Animation','fancy-filter') ?></p>
     260         <p class="item_title"><?php echo esc_html__('Free Style- Animation','fancy-fiter') ?></p>
    171261         <?php
    172262            $fancyfilter_pro_style_animation = isset($options['fancyfilter_pro_style_animation']) ? $options['fancyfilter_pro_style_animation'] : 'fancyfilter_pro-free-item--eff1';
    173263                ?>
    174264         <select class="item_slct" name="fancyfilter_options[fancyfilter_pro_style_animation]" id="id_free_method" >
    175             <option value="fancyfilter_pro-free-item--eff1" <?php echo esc_attr($fancyfilter_pro_style_animation) == 'fancyfilter_pro-free-item--eff1' ? 'selected' : '' ?>><?php esc_html_e('Effect 1', 'fancy-filter'); ?></option>
    176             <option value="fancyfilter_pro-free-item--eff2" <?php echo esc_attr($fancyfilter_pro_style_animation) == 'fancyfilter_pro-free-item--eff2' ? 'selected' : '' ?>><?php esc_html_e('Effect 2', 'fancy-filter'); ?></option>
    177             <option value="fancyfilter_pro-free-item--eff3" <?php echo esc_attr($fancyfilter_pro_style_animation) == 'fancyfilter_pro-free-item--eff3' ? 'selected' : '' ?>><?php esc_html_e('Effect 3', 'fancy-filter'); ?></option>
    178             <option value="fancyfilter_pro-free-item--eff4" <?php echo esc_attr($fancyfilter_pro_style_animation) == 'fancyfilter_pro-free-item--eff4' ? 'selected' : '' ?>><?php esc_html_e('Effect 4', 'fancy-filter'); ?></option>
    179             <option value="fancyfilter_pro-free-item--eff5" <?php echo esc_attr($fancyfilter_pro_style_animation) == 'fancyfilter_pro-free-item--eff5' ? 'selected' : '' ?>><?php esc_html_e('Effect 5', 'fancy-filter'); ?></option>
     265            <option value="fancyfilter_pro-free-item--eff1" <?php echo esc_attr($fancyfilter_pro_style_animation) == 'fancyfilter_pro-free-item--eff1' ? 'selected' : '' ?>><?php esc_html_e('Effect 1', 'fancy-fiter'); ?></option>
     266            <option value="fancyfilter_pro-free-item--eff2" <?php echo esc_attr($fancyfilter_pro_style_animation) == 'fancyfilter_pro-free-item--eff2' ? 'selected' : '' ?>><?php esc_html_e('Effect 2', 'fancy-fiter'); ?></option>
     267            <option value="fancyfilter_pro-free-item--eff3" <?php echo esc_attr($fancyfilter_pro_style_animation) == 'fancyfilter_pro-free-item--eff3' ? 'selected' : '' ?>><?php esc_html_e('Effect 3', 'fancy-fiter'); ?></option>
     268            <option value="fancyfilter_pro-free-item--eff4" <?php echo esc_attr($fancyfilter_pro_style_animation) == 'fancyfilter_pro-free-item--eff4' ? 'selected' : '' ?>><?php esc_html_e('Effect 4', 'fancy-fiter'); ?></option>
     269            <option value="fancyfilter_pro-free-item--eff5" <?php echo esc_attr($fancyfilter_pro_style_animation) == 'fancyfilter_pro-free-item--eff5' ? 'selected' : '' ?>><?php esc_html_e('Effect 5', 'fancy-fiter'); ?></option>
    180270         </select>
    181          <p class="filtersesdb"><?php echo esc_html__('Choose Animation for Free Style','fancy-filter') ?></p>
     271         <p class="filtersesdb"><?php echo esc_html__('Choose Animation for Free Style','fancy-fiter') ?></p>
    182272      </li></ul>
    183273
     
    185275         <div id="method_free" class="ferjfdjfh">
    186276            <p id="tr-fancyfilter_pro-free-item--eff1" class="method_options">
    187                <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/ef-1.gif' ?> " alt="style-2-demo">
     277               <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/ef-1.gif' ?> " alt="style-2-demo">
    188278            </p>
    189279            <p id="tr-fancyfilter_pro-free-item--eff2" class="method_options">
    190                <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/ef-2.gif' ?> " alt="style-2-demo">
     280               <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/ef-2.gif' ?> " alt="style-2-demo">
    191281            </p>
    192282            <p id="tr-fancyfilter_pro-free-item--eff3" class="method_options">
    193                <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/ef-3.gif' ?> " alt="style-2-demo">
     283               <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/ef-3.gif' ?> " alt="style-2-demo">
    194284            </p>
    195285            <p id="tr-fancyfilter_pro-free-item--eff4" class="method_options">
    196                <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/ef-4.gif' ?> " alt="style-2-demo">
     286               <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/ef-4.gif' ?> " alt="style-2-demo">
    197287            </p>
    198288            <p id="tr-fancyfilter_pro-free-item--eff5" class="method_options">
    199                <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/ef-5.gif' ?> " alt="style-2-demo">
     289               <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/ef-5.gif' ?> " alt="style-2-demo">
    200290            </p>
    201291         </div>
     
    203293      <div id="method_free">
    204294         <p id="tr-portfolio_wrap_one" class="method_options">
    205             <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/2-min.gif' ?> " alt="style-2-demo">
     295            <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/2-min.gif' ?> " alt="style-2-demo">
    206296         </p>
    207297         <p id="tr-portfolio_wrap_two" class="method_options">
    208             <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/3-min.gif' ?> " alt="style-2-demo">
     298            <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/3-min.gif' ?> " alt="style-2-demo">
    209299         </p>
    210300         <p id="tr-portfolio_wrap_three" class="method_options">
    211             <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/4-min.gif' ?> " alt="style-2-demo">
     301            <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/4-min.gif' ?> " alt="style-2-demo">
    212302         </p>
    213303         <p id="tr-portfolio_wrap_four" class="method_options">
    214             <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/5-min.gif' ?> " alt="style-2-demo">
     304            <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/5-min.gif' ?> " alt="style-2-demo">
    215305         </p>
    216306         <p id="tr-portfolio_wrap_five" class="method_options">
    217             <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/6-min.gif' ?> " alt="style-2-demo">
     307            <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/6-min.gif' ?> " alt="style-2-demo">
    218308         </p>
    219309         <p id="tr-portfolio_wrap_six" class="method_options">
    220             <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/7-min.gif' ?> " alt="style-2-demo">
     310            <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/7-min.gif' ?> " alt="style-2-demo">
    221311         </p>
    222312         <p id="tr-portfolio_wrap_seven" class="method_options">
    223             <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/8-min.gif' ?> " alt="style-2-demo">
     313            <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/8-min.gif' ?> " alt="style-2-demo">
    224314         </p>
    225315         <p id="tr-portfolio_wrap_eight" class="method_options">
    226             <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/9-min.gif' ?> " alt="style-2-demo">
     316            <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/9-min.gif' ?> " alt="style-2-demo">
    227317         </p>
    228318         <p id="tr-portfolio_wrap_nine" class="method_options">
    229             <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/10-min.gif' ?> " alt="style-2-demo">
     319            <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/10-min.gif' ?> " alt="style-2-demo">
    230320         </p>
    231321         <p id="tr-portfolio_wrap_ten" class="method_options">
    232             <img class="efdemo-img" src=" <?php echo FANCYFILTER_URL.'/assets/img/gif/11-min.gif' ?> " alt="style-2-demo">
     322            <img class="efdemo-img" src=" <?php echo esc_url(FANCYFILTER_URL).'/assets/img/gif/11-min.gif' ?> " alt="style-2-demo">
    233323         </p>
    234324      </div>
     
    237327         <ul class="fancydescrip">
    238328         <li>
    239          <span class="item_title"><?php echo esc_html__('Posts Per Page','fancy-filter') ?></span>
     329         <span class="item_title"><?php echo esc_html__('Posts Per Page','fancy-fiter') ?></span>
    240330         <?php
    241331            $fancyfilter_pro_per_page = isset($options['fancyfilter_pro_per_page']) ? $options['fancyfilter_pro_per_page'] : '-1';
    242332                ?>
    243          <input type="text" name="fancyfilter_options[fancyfilter_pro_per_page]"   value="<?php echo esc_attr($fancyfilter_pro_per_page); ?>" placeholder="-1"><p class="filtersesdb"><?php echo esc_html__('input item Per page, for All, write: -1','fancy-filter') ?></p>
     333         <input type="text" name="fancyfilter_options[fancyfilter_pro_per_page]"   value="<?php echo esc_attr($fancyfilter_pro_per_page); ?>" placeholder="-1"><p class="filtersesdb"><?php echo esc_html__('input item Per page, for All, write: -1','fancy-fiter') ?></p>
    244334         </li><li>
    245          <span class="item_title bbfgfgfg"><?php echo esc_html__('Order By','fancy-filter') ?></span>
     335         <span class="item_title bbfgfgfg"><?php echo esc_html__('Order By','fancy-fiter') ?></span>
    246336         <?php
    247337            $fancyfilter_pro_order_by = isset($options['fancyfilter_pro_order_by']) ? $options['fancyfilter_pro_order_by'] : 'none';
    248338                ?>
    249339         <select class="item_slct" name="fancyfilter_options[fancyfilter_pro_order_by]">
    250             <option value="id" <?php echo esc_attr($fancyfilter_pro_order_by) == 'id' ? 'selected' : '' ?>><?php esc_html_e('Post ID', 'fancy-filter'); ?></option>
    251             <option value="title" <?php echo esc_attr($fancyfilter_pro_order_by) == 'title' ? 'selected' : '' ?>><?php esc_html_e('Title', 'fancy-filter'); ?></option>
    252             <option value="date" <?php echo esc_attr($fancyfilter_pro_order_by) == 'date' ? 'selected' : '' ?>><?php esc_html_e('Date', 'fancy-filter'); ?></option>
    253             <option value="menu_order" <?php echo esc_attr($fancyfilter_pro_order_by) == 'menu_order' ? 'selected' : '' ?>><?php esc_html_e('Menu Order', 'fancy-filter'); ?></option>
    254             <option value="rand" <?php echo esc_attr($fancyfilter_pro_order_by) == 'rand' ? 'selected' : '' ?>><?php esc_html_e('Random', 'fancy-filter'); ?></option>
     340            <option value="id" <?php echo esc_attr($fancyfilter_pro_order_by) == 'id' ? 'selected' : '' ?>><?php esc_html_e('Post ID', 'fancy-fiter'); ?></option>
     341            <option value="title" <?php echo esc_attr($fancyfilter_pro_order_by) == 'title' ? 'selected' : '' ?>><?php esc_html_e('Title', 'fancy-fiter'); ?></option>
     342            <option value="date" <?php echo esc_attr($fancyfilter_pro_order_by) == 'date' ? 'selected' : '' ?>><?php esc_html_e('Date', 'fancy-fiter'); ?></option>
     343            <option value="menu_order" <?php echo esc_attr($fancyfilter_pro_order_by) == 'menu_order' ? 'selected' : '' ?>><?php esc_html_e('Menu Order', 'fancy-fiter'); ?></option>
     344            <option value="rand" <?php echo esc_attr($fancyfilter_pro_order_by) == 'rand' ? 'selected' : '' ?>><?php esc_html_e('Random', 'fancy-fiter'); ?></option>
    255345         </select>
    256          <p class="filtersesdb"><?php echo esc_html__('Sort retrieved posts by parameter,default: date. ','fancy-filter') ?><a href="https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters"><?php echo esc_html__('See Orderby Parameters','fancy-filter') ?></a></p>
     346         <p class="filtersesdb"><?php echo esc_html__('Sort retrieved posts by parameter,default: date. ','fancy-fiter') ?><a href="https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters"><?php echo esc_html__('See Orderby Parameters','fancy-fiter') ?></a></p>
    257347      </li>
    258348      </ul>
    259349      </div>
    260350      <div class="fancyfilter-accordion_item">
    261          <p class="item_title"><?php echo esc_html__('Column Per Row','fancy-filter') ?></p>
     351         <p class="item_title"><?php echo esc_html__('Column Per Row','fancy-fiter') ?></p>
    262352         <?php
    263353            $fancyfilter_pro_col_by = isset($options['fancyfilter_pro_col_by']) ? $options['fancyfilter_pro_col_by'] : 'none';
    264354            ?>
    265355         <select class="item_slct" id="clmn_per_row" name="fancyfilter_options[fancyfilter_pro_col_by]">
    266             <option value="col-1" <?php echo esc_attr($fancyfilter_pro_col_by) == 'col-1' ? 'selected' : '' ?>><?php esc_html_e('Column 2', 'fancy-filter'); ?></option>
    267             <option value="col-2" <?php echo esc_attr($fancyfilter_pro_col_by) == 'col-2' ? 'selected' : '' ?>><?php esc_html_e('Column 3', 'fancy-filter'); ?></option>
    268             <option value="col-3" <?php echo esc_attr($fancyfilter_pro_col_by) == 'col-3' ? 'selected' : '' ?>><?php esc_html_e('Column 4', 'fancy-filter'); ?></option>
     356            <option value="col-1" <?php echo esc_attr($fancyfilter_pro_col_by) == 'col-1' ? 'selected' : '' ?>><?php esc_html_e('Column 2', 'fancy-fiter'); ?></option>
     357            <option value="col-2" <?php echo esc_attr($fancyfilter_pro_col_by) == 'col-2' ? 'selected' : '' ?>><?php esc_html_e('Column 3', 'fancy-fiter'); ?></option>
     358            <option value="col-3" <?php echo esc_attr($fancyfilter_pro_col_by) == 'col-3' ? 'selected' : '' ?>><?php esc_html_e('Column 4', 'fancy-fiter'); ?></option>
    269359         </select>
    270360         <span  id="tr-col-1"  class="cled">
    271          <img src="<?php echo FANCYFILTER_URL.'/assets/img/2cl-min.png' ?>" alt="2col">
     361         <img src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/2cl-min.png' ?>" alt="2col">
    272362         </span>
    273          <img id="tr-col-2" class="cled"  src="<?php echo FANCYFILTER_URL.'/assets/img/3cl-min.png' ?>" alt="2col">
     363         <img id="tr-col-2" class="cled"  src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/3cl-min.png' ?>" alt="2col">
    274364         <span  id="tr-col-3"  class="cled">
    275          <img  src="<?php echo FANCYFILTER_URL.'/assets/img/4cl-min.png' ?>" alt="2col">
     365         <img  src="<?php echo esc_url(FANCYFILTER_URL).'/assets/img/4cl-min.png' ?>" alt="2col">
    276366         </span>
    277367      </div>
     
    279369         <ul class="fancydescrip">
    280370            <li>
    281          <p class="item_title"><?php echo esc_html__('Hide Category?','fancy-filter') ?></p>
     371         <p class="item_title"><?php echo esc_html__('Hide Category?','fancy-fiter') ?></p>
    282372         <?php
    283373            $fancyfilter_pro_hide_cat = isset($options['fancyfilter_pro_hide_cat']) && $options['fancyfilter_pro_hide_cat'] === 'fancyfilter_pro_hide_cat' ? 'checked' : '';
    284374           
    285                   printf('<input type="checkbox" class="fancyfil_apple-switch" id="fancyfilter_pro_hide_cat" name="fancyfilter_options[fancyfilter_pro_hide_cat]" value="fancyfilter_pro_hide_cat" %s>', $fancyfilter_pro_hide_cat);
     375                  printf('<input type="checkbox" class="fancyfil_apple-switch" id="fancyfilter_pro_hide_cat" name="fancyfilter_options[fancyfilter_pro_hide_cat]" value="fancyfilter_pro_hide_cat" %s>', esc_attr($fancyfilter_pro_hide_cat));
    286376                 
    287377                      ?>
    288                       <p class="filtersesdb"><?php echo esc_html__('Click the Switcher for remove Category text from the item','fancy-filter') ?></p>
     378                      <p class="filtersesdb"><?php echo esc_html__('Click the Switcher for remove Category text from the item','fancy-fiter') ?></p>
    289379                   </li><li>
    290             <p class="item_title bbfgfgfg"><?php echo esc_html__('Show Full Title?','fancy-filter') ?></p>
     380            <p class="item_title bbfgfgfg"><?php echo esc_html__('Show Full Title?','fancy-fiter') ?></p>
    291381            <?php
    292382            $show_fancyfilter_pro_title = isset($options['show_fancyfilter_pro_title']) && $options['show_fancyfilter_pro_title'] === 'show_fancyfilter_pro_title' ? 'checked' : '';
    293383
    294             printf('<input type="checkbox" class="fancyfil_apple-switch" id="show_fancyfilter_pro_title" name="fancyfilter_options[show_fancyfilter_pro_title]" value="show_fancyfilter_pro_title" %s>', $show_fancyfilter_pro_title);
     384            printf('<input type="checkbox" class="fancyfil_apple-switch" id="show_fancyfilter_pro_title" name="fancyfilter_options[show_fancyfilter_pro_title]" value="show_fancyfilter_pro_title" %s>', esc_attr($show_fancyfilter_pro_title));
    295385
    296386            ?>
    297             <p class="filtersesdb"><?php echo esc_html__('Click the Switcher for Display Full Titile of the item','fancy-filter') ?></p>
     387            <p class="filtersesdb"><?php echo esc_html__('Click the Switcher for Display Full Titile of the item','fancy-fiter') ?></p>
    298388            </li>
    299389            </ul>
     
    302392         <ul class="fancydescrip">
    303393            <li>
    304          <p class="item_title"><?php echo esc_html__('Item background Color','fancy-filter') ?></p>
     394         <p class="item_title"><?php echo esc_html__('Item background Color','fancy-fiter') ?></p>
    305395         <?php
    306396            $el_item_bg_color = isset($options['el_item_bg_color']) ? $options['el_item_bg_color'] : '#e91e63';
    307             printf('<input type="text" name="fancyfilter_options[el_item_bg_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', $el_item_bg_color); ?>
    308             <p class="filtersesdb"><?php echo esc_html__('Choose the Item Warpper background color','fancy-filter') ?></p>
     397            printf('<input type="text" name="fancyfilter_options[el_item_bg_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', esc_attr($el_item_bg_color)); ?>
     398            <p class="filtersesdb"><?php echo esc_html__('Choose the Item Warpper background color','fancy-fiter') ?></p>
    309399               </li></ul>
    310400      </div>
    311401      <div class="fancyfilter-accordion_item">
    312          <p class="item_title"><?php echo esc_html__('Title Color','fancy-filter') ?></p>
     402         <p class="item_title"><?php echo esc_html__('Title Color','fancy-fiter') ?></p>
    313403         <?php
    314404            $el_title_color = isset($options['el_title_color']) ? $options['el_title_color'] : '#ccc';
    315             printf('<input type="text" name="fancyfilter_options[el_title_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', $el_title_color);
     405            printf('<input type="text" name="fancyfilter_options[el_title_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', esc_attr($el_title_color));
    316406           
    317407                 ?>
     
    321411         <ul class="fancydescrip">
    322412            <li>
    323          <p class="item_title"><?php echo esc_html__('Font Size(px) for Title','fancy-filter') ?> </p>
     413         <p class="item_title"><?php echo esc_html__('Font Size(px) for Title','fancy-fiter') ?> </p>
    324414         <?php
    325415            $el_ti_font = isset($options['el_ti_font']) ? $options['el_ti_font'] : '20';
    326             printf('<input type="number" name="fancyfilter_options[el_ti_font]" value="%s" >', $el_ti_font);
     416            printf('<input type="number" name="fancyfilter_options[el_ti_font]" value="%s" >', esc_attr($el_ti_font));
    327417           
    328418           
    329419            ?>
    330420         </li><li>
    331             <p class="item_title bbfgfgfg"><?php echo esc_html__('Font Weight for Title','fancy-filter') ?></p>
     421            <p class="item_title bbfgfgfg"><?php echo esc_html__('Font Weight for Title','fancy-fiter') ?></p>
    332422            <?php
    333423               $el_ti_font_w = isset($options['el_ti_font_w']) ? $options['el_ti_font_w'] : '600';
    334                printf('<input type="number" name="fancyfilter_options[el_ti_font_w]" value="%s" >', $el_ti_font_w);
     424               printf('<input type="number" name="fancyfilter_options[el_ti_font_w]" value="%s" >',esc_attr($el_ti_font_w));
    335425                         
    336426                ?> 
     
    340430         <ul class="fancydescrip">
    341431            <li>
    342          <p class="item_title"><?php echo esc_html__('Category Color','fancy-filter') ?></p>
     432         <p class="item_title"><?php echo esc_html__('Category Color','fancy-fiter') ?></p>
    343433         <?php
    344434            $el_cat_color = isset($options['el_cat_color']) ? $options['el_cat_color'] : '#ccc';
    345             printf('<input type="text" name="fancyfilter_options[el_cat_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', $el_cat_color);
     435            printf('<input type="text" name="fancyfilter_options[el_cat_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', esc_attr($el_cat_color));
    346436           
    347437                 ?>
  • fancy-fiter/trunk/partials/FancyLinkPartial.php

    r3145687 r3250371  
    11      <div class="fancyfilter-accordion active">
    22         <div class="fancyfilter-accordion_tab">
    3             <?php echo esc_html__('Icon Settings','fancy-filter') ?>
     3            <?php echo esc_html__('Icon Settings','fancy-fiter') ?>
    44         </div>
    55         <div class="fancyfilter-accordion_content">
     
    77               <ul class="fancydescrip">
    88                  <li>
    9                <p class="item_title"><?php echo esc_html__('Icon Color','fancy-filter') ?></p>
     9               <p class="item_title"><?php echo esc_html__('Icon Color','fancy-fiter') ?></p>
    1010               <?php
    1111               $el_zoom_color = isset($options['el_zoom_color']) ? $options['el_zoom_color'] : '#4cd48a';
    12                printf('<input type="text" name="fancyfilter_options[el_zoom_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', $el_zoom_color);
     12               printf('<input type="text" name="fancyfilter_options[el_zoom_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', esc_attr($el_zoom_color));
    1313
    1414               ?>
    1515            </li><li>
    16                <p class="item_title"><?php echo esc_html__('Icon Background','fancy-filter') ?></p>
     16               <p class="item_title"><?php echo esc_html__('Icon Background','fancy-fiter') ?></p>
    1717               <?php
    1818               $el_zoom_bgcolor = isset($options['el_zoom_bgcolor']) ? $options['el_zoom_bgcolor'] : '#fff';
    19                printf('<input type="text" name="fancyfilter_options[el_zoom_bgcolor]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', $el_zoom_bgcolor);
     19               printf('<input type="text" name="fancyfilter_options[el_zoom_bgcolor]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', esc_attr($el_zoom_bgcolor));
    2020
    2121               ?>
     
    2525               <ul class="fancydescrip">
    2626                  <li>
    27                <p class="item_title"><?php echo esc_html__('Icon hover Color','fancy-filter') ?></p>
     27               <p class="item_title"><?php echo esc_html__('Icon hover Color','fancy-fiter') ?></p>
    2828               <?php
    2929               $el_link_color = isset($options['el_link_color']) ? $options['el_link_color'] : '#000';
    30                printf('<input type="text" name="fancyfilter_options[el_link_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', $el_link_color);
     30               printf('<input type="text" name="fancyfilter_options[el_link_color]" value="%s" class="fancyfilter_color" data-alpha-enabled="true">', esc_attr($el_link_color));
    3131
    3232               ?>
    3333            </li><li>
    34                <p class="item_title"><?php echo esc_html__('Icon hover Background','fancy-filter') ?></p>
     34               <p class="item_title"><?php echo esc_html__('Icon hover Background','fancy-fiter') ?></p>
    3535               <?php
    3636               $el_link_bgcolor = isset($options['el_link_bgcolor']) ? $options['el_link_bgcolor'] : '#fff';
    37                printf('<input type="text" name="fancyfilter_options[el_link_bgcolor]" value="%s" class="fancyfilter_color" data-alpha-enabled="true" >', $el_link_bgcolor);
     37               printf('<input type="text" name="fancyfilter_options[el_link_bgcolor]" value="%s" class="fancyfilter_color" data-alpha-enabled="true" >', esc_attr($el_link_bgcolor));
    3838
    3939               ?>
  • fancy-fiter/trunk/uninstall.php

    r3145687 r3250371  
    2121 *
    2222 * @link       https://sharabindu.com/
    23  * @since      2.0.1
     23 * @since      2.0.2
    2424 *
    2525 * @package    fancyfilter_Masonry_Addon
Note: See TracChangeset for help on using the changeset viewer.