<?php
defined('ABSPATH') or die("No script kiddies please!");
global $post;
$post_id = $post->ID;
$egpr_custom_settings = get_post_meta($post_id, 'egpr_custom_settings', true);
//$this->displayArr($egpr_custom_settings );
$enable_custom = (isset($egpr_custom_settings['custom_enable']) && $egpr_custom_settings['custom_enable'] == "true") ? "true" : "false";
?>
<div class="egpr_customoptions_section-wrapper">
    <div class="egpr-type-field">
        <label for="egpr_meta_custom_enable">
            <h4><?php _e('Enable Custom Options', 'everest-google-places-reviews'); ?></h4>
        </label>
        <label class="egpr-switch">
            <input type="checkbox" id="egpr_meta_custom_enable" name="egpr_custom_settings[custom_enable]"  value="true" <?php checked($enable_custom, 'true'); ?>/>
            <div class="egpr-slider round"></div>
        </label>
        <div class="egpr-tooltip-description">
            <div class="egpr-description">
                <?php _e('Enable this option in order to customize various review options.', 'everest-google-places-reviews'); ?>
            </div>
        </div>
    </div>
    <div class="egpr-show-custom-options" <?php if ($enable_custom != "true") echo 'style="display:none;"'; ?>>

        <div class="egpr-custom-settings">
          <div class="egpr-review-csettings">
           <div class="egpr-custom-header">
              <h3><?php _e("Reviews Custom Settings", 'everest-google-places-reviews'); ?></h3>
           </div>
            <div class="default-reviews-settings" id="reviews-settings">
                <div class="egpr-type-field">
                    <label for="egpr_meta_reviewer_fcolor">
                        <h4><?php _e('Reviewer Name Font Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_reviewer_fcolor egpr-color-picker" name="egpr_custom_settings[reviewer_fcolor]"  value="<?php
                        if (!empty($egpr_custom_settings['reviewer_fcolor'])) {
                            echo esc_attr($egpr_custom_settings['reviewer_fcolor']);
                        }
                        ?>"/>
                    </label>

                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_reviewer_fhcolor">
                        <h4><?php _e('Reviewer Name Font Hover Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_reviewer_fhcolor egpr-color-picker" name="egpr_custom_settings[reviewer_fhcolor]"  value="<?php
                        if (!empty($egpr_custom_settings['reviewer_fhcolor'])) {
                            echo esc_attr($egpr_custom_settings['reviewer_fhcolor']);
                        }
                        ?>"/>
                    </label>

                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_reviewer_fsize">
                        <h4><?php _e('Reviewer Name Font Size', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="number" class="egpr_meta_reviewer_fsize" name="egpr_custom_settings[reviewer_fsize]"  value="<?php
                        if (!empty($egpr_custom_settings['reviewer_fsize'])) {
                            echo esc_attr($egpr_custom_settings['reviewer_fsize']);
                        }
                        ?>"/>
                    </label>

                </div>
              <?php
                $family = array('ABeeZee','Abel','Abril Fatface','Aclonica','Acme','Actor','Adamina','Advent Pro','Aguafina Script','Akronim','Aladin','Aldrich','Alef','Alegreya','Alegreya SC','Alegreya Sans','Alegreya Sans SC','Alex Brush','Alfa Slab One','Alice','Alike','Alike Angular','Allan','Allerta','Allerta Stencil','Allura','Almendra','Almendra Display','Almendra SC','Amarante','Amaranth','Amatic SC','Amethysta','Amiri','Amita','Anaheim','Andada','Andika','Angkor','Annie Use Your Telescope','Anonymous Pro','Antic','Antic Didone','Antic Slab','Anton','Arapey','Arbutus','Arbutus Slab','Architects Daughter','Archivo Black','Archivo Narrow','Arimo','Arizonia','Armata','Artifika','Arvo','Arya','Asap','Asar','Asset','Astloch','Asul','Atomic Age','Aubrey','Audiowide','Autour One','Average','Average Sans','Averia Gruesa Libre','Averia Libre','Averia Sans Libre','Averia Serif Libre','Bad Script','Balthazar','Bangers','Basic','Battambang','Baumans','Bayon','Belgrano','Belleza','BenchNine','Bentham','Berkshire Swash','Bevan','Bigelow Rules','Bigshot One','Bilbo','Bilbo Swash Caps','Biryani','Bitter','Black Ops One','Bokor','Bonbon','Boogaloo','Bowlby One','Bowlby One SC','Brawler','Bree Serif','Bubblegum Sans','Bubbler One','Buda','Buenard','Butcherman','Butterfly Kids','Cabin','Cabin Condensed','Cabin Sketch','Caesar Dressing','Cagliostro','Calligraffitti','Cambay','Cambo','Candal','Cantarell','Cantata One','Cantora One','Capriola','Cardo','Carme','Carrois Gothic','Carrois Gothic SC','Carter One','Caudex','Cedarville Cursive','Ceviche One','Changa One','Chango','Chau Philomene One','Chela One','Chelsea Market','Chenla','Cherry Cream Soda','Cherry Swash','Chewy','Chicle','Chivo','Cinzel','Cinzel Decorative','Clicker Script','Coda','Coda Caption','Codystar','Combo','Comfortaa','Coming Soon','Concert One','Condiment','Content','Contrail One','Convergence','Cookie','Copse','Corben','Courgette','Cousine','Coustard','Covered By Your Grace','Crafty Girls','Creepster','Crete Round','Crimson Text','Croissant One','Crushed','Cuprum','Cutive','Cutive Mono','Damion','Dancing Script','Dangrek','Dawning of a New Day','Days One','Dekko','Delius','Delius Swash Caps','Delius Unicase','Della Respira','Denk One','Devonshire','Dhurjati','Didact Gothic','Diplomata','Diplomata SC','Domine','Donegal One','Doppio One','Dorsa','Dosis','Dr Sugiyama','Droid Sans','Droid Sans Mono','Droid Serif','Duru Sans','Dynalight','EB Garamond','Eagle Lake','Eater','Economica','Eczar','Ek Mukta','Electrolize','Elsie','Elsie Swash Caps','Emblema One','Emilys Candy','Engagement','Englebert','Enriqueta','Erica One','Esteban','Euphoria Script','Ewert','Exo','Exo 2','Expletus Sans','Fanwood Text','Fascinate','Fascinate Inline','Faster One','Fasthand','Fauna One','Federant','Federo','Felipa','Fenix','Finger Paint','Fira Mono','Fira Sans','Fjalla One','Fjord One','Flamenco','Flavors','Fondamento','Fontdiner Swanky','Forum','Francois One','Freckle Face','Fredericka the Great','Fredoka One','Freehand','Fresca','Frijole','Fruktur','Fugaz One','GFS Didot','GFS Neohellenic','Gabriela','Gafata','Galdeano','Galindo','Gentium Basic','Gentium Book Basic','Geo','Geostar','Geostar Fill','Germania One','Gidugu','Gilda Display','Give You Glory','Glass Antiqua','Glegoo','Gloria Hallelujah','Goblin One','Gochi Hand','Gorditas','Goudy Bookletter 1911','Graduate','Grand Hotel','Gravitas One','Great Vibes','Griffy','Gruppo','Gudea','Gurajada','Habibi','Halant','Hammersmith One','Hanalei','Hanalei Fill','Handlee','Hanuman','Happy Monkey','Headland One','Henny Penny','Herr Von Muellerhoff','Hind','Holtwood One SC','Homemade Apple','Homenaje','IM Fell DW Pica','IM Fell DW Pica SC','IM Fell Double Pica','IM Fell Double Pica SC','IM Fell English','IM Fell English SC','IM Fell French Canon','IM Fell French Canon SC','IM Fell Great Primer','IM Fell Great Primer SC','Iceberg','Iceland','Imprima','Inconsolata','Inder','Indie Flower','Inika','Inknut Antiqua','Irish Grover','Istok Web','Italiana','Italianno','Jacques Francois','Jacques Francois Shadow','Jaldi','Jim Nightshade','Jockey One','Jolly Lodger','Josefin Sans','Josefin Slab','Joti One','Judson','Julee','Julius Sans One','Junge','Jura','Just Another Hand','Just Me Again Down Here','Kadwa','Kalam','Kameron','Kantumruy','Karla','Karma','Kaushan Script','Kavoon','Kdam Thmor','Keania One','Kelly Slab','Kenia','Khand','Khmer','Khula','Kite One','Knewave','Kotta One','Koulen','Kranky','Kreon','Kristi','Krona One','Kurale','La Belle Aurore','Laila','Lakki Reddy','Lancelot','Lateef','Lato','League Script','Leckerli One','Ledger','Lekton','Lemon','Libre Baskerville','Life Savers','Lilita One','Lily Script One','Limelight','Linden Hill','Lobster','Lobster Two','Londrina Outline','Londrina Shadow','Londrina Sketch','Londrina Solid','Lora','Love Ya Like A Sister','Loved by the King','Lovers Quarrel','Luckiest Guy','Lusitana','Lustria','Macondo','Macondo Swash Caps','Magra','Maiden Orange','Mako','Mallanna','Mandali','Marcellus','Marcellus SC','Marck Script','Margarine','Marko One','Marmelad','Martel','Martel Sans','Marvel','Mate','Mate SC','Maven Pro','McLaren','Meddon','MedievalSharp','Medula One','Megrim','Meie Script','Merienda','Merienda One','Merriweather','Merriweather Sans','Metal','Metal Mania','Metamorphous','Metrophobic','Michroma','Milonga','Miltonian','Miltonian Tattoo','Miniver','Miss Fajardose','Modak','Modern Antiqua','Molengo','Molle','Monda','Monofett','Monoton','Monsieur La Doulaise','Montaga','Montez','Montserrat','Montserrat Alternates','Montserrat Subrayada','Moul','Moulpali','Mountains of Christmas','Mouse Memoirs','Mr Bedfort','Mr Dafoe','Mr De Haviland','Mrs Saint Delafield','Mrs Sheppards','Muli','Mystery Quest','NTR','Neucha','Neuton','New Rocker','News Cycle','Niconne','Nixie One','Nobile','Nokora','Norican','Nosifer','Nothing You Could Do','Noticia Text','Noto Sans','Noto Serif','Nova Cut','Nova Flat','Nova Mono','Nova Oval','Nova Round','Nova Script','Nova Slim','Nova Square','Numans','Nunito','Odor Mean Chey','Offside','Old Standard TT','Oldenburg','Oleo Script','Oleo Script Swash Caps','Open Sans','Open Sans Condensed','Oranienbaum','Orbitron','Oregano','Orienta','Original Surfer','Oswald','Over the Rainbow','Overlock','Overlock SC','Ovo','Oxygen','Oxygen Mono','PT Mono','PT Sans','PT Sans Caption','PT Sans Narrow','PT Serif','PT Serif Caption','Pacifico','Palanquin','Palanquin Dark','Paprika','Parisienne','Passero One','Passion One','Pathway Gothic One','Patrick Hand','Patrick Hand SC','Patua One','Paytone One','Peddana','Peralta','Permanent Marker','Petit Formal Script','Petrona','Philosopher','Piedra','Pinyon Script','Pirata One','Plaster','Play','Playball','Playfair Display','Playfair Display SC','Podkova','Poiret One','Poller One','Poly','Pompiere','Pontano Sans','Poppins','Port Lligat Sans','Port Lligat Slab','Pragati Narrow','Prata','Preahvihear','Press Start 2P','Princess Sofia','Prociono','Prosto One','Puritan','Purple Purse','Quando','Quantico','Quattrocento','Quattrocento Sans','Questrial','Quicksand','Quintessential','Qwigley','Racing Sans One','Radley','Rajdhani','Raleway','Raleway Dots','Ramabhadra','Ramaraja','Rambla','Rammetto One','Ranchers','Rancho','Ranga','Rationale','Ravi Prakash','Redressed','Reenie Beanie','Revalia','Rhodium Libre','Ribeye','Ribeye Marrow','Righteous','Risque','Roboto','Roboto Condensed','Roboto Mono','Roboto Slab','Rochester','Rock Salt','Rokkitt','Romanesco','Ropa Sans','Rosario','Rosarivo','Rouge Script','Rozha One','Rubik','Rubik Mono One','Rubik One','Ruda','Rufina','Ruge Boogie','Ruluko','Rum Raisin','Ruslan Display','Russo One','Ruthie','Rye','Sacramento','Sahitya','Sail','Salsa','Sanchez','Sancreek','Sansita One','Sarala','Sarina','Sarpanch','Satisfy','Scada','Scheherazade','Schoolbell','Seaweed Script','Sevillana','Seymour One','Shadows Into Light','Shadows Into Light Two','Shanti','Share','Share Tech','Share Tech Mono','Shojumaru','Short Stack','Siemreap','Sigmar One','Signika','Signika Negative','Simonetta','Sintony','Sirin Stencil','Six Caps','Skranji','Slabo 13px','Slabo 27px','Slackey','Smokum','Smythe','Sniglet','Snippet','Snowburst One','Sofadi One','Sofia','Sonsie One','Sorts Mill Goudy','Source Code Pro','Source Sans Pro','Source Serif Pro','Special Elite','Spicy Rice','Spinnaker','Spirax','Squada One','Sree Krushnadevaraya','Stalemate','Stalinist One','Stardos Stencil','Stint Ultra Condensed','Stint Ultra Expanded','Stoke','Strait','Sue Ellen Francisco','Sumana','Sunshiney','Supermercado One','Sura','Suranna','Suravaram','Suwannaphum','Swanky and Moo Moo','Syncopate','Tangerine','Taprom','Tauri','Teko','Telex','Tenali Ramakrishna','Tenor Sans','Text Me One','The Girl Next Door','Tienne','Tillana','Timmana','Tinos','Titan One','Titillium Web','Trade Winds','Trocchi','Trochut','Trykker','Tulpen One','Ubuntu','Ubuntu Condensed','Ubuntu Mono','Ultra','Uncial Antiqua','Underdog','Unica One','UnifrakturCook','UnifrakturMaguntia','Unkempt','Unlock','Unna','VT323','Vampiro One','Varela','Varela Round','Vast Shadow','Vesper Libre','Vibur','Vidaloka','Viga','Voces','Volkhov','Vollkorn','Voltaire','Waiting for the Sunrise','Wallpoet','Walter Turncoat','Warnes','Wellfleet','Wendy One','Wire One','Work Sans','Yanone Kaffeesatz','Yantramanav','Yellowtail','Yeseva One','Yesteryear','Zeyada');
                ?>
                 <div class="egpr-type-field">
                    <label for="egpr_meta_reviewer_font-family">
                        <h4><?php _e('Reviewer Name Font Family', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                       <select name="egpr_custom_settings[font_family]" id="egpr_meta_reviewer_font_family">
                        <option value="default"><?php _e('Default','everest-google-places-reviews')?></option>
                        <?php 
                        $font_family = (isset($egpr_custom_settings['font_family']) && $egpr_custom_settings['font_family'] != '')?esc_attr($egpr_custom_settings['font_family']):'';
                            foreach ($family as $fonts) {
                                ?>
                                    <option value="<?php echo $fonts;?>" <?php if($fonts ==  $font_family) echo "selected";?>><?php echo $fonts;?></option>
                                <?php
                            }
                        ?>
                      </select>
                       
                    </label>

                </div>
                <div class="clear"></div>
                 <div class="egpr_font-demo-wrap" id="egpr-label-font-preview">
                            The Quick Brown Fox Jumps Over The Lazy Dog. 1234567890
                </div>
                <style id="egpr-label-font-style"></style>
                <div class="egpr-type-field">
                    <label for="egpr_meta_desc_size">
                        <h4><?php _e('Description Font Size', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="number" class="egpr_meta_desc_size" name="egpr_custom_settings[desc_size]"  value="<?php
                        if (!empty($egpr_custom_settings['desc_size'])) {
                            echo esc_attr($egpr_custom_settings['desc_size']);
                        }
                        ?>"/>
                    </label>

                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_desc_fcolor">
                        <h4><?php _e('Description Font Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_desc_fcolor egpr-color-picker" name="egpr_custom_settings[desc_fcolor]"  value="<?php
                        if (!empty($egpr_custom_settings['desc_fcolor'])) {
                            echo esc_attr($egpr_custom_settings['desc_fcolor']);
                        }
                        ?>"/>
                    </label>

                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_reviewer_desc_font_family">
                        <h4><?php _e('Description Font Family', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                       <select name="egpr_custom_settings[desc_font_family]" id="egpr_meta_reviewer_desc_font_family">
                        <option value="default"><?php _e('Default','everest-google-places-reviews')?></option>
                        <?php 
                        $desc_font_family = (isset($egpr_custom_settings['desc_font_family']) && $egpr_custom_settings['desc_font_family'] != '')?esc_attr($egpr_custom_settings['desc_font_family']):'';
                            foreach ($family as $dfonts) {
                                ?>
                                    <option value="<?php echo $dfonts;?>" <?php if($dfonts ==  $desc_font_family) echo "selected";?>><?php echo $dfonts;?></option>
                                <?php
                            }
                        ?>
                      </select>
                    </label>
                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_date_fcolor">
                        <h4><?php _e('Date Font Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_date_fcolor egpr-color-picker" name="egpr_custom_settings[date_fcolor]"  value="<?php
                        if (!empty($egpr_custom_settings['date_fcolor'])) {
                            echo esc_attr($egpr_custom_settings['date_fcolor']);
                        }
                        ?>"/>
                    </label>

                </div>

                <div class="egpr-type-field">
                    <label for="egpr_meta_rating_color">
                        <h4><?php _e('Rating Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_rating_color egpr-color-picker" name="egpr_custom_settings[rating_color]"  value="<?php
                        if (!empty($egpr_custom_settings['rating_color'])) {
                            echo esc_attr($egpr_custom_settings['rating_color']);
                        }
                        ?>"/>
                    </label>
                </div>

                <div class="egpr-type-field">
                    <label for="egpr_meta_button_color">
                        <h4><?php _e('Button Font Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_button_color egpr-color-picker" name="egpr_custom_settings[button_color]"  value="<?php
                        if (!empty($egpr_custom_settings['button_color'])) {
                            echo esc_attr($egpr_custom_settings['button_color']);
                        }
                        ?>"/>
                        <p class="description"><?php _e('Set button color for button such as read more,read less to be displayed after description as per set limit.', 'everest-google-places-reviews'); ?></p>
                    </label>

                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_button_hcolor">
                        <h4><?php _e('Button Font Hover Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_button_hcolor egpr-color-picker" name="egpr_custom_settings[button_hcolor]"  value="<?php
                        if (!empty($egpr_custom_settings['button_hcolor'])) {
                            echo esc_attr($egpr_custom_settings['button_hcolor']);
                        }
                        ?>"/>
                        <p class="description"><?php _e('Set button hover color for button such as read more,read less to be displayed after description as per set limit.', 'everest-google-places-reviews'); ?></p>
                    </label>

                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_button_fsize">
                        <h4><?php _e('Button Font Size', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="number" class="egpr_meta_button_fsize" name="egpr_custom_settings[button_fsize]"  value="<?php
                        if (!empty($egpr_custom_settings['button_fsize'])) {
                            echo esc_attr($egpr_custom_settings['button_fsize']);
                        }
                        ?>"/>
                        <p class="description"><?php _e('Set button font size for button such as read more,read less to be displayed after description as per set limit.', 'everest-google-places-reviews'); ?></p>
                    </label>

                </div>
            </div>
      </div>
      <div class="rate_us_settings">
          <div class="egpr-custom-header">
            <h3><?php _e("Rate Us Custom Settings", 'everest-google-places-reviews'); ?></h3>
            </div>
            <div class="default-rateus-settings" id="rateus-settings">
                <div class="egpr-type-field">
                    <label for="egpr_meta_text_font_size">
                        <h4><?php _e('Text Font Size', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="number" class="egpr_meta_text_font_size" name="egpr_custom_settings[text_font_size]"  value="<?php
                        if (!empty($egpr_custom_settings['text_font_size'])) {
                            echo esc_attr($egpr_custom_settings['text_font_size']);
                        }
                        ?>"/>
                    </label>
                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_text_font_color">
                        <h4><?php _e('Text Font Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_text_font_color egpr-color-picker" name="egpr_custom_settings[text_fcolor]"  value="<?php
                        if (!empty($egpr_custom_settings['text_fcolor'])) {
                            echo esc_attr($egpr_custom_settings['text_fcolor']);
                        }
                        ?>"/>
                    </label>
                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_text_font_hcolor">
                        <h4><?php _e('Text Font Hover Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_text_font_hcolor egpr-color-picker" name="egpr_custom_settings[text_fhcolor]"  value="<?php
                        if (!empty($egpr_custom_settings['text_fhcolor'])) {
                            echo esc_attr($egpr_custom_settings['text_fhcolor']);
                        }
                        ?>"/>
                    </label>

                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_button_bg_color">
                        <h4><?php _e('Background Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_button_bg_color egpr-color-picker"  data-alpha="true" name="egpr_custom_settings[button_bg_color]"  value="<?php
                        if (!empty($egpr_custom_settings['button_bg_color'])) {
                            echo esc_attr($egpr_custom_settings['button_bg_color']);
                        }
                        ?>"/>
                    </label>

                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_button_bg_hcolor">
                        <h4><?php _e('Background Hover Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_button_bg_hcolor egpr-color-picker" name="egpr_custom_settings[button_bg_hcolor]"  data-alpha="true" value="<?php
                               if (!empty($egpr_custom_settings['button_bg_hcolor'])) {
                                   echo esc_attr($egpr_custom_settings['button_bg_hcolor']);
                               }
                               ?>"/>
                    </label>
                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_button_border_color">
                        <h4><?php _e('Border Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_button_border_color egpr-color-picker" name="egpr_custom_settings[button_border_color]" value="<?php
                               if (isset($egpr_custom_settings['button_border_color']) && !empty($egpr_custom_settings['button_border_color'])) {
                                   echo esc_attr($egpr_custom_settings['button_border_color']);
                               }
                               ?>"/>
                    </label>
                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_button_border_color">
                        <h4><?php _e('Border Hover Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_button_border_color egpr-color-picker" name="egpr_custom_settings[button_border_hcolor]" value="<?php
                               if (isset($egpr_custom_settings['button_border_hcolor']) && !empty($egpr_custom_settings['button_border_hcolor'])) {
                                   echo esc_attr($egpr_custom_settings['button_border_hcolor']);
                               }
                               ?>"/>
                    </label>
                </div>
                 <div class="egpr-type-field">
                    <label for="egpr_meta_reviewer_rbutton_font_family">
                        <h4><?php _e('Font Family', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                       <select name="egpr_custom_settings[rbutton_font_family]" id="egpr_meta_reviewer_rbutton_font_family">
                        <option value="default"><?php _e('Default','everest-google-places-reviews')?></option>
                        <?php 
                        $rbutton_font_family = (isset($egpr_custom_settings['rbutton_font_family']) && $egpr_custom_settings['rbutton_font_family'] != '')?esc_attr($egpr_custom_settings['rbutton_font_family']):'';
                            foreach ($family as $rfonts) {
                                ?>
                                    <option value="<?php echo $rfonts;?>" <?php if($rfonts ==  $rbutton_font_family) echo "selected";?>><?php echo $rfonts;?></option>
                                <?php
                            }
                        ?>
                      </select>
                    </label>
                </div>
            </div>
        </div>


  <div class="viewallreviews_settings">
          <div class="egpr-custom-header">
            <h3><?php _e("View All Button Custom Settings", 'everest-google-places-reviews'); ?></h3>
            </div>
            <div class="default-viewall-settings" id="viewall-settings">
                <div class="egpr-type-field">
                    <label>
                        <h4><?php _e('Text Font Size', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="number" class="egpr_meta_text_font_size" name="egpr_custom_settings[viewall_font_size]" value="<?php
                        if (isset($egpr_custom_settings['viewall_font_size']) && !empty($egpr_custom_settings['viewall_font_size'])) {
                            echo esc_attr($egpr_custom_settings['viewall_font_size']);
                        }
                        ?>"/>
                    </label>
                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_text_font_color">
                        <h4><?php _e('Text Font Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_text_font_color egpr-color-picker" name="egpr_custom_settings[viewall_text_fcolor]"  value="<?php
                        if (isset($egpr_custom_settings['viewall_text_fcolor']) && !empty($egpr_custom_settings['viewall_text_fcolor'])) {
                            echo esc_attr($egpr_custom_settings['viewall_text_fcolor']);
                        }
                        ?>"/>
                    </label>
                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_text_font_hcolor">
                        <h4><?php _e('Text Font Hover Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_text_font_hcolor egpr-color-picker" name="egpr_custom_settings[viewall_text_fhcolor]"  value="<?php
                        if (isset($egpr_custom_settings['viewall_text_fhcolor']) && !empty($egpr_custom_settings['viewall_text_fhcolor'])) {
                            echo esc_attr($egpr_custom_settings['viewall_text_fhcolor']);
                        }
                        ?>"/>
                    </label>

                </div>
                 <div class="egpr-type-field">
                    <label for="egpr_meta_button_border_color">
                        <h4><?php _e('Border Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_button_border_color egpr-color-picker" name="egpr_custom_settings[viewbutton_border_color]" value="<?php
                               if (isset($egpr_custom_settings['viewbutton_border_color']) && !empty($egpr_custom_settings['viewbutton_border_color'])) {
                                   echo esc_attr($egpr_custom_settings['viewbutton_border_color']);
                               }
                               ?>"/>
                    </label>
                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_button_border_color">
                        <h4><?php _e('Border Hover Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_button_border_color egpr-color-picker" name="egpr_custom_settings[viewbutton_border_hcolor]" value="<?php
                               if (isset($egpr_custom_settings['viewbutton_border_hcolor']) && !empty($egpr_custom_settings['viewbutton_border_hcolor'])) {
                                   echo esc_attr($egpr_custom_settings['viewbutton_border_hcolor']);
                               }
                               ?>"/>
                    </label>
                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_button_bg_color">
                        <h4><?php _e('Background Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_button_bg_color egpr-color-picker" name="egpr_custom_settings[viewall_button_bg_color]" data-alpha="true" value="<?php
                        if (isset($egpr_custom_settings['viewall_button_bg_color']) && !empty($egpr_custom_settings['viewall_button_bg_color'])) {
                            echo esc_attr($egpr_custom_settings['viewall_button_bg_color']);
                        }
                        ?>"/>
                    </label>

                </div>
                <div class="egpr-type-field">
                    <label for="egpr_meta_button_bg_hcolor">
                        <h4><?php _e('Background Hover Color', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                        <input type="text" class="egpr_meta_button_bg_hcolor egpr-color-picker"  data-alpha="true" name="egpr_custom_settings[viewall_button_bg_hcolor]"  value="<?php
                               if (isset($egpr_custom_settings['viewall_button_bg_hcolor']) && !empty($egpr_custom_settings['viewall_button_bg_hcolor'])) {
                                   echo esc_attr($egpr_custom_settings['viewall_button_bg_hcolor']);
                               }
                               ?>"/>
                    </label>

                </div>
                 <div class="egpr-type-field">
                    <label for="egpr_meta_reviewer_rbutton_font_family">
                        <h4><?php _e('Font Family', 'everest-google-places-reviews'); ?></h4>
                    </label>
                    <label class="egpr-noswitch">
                       <select name="egpr_custom_settings[viewbutton_font_family]" id="egpr_meta_reviewer_rbutton_font_family">
                        <option value="default"><?php _e('Default','everest-google-places-reviews')?></option>
                        <?php 
                        $viewbutton_font_family = (isset($egpr_custom_settings['viewbutton_font_family']) && $egpr_custom_settings['viewbutton_font_family'] != '')?esc_attr($egpr_custom_settings['viewbutton_font_family']):'';
                            foreach ($family as $rfonts) {
                                ?>
                                    <option value="<?php echo $rfonts;?>" <?php if($rfonts ==  $viewbutton_font_family) echo "selected";?>><?php echo $rfonts;?></option>
                                <?php
                            }
                        ?>
                      </select>
                    </label>
                </div>
            </div>
        </div>

<!-- custom slider design -->
  <div class="slider_custom_settings">
          <div class="egpr-custom-header">
            <h3><?php _e("Slider Custom Settings", 'everest-google-places-reviews'); ?></h3>
            </div>
            <div class="default-slider-settings" id="slider-settings">
                <div class="egpr-type-field">
                        <label for="egpr_meta_slider_dot_color">
                            <h4><?php _e('Dot Color', 'everest-google-places-reviews'); ?></h4></label>
                         <label class="egpr-noswitch">
                             <input type="text" class="egpr_meta_slider_dot_color egpr-color-picker" name="egpr_custom_settings[dot_color]"  value="<?php
                           if (isset($egpr_custom_settings['dot_color']) && $egpr_custom_settings['dot_color'] != '') {
                                echo esc_attr($egpr_custom_settings['dot_color']);
                            }
                            ?>"/>
                        </label>
                     </div>
               <div class="egpr-type-field">
                    <label for="egpr_meta_slider_dot_active_color">
                        <h4><?php _e('Dot Active Color', 'everest-google-places-reviews'); ?></h4></label>
                     <label class="egpr-noswitch">
                         <input type="text" class="egpr_meta_slider_dot_active_color egpr-color-picker" name="egpr_custom_settings[dot_active_color]"  value="<?php
                       if (isset($egpr_custom_settings['dot_active_color']) && $egpr_custom_settings['dot_active_color'] != '') {
                            echo esc_attr($egpr_custom_settings['dot_active_color']);
                        }
                        ?>"/>
                    </label>
                 </div>
                 <div class="egpr-type-field">
                    <label for="egpr_meta_slider_pager_active_color">
                        <h4><?php _e('Pager Active Color', 'everest-google-places-reviews'); ?></h4></label>
                     <label class="egpr-noswitch">
                         <input type="text" class="egpr_meta_slider_pager_active_color egpr-color-picker" name="egpr_custom_settings[pager_active_color]"  value="<?php
                       if (isset($egpr_custom_settings['pager_active_color']) && $egpr_custom_settings['pager_active_color'] != '') {
                            echo esc_attr($egpr_custom_settings['pager_active_color']);
                        }
                        ?>"/> 
                    </label>
                 </div>

                  <div class="egpr-type-field">
                    <label for="egpr_meta_slider_arrow_bgcolor">
                        <h4><?php _e('Controls(Arrow) Background Color', 'everest-google-places-reviews'); ?></h4></label>
                     <label class="egpr-noswitch">
                         <input type="text" class="egpr_meta_slider_arrow_bgcolor egpr-color-picker" name="egpr_custom_settings[arrow_bgcolor]"  value="<?php
                       if (isset($egpr_custom_settings['arrow_bgcolor']) && $egpr_custom_settings['arrow_bgcolor'] != '') {
                            echo esc_attr($egpr_custom_settings['arrow_bgcolor']);
                        }
                        ?>"/> 
                    </label>
                 </div>

                   <div class="egpr-type-field">
                    <label for="egpr_meta_slider_arrow_bghcolor">
                        <h4><?php _e('Controls(Arrow) Background Hover Color', 'everest-google-places-reviews'); ?></h4></label>
                     <label class="egpr-noswitch">
                         <input type="text" class="egpr_meta_slider_arrow_bghcolor egpr-color-picker" name="egpr_custom_settings[arrow_bghcolor]"  value="<?php
                       if (isset($egpr_custom_settings['arrow_bghcolor']) && $egpr_custom_settings['arrow_bghcolor'] != '') {
                            echo esc_attr($egpr_custom_settings['arrow_bghcolor']);
                        }
                        ?>"/> 
                    </label>
                 </div>

                  <div class="egpr-type-field">
                    <label for="egpr_meta_slider_arrow_color">
                        <h4><?php _e('Controls(Arrow) Color', 'everest-google-places-reviews'); ?></h4></label>
                     <label class="egpr-noswitch">
                         <input type="text" class="egpr_meta_slider_arrow_color egpr-color-picker" name="egpr_custom_settings[arrow_color]"  value="<?php
                       if (isset($egpr_custom_settings['arrow_color']) && $egpr_custom_settings['arrow_color'] != '') {
                            echo esc_attr($egpr_custom_settings['arrow_color']);
                        }
                        ?>"/> 
                    </label>
                 </div>

                   <div class="egpr-type-field">
                    <label for="egpr_meta_slider_arrow_hcolor">
                        <h4><?php _e('Controls(Arrow) Hover Font Color', 'everest-google-places-reviews'); ?></h4></label>
                     <label class="egpr-noswitch">
                         <input type="text" class="egpr_meta_slider_arrow_hcolor egpr-color-picker" name="egpr_custom_settings[arrow_hcolor]"  value="<?php
                       if (isset($egpr_custom_settings['arrow_hcolor']) && $egpr_custom_settings['arrow_hcolor'] != '') {
                            echo esc_attr($egpr_custom_settings['arrow_hcolor']);
                        }
                        ?>"/> 
                    </label>
                 </div>

               
               
            </div>
        </div>
<!-- custom slider settings end -->
        </div>


    </div>
</div>