Viewing file: generate_shortcode.php (66.84 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*======================================================================================================================================================================== Register logooo_sc Post Type ========================================================================================================================================================================*/ add_action('init', 'logooo_sc_init'); function logooo_sc_init() { /*---------------------------------------------------------------------- logooo_sc Post Type Labels ----------------------------------------------------------------------*/ $labels = array( 'name' => _x('Saved Shortcodes', 'Post type general name'), 'singular_name' => _x('Saved Shortcodes', 'Post type singular name'), 'add_new' => _x('Generate new shortcode', 'logo Item'), 'add_new_item' => __('Generate new shortcode'), 'edit_item' => __('Edit shortcode'), 'new_item' => __('Generate shortcode'), 'all_items' => __('Saved shortcodes'), 'view_item' => __('View'), 'search_items' => __('Search'), 'not_found' => __('No shortcodes found.'), 'not_found_in_trash' => __('No shortcodes found.'), 'parent_item_colon' => '', 'menu_name' => 'Logos Shortcodes' ); /*---------------------------------------------------------------------- logooo_sc Post Type Properties ----------------------------------------------------------------------*/ $args = array( 'labels' => $labels, 'public' => false, 'publicly_queryable' => false, 'show_ui' => true, 'show_in_menu' => false, 'show_in_admin_bar' => false, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title') ); /*---------------------------------------------------------------------- Register logooo_sc Post Type Function ----------------------------------------------------------------------*/ register_post_type('logooo_sc',$args);
} /*======================================================================================================================================================================== logooo_sc Post Type All Themes Table Columns ========================================================================================================================================================================*/ /*---------------------------------------------------------------------- logooo_sc Declaration Function ----------------------------------------------------------------------*/ function logooo_sc_columns($logooo_sc_columns){ $logooo_sc_columns = array(
"cb" => "<input type=\"checkbox\" />",
"title" => "Title", "shortcode" => "Shortcode",
"author" => "Author", "date" => "Date",
);
return $logooo_sc_columns;
} /*---------------------------------------------------------------------- logooo_sc Value Function ----------------------------------------------------------------------*/ function logooo_sc_columns_display($logooo_sc_columns, $post_id){ global $post; if ( 'shortcode' == $logooo_sc_columns ) { echo '[logooos_saved id="'.$post_id.'"]'; } } /*---------------------------------------------------------------------- Add manage_logooo_sc_posts_columns Filter ----------------------------------------------------------------------*/ add_filter("manage_logooo_sc_posts_columns", "logooo_sc_columns"); /*---------------------------------------------------------------------- Add manage_logooo_sc_posts_custom_column Action ----------------------------------------------------------------------*/ add_action("manage_logooo_sc_posts_custom_column", "logooo_sc_columns_display", 10, 2 ); /*======================================================================================================================================================================== Add Meta Box For logooo_sc Post Type ========================================================================================================================================================================*/ /*---------------------------------------------------------------------- add_meta_boxes Action For logooo_sc Post Type ----------------------------------------------------------------------*/ add_action( 'add_meta_boxes', 'logooo_sc_add_custom_box' ); /*---------------------------------------------------------------------- Properties Of logooo_sc Meta Boxes ----------------------------------------------------------------------*/ function logooo_sc_add_custom_box() { add_meta_box( 'logooo_sc_options_metabox', 'Options', 'logooo_sc_options_metabox', 'logooo_sc', 'side' ); add_meta_box( 'logooo_sc_preview_metabox', 'Preview', 'logooo_sc_preview_metabox', 'logooo_sc', 'advanced' ); } /*---------------------------------------------------------------------- Content Of logooo_sc Options Meta Box ----------------------------------------------------------------------*/ function logooo_sc_preview_metabox( $post ) { ?> <p id="logooos_noteParagraph"> <strong>Note: </strong>Please copy and paste a shortcode in the yellow box below into page, post editor and logos widget. <?php if ( defined( 'WPB_VC_VERSION' ) ) { echo 'Also you can use logos element into visual composer page builder to insert saved shortcodes.'; } ?>
</p> <div id="logooos_div_shortcode" style="<?php if($post->post_status !='auto-draft'){ echo 'display:none;'; } ?>">[logooos]</div> <div id="logooos_div_shortcode_saved" style="<?php if($post->post_status =='auto-draft'){ echo 'display:none;'; } ?>">[logooos_saved id="<?php echo $post->ID; ?>"]</div> <input type="hidden" name="logooos_shortcode" id="logooos_shortcode" value="<?php echo get_post_meta($post->ID, 'shortcode', true); ?>" /> <div id="logooos_gene_short_preview">Loading ...</div> <?php } /*---------------------------------------------------------------------- Content Of logooo_sc Options Meta Box ----------------------------------------------------------------------*/ function logooo_sc_options_metabox( $post ) {
// Use nonce for verification wp_nonce_field( plugin_basename( __FILE__ ), 'logooo_sc_noncename' ); if(isset($_GET['action']) && $_GET['action']=='edit') { // columns $columns = get_post_meta($post->ID, 'columns', true);
// items height percentage $itemsheightpercentage = get_post_meta($post->ID, 'itemsheightpercentage', true); // background color $backgroundcolor = get_post_meta($post->ID, 'backgroundcolor', true); // layout $layout = get_post_meta($post->ID, 'layout', true); // num $num = get_post_meta($post->ID, 'num', true); // category $category = get_post_meta($post->ID, 'category', true); // orderby $orderby = get_post_meta($post->ID, 'orderby', true); // order $order = get_post_meta($post->ID, 'order', true); // margin between items $marginbetweenitems = get_post_meta($post->ID, 'marginbetweenitems', true);
// tooltip $tooltip = get_post_meta($post->ID, 'tooltip', true); // responsive $responsive = get_post_meta($post->ID, 'responsive', true); // grayscale $grayscale = get_post_meta($post->ID, 'grayscale', true); // border $border = get_post_meta($post->ID, 'border', true); // border color $bordercolor = get_post_meta($post->ID, 'bordercolor', true); // border radius $borderradius = get_post_meta($post->ID, 'borderradius', true); // on click action $onclickaction = get_post_meta($post->ID, 'onclickaction', true); // details area padding $detailsarea_padding = get_post_meta($post->ID, 'detailsarea_padding', true); // details area bg color $detailsarea_bgcolor = get_post_meta($post->ID, 'detailsarea_bgcolor', true); // details area close btn color $detailsarea_closebtncolor = get_post_meta($post->ID, 'detailsarea_closebtncolor', true); // details area border $detailsarea_border = get_post_meta($post->ID, 'detailsarea_border', true); // details area border color $detailsarea_bordercolor = get_post_meta($post->ID, 'detailsarea_bordercolor', true); // details area logo $detailsarea_logo = get_post_meta($post->ID, 'detailsarea_logo', true); // details area logo border $detailsarea_logoborder = get_post_meta($post->ID, 'detailsarea_logoborder', true); // details area logo border color $detailsarea_logobordercolor = get_post_meta($post->ID, 'detailsarea_logobordercolor', true); // details area logo bg color $detailsarea_logobgcolor = get_post_meta($post->ID, 'detailsarea_logobgcolor', true); // autoplay $autoplay = get_post_meta($post->ID, 'autoplay', true); // transition effect $transitioneffect = get_post_meta($post->ID, 'transitioneffect', true); // easing function $easingfunction = get_post_meta($post->ID, 'easingfunction', true); // scroll duration $scrollduration = get_post_meta($post->ID, 'scrollduration', true); // pause duration $pauseduration = get_post_meta($post->ID, 'pauseduration', true); // buttons border color $buttonsbordercolor = get_post_meta($post->ID, 'buttonsbordercolor', true); // buttons bg color $buttonsbgcolor = get_post_meta($post->ID, 'buttonsbgcolor', true); // buttons arrows color $buttonsarrowscolor = get_post_meta($post->ID, 'buttonsarrowscolor', true); // hover effect $hovereffect = get_post_meta($post->ID, 'hovereffect', true); // hover effect color $hovereffectcolor = get_post_meta($post->ID, 'hovereffectcolor', true); //font style $fontstyle = get_post_meta($post->ID, 'fontstyle', true); // title font family $titlefontfamily = get_post_meta($post->ID, 'titlefontfamily', true); // title font color $titlefontcolor = get_post_meta($post->ID, 'titlefontcolor', true); // title font size $titlefontsize = get_post_meta($post->ID, 'titlefontsize', true); // title font weight $titlefontweight = get_post_meta($post->ID, 'titlefontweight', true); // text font family $textfontfamily = get_post_meta($post->ID, 'textfontfamily', true); // text font color $textfontcolor = get_post_meta($post->ID, 'textfontcolor', true); // text font size $textfontsize = get_post_meta($post->ID, 'textfontsize', true); // excerpt text length $excerpttextlength = get_post_meta($post->ID, 'excerpttextlength', true); // list border $listborder = get_post_meta($post->ID, 'listborder', true); // list border color $listbordercolor = get_post_meta($post->ID, 'listbordercolor', true); // list border style $listborderstyle = get_post_meta($post->ID, 'listborderstyle', true); // more link text $morelinktext = get_post_meta($post->ID, 'morelinktext', true); // more link text color $morelinktextcolor = get_post_meta($post->ID, 'morelinktextcolor', true); } else { $columns = '5'; $itemsheightpercentage = '0.80'; $backgroundcolor = 'transparent'; $layout = 'grid'; $num = '-1'; $category = '-1'; $orderby = 'date'; $order = 'DESC'; $marginbetweenitems = '25px'; $tooltip = 'enabled'; $responsive = 'enabled'; $grayscale = 'disabled'; $border = 'enabled'; $bordercolor = '#DCDCDC'; $borderradius = 'logooos_no_radius'; $onclickaction = 'openLink'; $detailsarea_padding = '30px'; $detailsarea_bgcolor = '#f6f6f6'; $detailsarea_closebtncolor = '#777777'; $detailsarea_border = 'enabled'; $detailsarea_bordercolor = '#dcdcdc'; $detailsarea_logo = 'enabled'; $detailsarea_logoborder = 'enabled'; $detailsarea_logobordercolor = '#dcdcdc'; $detailsarea_logobgcolor = 'transparent'; $autoplay = 'true'; $transitioneffect = 'scroll'; $easingfunction = 'quadratic'; $scrollduration = '1000'; $pauseduration = '9000'; $buttonsbordercolor = '#DCDCDC'; $buttonsbgcolor = '#FFFFFF'; $buttonsarrowscolor = 'lightgray'; $hovereffect = 'effect1'; $hovereffectcolor = '#DCDCDC'; $fontstyle = 'custom'; $titlefontfamily = ''; $titlefontcolor = '#777777'; $titlefontsize = '15px'; $titlefontweight = 'bold'; $textfontfamily = ''; $textfontcolor = '#777777'; $textfontsize = '12px'; $excerpttextlength = '55'; $listborder = 'enabled'; $listbordercolor = '#DCDCDC'; $listborderstyle = 'dashed'; $morelinktext = 'Read More'; $morelinktextcolor = '#999999'; } $logooos_wpml_current_lang =''; if(function_exists('icl_object_id')) { global $sitepress; if(isset($sitepress)) { $logooos_wpml_current_lang = $sitepress->get_current_language(); } } ?> <div id="logooos_gene_short_leftSidebar"> <input type="hidden" id="logooos_wpml_current_lang" name="logooos_wpml_current_lang" value="<?php echo $logooos_wpml_current_lang; ?>" /> <div class="logooos_sectionTitle">General Settings</div> <div class="logooos_rowsContainer logooos_rowsContainerOpend" > <div class="row"> <label for="logooos_categoriesList">Category Name</label> <?php
wp_dropdown_categories(array('taxonomy' =>'logooocategory', 'show_count' => 1, 'pad_counts' => 1, 'id' => 'logooos_categoriesList', 'name' => 'logooos_categoriesList', 'hide_empty' => 0, 'show_option_none' => 'All Categories', 'hierarchical'=>1, 'selected'=> get_post_meta($post->ID, 'category', true) )); ?>
</div> <div class="row"> <label for="logooos_NumberInput">Number of items</label> <input type="text" id="logooos_NumberInput" name="logooos_NumberInput" value="<?php echo get_post_meta($post->ID, 'num', true); ?>" placeholder="All" /> </div> <div class="row"> <label for="logooos_orderByList">Order By</label> <select id="logooos_orderByList" name="logooos_orderByList"> <option value="menu_order" <?php if($orderby == 'menu_order'){ echo 'selected'; } ?> >Order</option> <option value="date" <?php if($orderby == 'date'){ echo 'selected'; } ?> >Publish Date</option> <option value="title" <?php if($orderby == 'title'){ echo 'selected'; } ?> >Title</option> <option value="rand" <?php if($orderby == 'rand'){ echo 'selected'; } ?> >Random </option> </select> </div> <div class="row"> <label for="logooos_orderList">Order</label> <select id="logooos_orderList" name="logooos_orderList"> <option value="DESC" <?php if($order == 'DESC'){ echo 'selected'; } ?> >Descending</option> <option value="ASC" <?php if($order == 'ASC'){ echo 'selected'; } ?> >Ascending</option> </select> </div> </div> <div class="logooos_sectionTitle">Layout</div> <div class="logooos_rowsContainer" > <div class="row"> <label for="logooos_layout">Layout</label> <select id="logooos_layout" name="logooos_layout"> <option value="slider" <?php if($layout == 'slider'){ echo 'selected'; } ?> >Slider</option> <option value="grid" <?php if($layout == 'grid'){ echo 'selected'; } ?> >Grid</option> <option value="list" <?php if($layout == 'list'){ echo 'selected'; } ?> >List</option> </select> </div> <div class="row logooos_slider_option logooos_grid_option"> <label for="logooos_columnsNumberList">Columns Number</label> <select id="logooos_columnsNumberList" name="logooos_columnsNumberList"> <option value="1" <?php if($columns == '1'){ echo 'selected'; } ?> >1</option> <option value="2" <?php if($columns == '2'){ echo 'selected'; } ?> >2</option> <option value="3" <?php if($columns == '3'){ echo 'selected'; } ?> >3</option> <option value="4" <?php if($columns == '4'){ echo 'selected'; } ?> >4</option> <option value="5" <?php if($columns == '5'){ echo 'selected'; } ?> >5</option> <option value="6" <?php if($columns == '6'){ echo 'selected'; } ?> >6</option> <option value="7" <?php if($columns == '7'){ echo 'selected'; } ?> >7</option> <option value="8" <?php if($columns == '8'){ echo 'selected'; } ?> >8</option> <option value="9" <?php if($columns == '9'){ echo 'selected'; } ?> >9</option> <option value="10" <?php if($columns == '10'){ echo 'selected'; } ?> >10</option> </select> </div> <div class="row"> <label for="logooos_itemsHeightPercentage">Item Height</label> <select id="logooos_itemsHeightPercentage" name="logooos_itemsHeightPercentage"> <option value="1.50" <?php if($itemsheightpercentage == '1.50'){ echo 'selected'; } ?> >150% of item width</option> <option value="1.45" <?php if($itemsheightpercentage == '1.45'){ echo 'selected'; } ?> >145% of item width</option> <option value="1.40" <?php if($itemsheightpercentage == '1.40'){ echo 'selected'; } ?> >140% of item width</option> <option value="1.35" <?php if($itemsheightpercentage == '1.35'){ echo 'selected'; } ?> >135% of item width</option> <option value="1.30" <?php if($itemsheightpercentage == '1.30'){ echo 'selected'; } ?> >130% of item width</option> <option value="1.25" <?php if($itemsheightpercentage == '1.25'){ echo 'selected'; } ?> >125% of item width</option> <option value="1.20" <?php if($itemsheightpercentage == '1.20'){ echo 'selected'; } ?> >120% of item width</option> <option value="1.15" <?php if($itemsheightpercentage == '1.15'){ echo 'selected'; } ?> >115% of item width</option> <option value="1.10" <?php if($itemsheightpercentage == '1.10'){ echo 'selected'; } ?> >110% of item width</option> <option value="1.05" <?php if($itemsheightpercentage == '1.05'){ echo 'selected'; } ?> >105% of item width</option> <option value="1.00" <?php if($itemsheightpercentage == '1.00'){ echo 'selected'; } ?> >100% of item width</option> <option value="0.95" <?php if($itemsheightpercentage == '0.95'){ echo 'selected'; } ?> >95% of item width</option> <option value="0.90" <?php if($itemsheightpercentage == '0.90'){ echo 'selected'; } ?> >90% of item width</option> <option value="0.85" <?php if($itemsheightpercentage == '0.85'){ echo 'selected'; } ?> >85% of item width</option> <option value="0.80" <?php if($itemsheightpercentage == '0.80'){ echo 'selected'; } ?> >80% of item width</option> <option value="0.75" <?php if($itemsheightpercentage == '0.75'){ echo 'selected'; } ?> >75% of item width</option> <option value="0.70" <?php if($itemsheightpercentage == '0.70'){ echo 'selected'; } ?> >70% of item width</option> <option value="0.65" <?php if($itemsheightpercentage == '0.65'){ echo 'selected'; } ?> >65% of item width</option> <option value="0.60" <?php if($itemsheightpercentage == '0.60'){ echo 'selected'; } ?> >60% of item width</option> <option value="0.55" <?php if($itemsheightpercentage == '0.55'){ echo 'selected'; } ?> >55% of item width</option> <option value="0.50" <?php if($itemsheightpercentage == '0.50'){ echo 'selected'; } ?> >50% of item width</option> <option value="0.45" <?php if($itemsheightpercentage == '0.45'){ echo 'selected'; } ?> >45% of item width</option> <option value="0.40" <?php if($itemsheightpercentage == '0.40'){ echo 'selected'; } ?> >40% of item width</option> <option value="0.35" <?php if($itemsheightpercentage == '0.35'){ echo 'selected'; } ?> >35% of item width</option> <option value="0.30" <?php if($itemsheightpercentage == '0.30'){ echo 'selected'; } ?> >30% of item width</option> <option value="0.25" <?php if($itemsheightpercentage == '0.25'){ echo 'selected'; } ?> >25% of item width</option> <option value="0.20" <?php if($itemsheightpercentage == '0.20'){ echo 'selected'; } ?> >20% of item width</option> <option value="0.15" <?php if($itemsheightpercentage == '0.15'){ echo 'selected'; } ?> >15% of item width</option> <option value="0.10" <?php if($itemsheightpercentage == '0.10'){ echo 'selected'; } ?> >10% of item width</option> </select> </div> <div class="row logooos_slider_option logooos_grid_option"> <label for="logooos_marginBetweenItems">Margin between items</label> <select id="logooos_marginBetweenItems" name="logooos_marginBetweenItems"> <option value="" <?php if($marginbetweenitems == ''){ echo 'selected'; } ?> >0px</option> <option value="5px" <?php if($marginbetweenitems == '5px'){ echo 'selected'; } ?> >5px</option> <option value="10px" <?php if($marginbetweenitems == '10px'){ echo 'selected'; } ?> >10px</option> <option value="15px" <?php if($marginbetweenitems == '15px'){ echo 'selected'; } ?> >15px</option> <option value="20px" <?php if($marginbetweenitems == '20px'){ echo 'selected'; } ?> >20px</option> <option value="25px" <?php if($marginbetweenitems == '25px'){ echo 'selected'; } ?> >25px</option> <option value="30px" <?php if($marginbetweenitems == '30px'){ echo 'selected'; } ?> >30px</option> </select> </div> <div class="row logooos_slider_option logooos_grid_option"> <label for="logooos_tooltipList">Tooltip</label> <select id="logooos_tooltipList" name="logooos_tooltipList"> <option value="enabled" <?php if($tooltip == 'enabled'){ echo 'selected'; } ?> >enabled</option> <option value="disabled" <?php if($tooltip == 'disabled'){ echo 'selected'; } ?> >disabled</option> </select> </div> <div class="row"> <label for="logooos_responsiveList">Responsive</label> <select id="logooos_responsiveList" name="logooos_responsiveList"> <option value="enabled" <?php if($responsive == 'enabled'){ echo 'selected'; } ?> >enabled</option> <option value="disabled" <?php if($responsive == 'disabled'){ echo 'selected'; } ?> >disabled</option> </select> </div> </div> <div class="logooos_sectionTitle">Items Style</div> <div class="logooos_rowsContainer" > <div class="row"> <label for="logooos_border">Border</label> <select id="logooos_border" name="logooos_border"> <option value="enabled" <?php if($border == 'enabled'){ echo 'selected'; } ?> >enabled</option> <option value="disabled" <?php if($border == 'disabled'){ echo 'selected'; } ?> >disabled</option> </select> </div> <div class="row logooos_border_option"> <label for="logooos_borderColor">Border Color</label> <input type="text" id="logooos_borderColor" name="logooos_borderColor" value="<?php echo $bordercolor; ?>" /> <div id="logooos_borderColor_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_borderColor_btn" name="logooos_borderColor_btn" value="View Color" class="button-primary" /> </div> <div class="row"> <label for="logooos_borderRadius">Border Radius</label> <select id="logooos_borderRadius" name="logooos_borderRadius"> <option value="logooos_no_radius" <?php if($borderradius == 'logooos_no_radius'){ echo 'selected'; } ?> >no radius</option> <option value="logooos_small_radius" <?php if($borderradius == 'logooos_small_radius'){ echo 'selected'; } ?> >small radius</option> <option value="logooos_medium_radius" <?php if($borderradius == 'logooos_medium_radius'){ echo 'selected'; } ?> >medium radius</option> <option value="logooos_large_radius" <?php if($borderradius == 'logooos_large_radius'){ echo 'selected'; } ?> >large radius</option> </select> </div> <div class="row"> <label for="logooos_bgColorInput">Items Background Color</label> <input type="text" id="logooos_bgColorInput" name="logooos_bgColorInput" value="<?php echo $backgroundcolor; ?>" /> <div id="logooos_bgColorInput_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_bgColorInput_btn" name="logooos_bgColorInput_btn" value="View Color" class="button-primary" /> </div> </div> <div class="logooos_list_option logooos_sectionTitle">List Dividers Style</div> <div class="logooos_list_option logooos_rowsContainer" > <div class="row logooos_list_option"> <label for="logooos_list_border">List Border</label> <select id="logooos_list_border" name="logooos_list_border"> <option value="enabled" <?php if($listborder == 'enabled'){ echo 'selected'; } ?> >enabled</option> <option value="disabled" <?php if($listborder == 'disabled'){ echo 'selected'; } ?> >disabled</option> </select> </div> <div class="row logooos_list_option logooos_list_border_option"> <label for="logooos_listBorderColor">List Border Color</label> <input type="text" id="logooos_listBorderColor" name="logooos_listBorderColor" value="<?php echo $listbordercolor; ?>" /> <div id="logooos_listBorderColor_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_listBorderColor_btn" name="logooos_listBorderColor_btn" value="View Color" class="button-primary" /> </div> <div class="row logooos_list_option logooos_list_border_option"> <label for="logooos_list_border_style">List Border Style</label> <select id="logooos_list_border_style" name="logooos_list_border_style"> <option value="dashed" <?php if($listborderstyle == 'dashed'){ echo 'selected'; } ?> >dashed</option> <option value="solid" <?php if($listborderstyle == 'solid'){ echo 'selected'; } ?> >solid</option> </select> </div> </div> <div class="logooos_sectionTitle">Hover Effect</div> <div class="logooos_rowsContainer" > <div class="row"> <label for="logooos_hovereffect">Hover effect</label> <select id="logooos_hovereffect" name="logooos_hovereffect"> <option value="" <?php if($hovereffect == ''){ echo 'selected'; } ?> >None</option> <option value="effect1" <?php if($hovereffect == 'effect1'){ echo 'selected'; } ?> >Effect 1 ( outer shadow )</option> <option value="effect2" <?php if($hovereffect == 'effect2'){ echo 'selected'; } ?> >Effect 2 ( inner shadow )</option> <option value="effect3" <?php if($hovereffect == 'effect3'){ echo 'selected'; } ?> >Effect 3 ( border color )</option> <option value="effect4" <?php if($hovereffect == 'effect4'){ echo 'selected'; } ?> >Effect 4 ( fading )</option> </select> </div> <div class="row logooos_hovereffect_option"> <label for="logooos_hoverEffectColor">Hover effect color</label> <input type="text" id="logooos_hoverEffectColor" name="logooos_hoverEffectColor" value="<?php echo $hovereffectcolor; ?>" /> <div id="logooos_hoverEffectColor_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_hoverEffectColor_btn" name="logooos_hoverEffectColor_btn" value="View Color" class="button-primary" /> </div> <div class="row"> <label for="logooos_grayscaleList">Grayscale</label> <select id="logooos_grayscaleList" name="logooos_grayscaleList"> <option value="enabled" <?php if($grayscale == 'enabled'){ echo 'selected'; } ?> >enabled</option> <option value="disabled" <?php if($grayscale == 'disabled'){ echo 'selected'; } ?> >disabled</option> </select> </div> </div> <div class="logooos_sectionTitle">On Click Event</div> <div class="logooos_rowsContainer" > <div class="row"> <label for="logooos_onClickAction">Action</label> <select id="logooos_onClickAction" name="logooos_onClickAction"> <option value="none" <?php if($onclickaction == 'none'){ echo 'selected'; } ?> >none</option> <option value="openLink" <?php if($onclickaction == 'openLink'){ echo 'selected'; } ?> >open link</option> <option value="showDetails" <?php if($onclickaction == 'showDetails'){ echo 'selected'; } ?> >show details</option> </select> </div> </div> <div class="logooos_details_area_option logooos_sectionTitle">Details Area Style</div> <div class="logooos_details_area_option logooos_rowsContainer" > <div class="row logooos_details_area_option"> <label for="logooos_detailsArea_padding">Padding</label> <select id="logooos_detailsArea_padding" name="logooos_detailsArea_padding"> <option value="0px" <?php if($detailsarea_padding == '0px'){ echo 'selected'; } ?> >0px</option> <option value="5px" <?php if($detailsarea_padding == '5px'){ echo 'selected'; } ?> >5px</option> <option value="10px" <?php if($detailsarea_padding == '10px'){ echo 'selected'; } ?> >10px</option> <option value="15px" <?php if($detailsarea_padding == '15px'){ echo 'selected'; } ?> >15px</option> <option value="20px" <?php if($detailsarea_padding == '20px'){ echo 'selected'; } ?> >20px</option> <option value="25px" <?php if($detailsarea_padding == '25px'){ echo 'selected'; } ?> >25px</option> <option value="30px" <?php if($detailsarea_padding == '30px'){ echo 'selected'; } ?> >30px</option> </select> </div> <div class="row logooos_details_area_option"> <label for="logooos_detailsArea_bgColor">Background Color</label> <input type="text" id="logooos_detailsArea_bgColor" name="logooos_detailsArea_bgColor" value="<?php echo $detailsarea_bgcolor; ?>" /> <div id="logooos_detailsArea_bgColor_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_detailsArea_bgColor_btn" name="logooos_detailsArea_bgColor_btn" value="View Color" class="button-primary" /> </div> <div class="row logooos_details_area_option"> <label for="logooos_detailsArea_closeBtnColor">Close Button Color</label> <input type="text" id="logooos_detailsArea_closeBtnColor" name="logooos_detailsArea_closeBtnColor" value="<?php echo $detailsarea_closebtncolor; ?>" /> <div id="logooos_detailsArea_closeBtnColor_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_detailsArea_closeBtnColor_btn" name="logooos_detailsArea_closeBtnColor_btn" value="View Color" class="button-primary" /> </div> <div class="row logooos_details_area_option"> <label for="logooos_detailsArea_border">Border</label> <select id="logooos_detailsArea_border" name="logooos_detailsArea_border"> <option value="enabled" <?php if($detailsarea_border == 'enabled'){ echo 'selected'; } ?> >enabled</option> <option value="disabled" <?php if($detailsarea_border == 'disabled'){ echo 'selected'; } ?> >disabled</option> </select> </div> <div class="row logooos_details_area_option logooos_details_area_border_option"> <label for="logooos_detailsArea_borderColor">Border Color</label> <input type="text" id="logooos_detailsArea_borderColor" name="logooos_detailsArea_borderColor" value="<?php echo $detailsarea_bordercolor; ?>" /> <div id="logooos_detailsArea_borderColor_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_detailsArea_borderColor_btn" name="logooos_detailsArea_borderColor_btn" value="View Color" class="button-primary" /> </div> <div class="row logooos_details_area_option"> <label for="logooos_detailsArea_logo">Logo</label> <select id="logooos_detailsArea_logo" name="logooos_detailsArea_logo"> <option value="enabled" <?php if($detailsarea_logo == 'enabled'){ echo 'selected'; } ?> >enabled</option> <option value="disabled" <?php if($detailsarea_logo == 'disabled'){ echo 'selected'; } ?> >disabled</option> </select> </div> <div class="row logooos_details_area_option logooos_details_area_logo_option"> <label for="logooos_detailsArea_logoBorder">Logo Border</label> <select id="logooos_detailsArea_logoBorder" name="logooos_detailsArea_logoBorder"> <option value="enabled" <?php if($detailsarea_logoborder == 'enabled'){ echo 'selected'; } ?> >enabled</option> <option value="disabled" <?php if($detailsarea_logoborder == 'disabled'){ echo 'selected'; } ?> >disabled</option> </select> </div> <div class="row logooos_details_area_option logooos_details_area_logoborder_option logooos_details_area_logo_option"> <label for="logooos_detailsArea_logoBorderColor">Logo Border Color</label> <input type="text" id="logooos_detailsArea_logoBorderColor" name="logooos_detailsArea_logoBorderColor" value="<?php echo $detailsarea_logobordercolor; ?>" /> <div id="logooos_detailsArea_logoBorderColor_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_detailsArea_logoBorderColor_btn" name="logooos_detailsArea_logoBorderColor_btn" value="View Color" class="button-primary" /> </div> <div class="row logooos_details_area_option logooos_details_area_logo_option"> <label for="logooos_detailsArea_logoBgColor">Logo Background Color</label> <input type="text" id="logooos_detailsArea_logoBgColor" name="logooos_detailsArea_logoBgColor" value="<?php echo $detailsarea_logobgcolor; ?>" /> <div id="logooos_detailsArea_logoBgColor_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_detailsArea_logoBgColor_btn" name="logooos_detailsArea_logoBgColor_btn" value="View Color" class="button-primary" /> </div> </div> <div class="logooos_slider_option logooos_sectionTitle">Slider Settings</div> <div class="logooos_slider_option logooos_rowsContainer" > <div class="row logooos_slider_option"> <label for="logooos_autoplay">Auto Play</label> <select id="logooos_autoplay" name="logooos_autoplay"> <option value="true" <?php if($autoplay == 'true'){ echo 'selected'; } ?> >true</option> <option value="false" <?php if($autoplay == 'false'){ echo 'selected'; } ?> >false</option> </select> </div> <div class="row logooos_slider_option"> <label for="logooos_transitionEffect">Transition Effect</label> <select id="logooos_transitionEffect" name="logooos_transitionEffect"> <option value="scroll" <?php if($transitioneffect == 'scroll'){ echo 'selected'; } ?> >scroll</option> <option value="fade" <?php if($transitioneffect == 'fade'){ echo 'selected'; } ?> >fade</option> </select> </div> <div class="row logooos_slider_option"> <label for="logooos_easingFunction">Easing Function</label> <select id="logooos_easingFunction" name="logooos_easingFunction"> <option value="linear" <?php if($easingfunction == 'linear'){ echo 'selected'; } ?> >linear</option> <option value="swing" <?php if($easingfunction == 'swing'){ echo 'selected'; } ?> >swing</option> <option value="quadratic" <?php if($easingfunction == 'quadratic'){ echo 'selected'; } ?> >quadratic</option> <option value="cubic" <?php if($easingfunction == 'cubic'){ echo 'selected'; } ?> >cubic</option> <option value="elastic" <?php if($easingfunction == 'elastic'){ echo 'selected'; } ?> >elastic</option> </select> </div> <div class="row logooos_slider_option"> <label for="logooos_scrollduration">Scroll Duration</label> <input type="text" id="logooos_scrollduration" name="logooos_scrollduration" value="<?php echo $scrollduration; ?>" /> </div> <div class="row logooos_slider_option"> <label for="logooos_pauseduration">Pause Duration</label> <input type="text" id="logooos_pauseduration" name="logooos_pauseduration" value="<?php echo $pauseduration; ?>" /> </div> <div class="row logooos_slider_option"> <label for="logooos_buttonsbordercolor">Buttons border color</label> <input type="text" id="logooos_buttonsbordercolor" name="logooos_buttonsbordercolor" value="<?php echo $buttonsbordercolor; ?>" /> <div id="logooos_buttonsbordercolor_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_buttonsbordercolor_btn" name="logooos_buttonsbordercolor_btn" value="View Color" class="button-primary" /> </div> <div class="row logooos_slider_option"> <label for="logooos_buttonsbgcolor">Buttons background color</label> <input type="text" id="logooos_buttonsbgcolor" name="logooos_buttonsbgcolor" value="<?php echo $buttonsbgcolor; ?>" /> <div id="logooos_buttonsbgcolor_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_buttonsbgcolor_btn" name="logooos_buttonsbgcolor_btn" value="View Color" class="button-primary" /> </div> <div class="row logooos_slider_option"> <label for="logooos_buttonsarrowscolor">Buttons arrows color</label> <select id="logooos_buttonsarrowscolor" name="logooos_buttonsarrowscolor"> <option value="darkgray" <?php if($buttonsarrowscolor == 'darkgray'){ echo 'selected'; } ?> >dark gray</option> <option value="lightgray" <?php if($buttonsarrowscolor == 'lightgray'){ echo 'selected'; } ?> >light gray</option> <option value="white" <?php if($buttonsarrowscolor == 'white'){ echo 'selected'; } ?> >white</option> </select> </div> </div> <div class="logooos_details_area_option logooos_list_option logooos_sectionTitle">Font Style</div> <div class="logooos_details_area_option logooos_list_option logooos_rowsContainer" > <div class="row logooos_details_area_option logooos_list_option"> <label for="logooos_font_style">Font Style</label> <select id="logooos_font_style" name="logooos_font_style"> <option value="custom" <?php if($fontstyle == "custom"){ echo 'selected'; } ?> >custom style</option> <option value="default" <?php if($fontstyle == "default"){ echo 'selected'; } ?> >current theme style</option> </select> </div> <div class="row logooos_details_area_option logooos_list_option logooos_font_option"> <label for="logooos_title_font_family">Title Font Family</label> <select id="logooos_title_font_family" name="logooos_title_font_family"> <option value="" <?php if($titlefontfamily == ""){ echo 'selected'; } ?> >current theme font</option> <option value="Georgia, serif" <?php if($titlefontfamily == "Georgia, serif"){ echo 'selected'; } ?> >Georgia</option> <option value="'Palatino Linotype', 'Book Antiqua', Palatino, serif" <?php if($titlefontfamily == "'Palatino Linotype', 'Book Antiqua', Palatino, serif"){ echo 'selected'; } ?> >Palatino Linotype</option> <option value="'Times New Roman', Times, serif" <?php if($titlefontfamily == "'Times New Roman', Times, serif"){ echo 'selected'; } ?> >Times New Roman</option> <option value="Arial, Helvetica, sans-serif" <?php if($titlefontfamily == "Arial, Helvetica, sans-serif"){ echo 'selected'; } ?> >Arial</option> <option value="'Arial Black', Gadget, sans-serif" <?php if($titlefontfamily == "'Arial Black', Gadget, sans-serif"){ echo 'selected'; } ?> >Arial Black</option> <option value="'Comic Sans MS', cursive, sans-serif" <?php if($titlefontfamily == "'Comic Sans MS', cursive, sans-serif"){ echo 'selected'; } ?> >Comic Sans MS</option> <option value="Impact, Charcoal, sans-serif" <?php if($titlefontfamily == "Impact, Charcoal, sans-serif"){ echo 'selected'; } ?> >Impact</option> <option value="'Lucida Sans Unicode', 'Lucida Grande', sans-serif" <?php if($titlefontfamily == "'Lucida Sans Unicode', 'Lucida Grande', sans-serif"){ echo 'selected'; } ?> >Lucida Sans Unicode</option> <option value="Tahoma, Geneva, sans-serif" <?php if($titlefontfamily == "Tahoma, Geneva, sans-serif"){ echo 'selected'; } ?> >Tahoma</option> <option value="'Trebuchet MS', Helvetica, sans-serif" <?php if($titlefontfamily == "'Trebuchet MS', Helvetica, sans-serif"){ echo 'selected'; } ?> >Trebuchet MS</option> <option value="Verdana, Geneva, sans-serif" <?php if($titlefontfamily == "Verdana, Geneva, sans-serif"){ echo 'selected'; } ?> >Verdana</option> <option value="'Courier New', Courier, monospace" <?php if($titlefontfamily == "'Courier New', Courier, monospace"){ echo 'selected'; } ?> >Courier New</option> <option value="'Lucida Console', Monaco, monospace" <?php if($titlefontfamily == "'Lucida Console', Monaco, monospace"){ echo 'selected'; } ?> >Lucida Console</option> </select> </div> <div class="row logooos_details_area_option logooos_list_option logooos_font_option"> <label for="logooos_title_font_color">Title Font Color</label> <input type="text" id="logooos_title_font_color" name="logooos_title_font_color" value="<?php echo $titlefontcolor; ?>" placeholder="<?php echo $titlefontcolor; ?>" /> <div id="logooos_title_font_color_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_title_font_color_btn" name="logooos_title_font_color_btn" value="View Color" class="button-primary" /> </div> <div class="row logooos_details_area_option logooos_list_option logooos_font_option"> <label for="logooos_title_font_size">Title Font Size</label> <select id="logooos_title_font_size" name="logooos_title_font_size"> <option value="9px" <?php if($titlefontsize == '9px'){ echo 'selected'; } ?> >9px</option> <option value="10px" <?php if($titlefontsize == '10px'){ echo 'selected'; } ?> >10px</option> <option value="11px" <?php if($titlefontsize == '11px'){ echo 'selected'; } ?> >11px</option> <option value="12px" <?php if($titlefontsize == '12px'){ echo 'selected'; } ?> >12px</option> <option value="13px" <?php if($titlefontsize == '13px'){ echo 'selected'; } ?> >13px</option> <option value="14px" <?php if($titlefontsize == '14px'){ echo 'selected'; } ?> >14px</option> <option value="15px" <?php if($titlefontsize == '15px'){ echo 'selected'; } ?> >15px</option> <option value="16px" <?php if($titlefontsize == '16px'){ echo 'selected'; } ?> >16px</option> <option value="17px" <?php if($titlefontsize == '17px'){ echo 'selected'; } ?> >17px</option> <option value="18px" <?php if($titlefontsize == '18px'){ echo 'selected'; } ?> >18px</option> <option value="19px" <?php if($titlefontsize == '19px'){ echo 'selected'; } ?> >19px</option> <option value="20px" <?php if($titlefontsize == '20px'){ echo 'selected'; } ?> >20px</option> <option value="21px" <?php if($titlefontsize == '21px'){ echo 'selected'; } ?> >21px</option> <option value="22px" <?php if($titlefontsize == '22px'){ echo 'selected'; } ?> >22px</option> <option value="23px" <?php if($titlefontsize == '23px'){ echo 'selected'; } ?> >23px</option> <option value="24px" <?php if($titlefontsize == '24px'){ echo 'selected'; } ?> >24px</option> <option value="25px" <?php if($titlefontsize == '25px'){ echo 'selected'; } ?> >25px</option> <option value="26px" <?php if($titlefontsize == '26px'){ echo 'selected'; } ?> >26px</option> <option value="27px" <?php if($titlefontsize == '27px'){ echo 'selected'; } ?> >27px</option> <option value="28px" <?php if($titlefontsize == '28px'){ echo 'selected'; } ?> >28px</option> <option value="29px" <?php if($titlefontsize == '29px'){ echo 'selected'; } ?> >29px</option> <option value="30px" <?php if($titlefontsize == '30px'){ echo 'selected'; } ?> >30px</option> <option value="31px" <?php if($titlefontsize == '31px'){ echo 'selected'; } ?> >31px</option> <option value="32px" <?php if($titlefontsize == '32px'){ echo 'selected'; } ?> >32px</option> <option value="33px" <?php if($titlefontsize == '33px'){ echo 'selected'; } ?> >33px</option> <option value="34px" <?php if($titlefontsize == '34px'){ echo 'selected'; } ?> >34px</option> <option value="35px" <?php if($titlefontsize == '35px'){ echo 'selected'; } ?> >35px</option> <option value="36px" <?php if($titlefontsize == '36px'){ echo 'selected'; } ?> >36px</option> </select> </div> <div class="row logooos_details_area_option logooos_list_option logooos_font_option"> <label for="logooos_title_font_weight">Title Font Weight</label> <select id="logooos_title_font_weight" name="logooos_title_font_weight"> <option value="bold" <?php if($titlefontweight == 'bold'){ echo 'selected'; } ?> >bold</option> <option value="normal" <?php if($titlefontweight == 'normal'){ echo 'selected'; } ?> >normal</option> </select> </div> <div class="row logooos_details_area_option logooos_list_option logooos_font_option"> <label for="logooos_text_font_family">Text Font Family</label> <select id="logooos_text_font_family" name="logooos_text_font_family"> <option value="" <?php if($textfontfamily == ""){ echo 'selected'; } ?> >current theme font</option> <option value="Georgia, serif" <?php if($textfontfamily == "Georgia, serif"){ echo 'selected'; } ?> >Georgia</option> <option value="'Palatino Linotype', 'Book Antiqua', Palatino, serif" <?php if($textfontfamily == "'Palatino Linotype', 'Book Antiqua', Palatino, serif"){ echo 'selected'; } ?> >Palatino Linotype</option> <option value="'Times New Roman', Times, serif" <?php if($textfontfamily == "'Times New Roman', Times, serif"){ echo 'selected'; } ?> >Times New Roman</option> <option value="Arial, Helvetica, sans-serif" <?php if($textfontfamily == "Arial, Helvetica, sans-serif"){ echo 'selected'; } ?> >Arial</option> <option value="'Arial Black', Gadget, sans-serif" <?php if($textfontfamily == "'Arial Black', Gadget, sans-serif"){ echo 'selected'; } ?> >Arial Black</option> <option value="'Comic Sans MS', cursive, sans-serif" <?php if($textfontfamily == "'Comic Sans MS', cursive, sans-serif"){ echo 'selected'; } ?> >Comic Sans MS</option> <option value="Impact, Charcoal, sans-serif" <?php if($textfontfamily == "Impact, Charcoal, sans-serif"){ echo 'selected'; } ?> >Impact</option> <option value="'Lucida Sans Unicode', 'Lucida Grande', sans-serif" <?php if($textfontfamily == "'Lucida Sans Unicode', 'Lucida Grande', sans-serif"){ echo 'selected'; } ?> >Lucida Sans Unicode</option> <option value="Tahoma, Geneva, sans-serif" <?php if($textfontfamily == "Tahoma, Geneva, sans-serif"){ echo 'selected'; } ?> >Tahoma</option> <option value="'Trebuchet MS', Helvetica, sans-serif" <?php if($textfontfamily == "'Trebuchet MS', Helvetica, sans-serif"){ echo 'selected'; } ?> >Trebuchet MS</option> <option value="Verdana, Geneva, sans-serif" <?php if($textfontfamily == "Verdana, Geneva, sans-serif"){ echo 'selected'; } ?> >Verdana</option> <option value="'Courier New', Courier, monospace" <?php if($textfontfamily == "'Courier New', Courier, monospace"){ echo 'selected'; } ?> >Courier New</option> <option value="'Lucida Console', Monaco, monospace" <?php if($textfontfamily == "'Lucida Console', Monaco, monospace"){ echo 'selected'; } ?> >Lucida Console</option> </select> </div> <div class="row logooos_details_area_option logooos_list_option logooos_font_option"> <label for="logooos_text_font_color">Text Font Color</label> <input type="text" id="logooos_text_font_color" name="logooos_text_font_color" value="<?php echo $textfontcolor; ?>" placeholder="<?php echo $textfontcolor; ?>" /> <div id="logooos_text_font_color_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_text_font_color_btn" name="logooos_text_font_color_btn" value="View Color" class="button-primary" /> </div> <div class="row logooos_details_area_option logooos_list_option logooos_font_option"> <label for="logooos_text_font_size">Text Font Size</label> <select id="logooos_text_font_size" name="logooos_text_font_size"> <option value="9px" <?php if($textfontsize == '9px'){ echo 'selected'; } ?> >9px</option> <option value="10px" <?php if($textfontsize == '10px'){ echo 'selected'; } ?> >10px</option> <option value="11px" <?php if($textfontsize == '11px'){ echo 'selected'; } ?> >11px</option> <option value="12px" <?php if($textfontsize == '12px'){ echo 'selected'; } ?> >12px</option> <option value="13px" <?php if($textfontsize == '13px'){ echo 'selected'; } ?> >13px</option> <option value="14px" <?php if($textfontsize == '14px'){ echo 'selected'; } ?> >14px</option> <option value="15px" <?php if($textfontsize == '15px'){ echo 'selected'; } ?> >15px</option> <option value="16px" <?php if($textfontsize == '16px'){ echo 'selected'; } ?> >16px</option> <option value="17px" <?php if($textfontsize == '17px'){ echo 'selected'; } ?> >17px</option> <option value="18px" <?php if($textfontsize == '18px'){ echo 'selected'; } ?> >18px</option> <option value="19px" <?php if($textfontsize == '19px'){ echo 'selected'; } ?> >19px</option> <option value="20px" <?php if($textfontsize == '20px'){ echo 'selected'; } ?> >20px</option> <option value="21px" <?php if($textfontsize == '21px'){ echo 'selected'; } ?> >21px</option> <option value="22px" <?php if($textfontsize == '22px'){ echo 'selected'; } ?> >22px</option> <option value="23px" <?php if($textfontsize == '23px'){ echo 'selected'; } ?> >23px</option> <option value="24px" <?php if($textfontsize == '24px'){ echo 'selected'; } ?> >24px</option> <option value="25px" <?php if($textfontsize == '25px'){ echo 'selected'; } ?> >25px</option> <option value="26px" <?php if($textfontsize == '26px'){ echo 'selected'; } ?> >26px</option> <option value="27px" <?php if($textfontsize == '27px'){ echo 'selected'; } ?> >27px</option> <option value="28px" <?php if($textfontsize == '28px'){ echo 'selected'; } ?> >28px</option> <option value="29px" <?php if($textfontsize == '29px'){ echo 'selected'; } ?> >29px</option> <option value="30px" <?php if($textfontsize == '30px'){ echo 'selected'; } ?> >30px</option> <option value="31px" <?php if($textfontsize == '31px'){ echo 'selected'; } ?> >31px</option> <option value="32px" <?php if($textfontsize == '32px'){ echo 'selected'; } ?> >32px</option> <option value="33px" <?php if($textfontsize == '33px'){ echo 'selected'; } ?> >33px</option> <option value="34px" <?php if($textfontsize == '34px'){ echo 'selected'; } ?> >34px</option> <option value="35px" <?php if($textfontsize == '35px'){ echo 'selected'; } ?> >35px</option> <option value="36px" <?php if($textfontsize == '36px'){ echo 'selected'; } ?> >36px</option> </select> </div> <div class="row logooos_list_option"> <label for="logooos_excerptText_length">Excerpt Text Length</label> <input type="text" id="logooos_excerptText_length" name="logooos_excerptText_length" value="<?php echo $excerpttextlength; ?>" placeholder="<?php echo $excerpttextlength; ?>" /> </div> </div> <div class="logooos_list_option logooos_sectionTitle">More Link</div> <div class="logooos_list_option logooos_rowsContainer" > <div class="row logooos_list_option"> <label for="logooos_moreLinkText">More Link Text</label> <input type="text" id="logooos_moreLinkText" name="logooos_moreLinkText" value="<?php echo $morelinktext; ?>" /> </div> <div class="row logooos_list_option logooos_font_option"> <label for="logooos_more_link_text_color">More Link Text Color</label> <input type="text" id="logooos_more_link_text_color" name="logooos_more_link_text_color" value="<?php echo $morelinktextcolor; ?>" placeholder="<?php echo $morelinktextcolor; ?>" /> <div id="logooos_more_link_text_color_colorpicker" class="logooos_farbtastic"></div> <input type="button" id="logooos_more_link_text_color_btn" name="logooos_more_link_text_color_btn" value="View Color" class="button-primary" /> </div> </div>
</div> <?php } /*======================================================================================================================================================================== Save logooo_sc Options Meta Box Function ========================================================================================================================================================================*/ function logooo_sc_save_meta_box($post_id) { /*---------------------------------------------------------------------- shortcode ----------------------------------------------------------------------*/ if(isset($_POST['logooos_shortcode'])) { update_post_meta($post_id, 'shortcode', $_POST['logooos_shortcode']); } /*---------------------------------------------------------------------- Category ----------------------------------------------------------------------*/ if(isset($_POST['logooos_categoriesList'])) { update_post_meta($post_id, 'category', $_POST['logooos_categoriesList']); } /*---------------------------------------------------------------------- Number of items ----------------------------------------------------------------------*/ if(isset($_POST['logooos_NumberInput'])) { update_post_meta($post_id, 'num', $_POST['logooos_NumberInput']); } /*---------------------------------------------------------------------- Order by ----------------------------------------------------------------------*/ if(isset($_POST['logooos_orderByList'])) { update_post_meta($post_id, 'orderby', $_POST['logooos_orderByList']); } /*---------------------------------------------------------------------- Order ----------------------------------------------------------------------*/ if(isset($_POST['logooos_orderList'])) { update_post_meta($post_id, 'order', $_POST['logooos_orderList']); } /*---------------------------------------------------------------------- Layout ----------------------------------------------------------------------*/ if(isset($_POST['logooos_layout'])) { update_post_meta($post_id, 'layout', $_POST['logooos_layout']); } /*---------------------------------------------------------------------- Columns ----------------------------------------------------------------------*/ if(isset($_POST['logooos_columnsNumberList'])) { update_post_meta($post_id, 'columns', $_POST['logooos_columnsNumberList']); } /*---------------------------------------------------------------------- Items height percentage ----------------------------------------------------------------------*/ if(isset($_POST['logooos_itemsHeightPercentage'])) { update_post_meta($post_id, 'itemsheightpercentage', $_POST['logooos_itemsHeightPercentage']); } /*---------------------------------------------------------------------- Margin between items ----------------------------------------------------------------------*/ if(isset($_POST['logooos_marginBetweenItems'])) { update_post_meta($post_id, 'marginbetweenitems', $_POST['logooos_marginBetweenItems']); } /*---------------------------------------------------------------------- Tooltip ----------------------------------------------------------------------*/ if(isset($_POST['logooos_tooltipList'])) { update_post_meta($post_id, 'tooltip', $_POST['logooos_tooltipList']); } /*---------------------------------------------------------------------- Responsive ----------------------------------------------------------------------*/ if(isset($_POST['logooos_responsiveList'])) { update_post_meta($post_id, 'responsive', $_POST['logooos_responsiveList']); } /*---------------------------------------------------------------------- Border ----------------------------------------------------------------------*/ if(isset($_POST['logooos_border'])) { update_post_meta($post_id, 'border', $_POST['logooos_border']); } /*---------------------------------------------------------------------- Border color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_borderColor'])) { update_post_meta($post_id, 'bordercolor', $_POST['logooos_borderColor']); } /*---------------------------------------------------------------------- Border radius ----------------------------------------------------------------------*/ if(isset($_POST['logooos_borderRadius'])) { update_post_meta($post_id, 'borderradius', $_POST['logooos_borderRadius']); } /*---------------------------------------------------------------------- Background color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_bgColorInput'])) { update_post_meta($post_id, 'backgroundcolor', $_POST['logooos_bgColorInput']); } /*---------------------------------------------------------------------- List border ----------------------------------------------------------------------*/ if(isset($_POST['logooos_list_border'])) { update_post_meta($post_id, 'listborder', $_POST['logooos_list_border']); } /*---------------------------------------------------------------------- list border color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_listBorderColor'])) { update_post_meta($post_id, 'listbordercolor', $_POST['logooos_listBorderColor']); } /*---------------------------------------------------------------------- list border style ----------------------------------------------------------------------*/ if(isset($_POST['logooos_list_border_style'])) { update_post_meta($post_id, 'listborderstyle', $_POST['logooos_list_border_style']); } /*---------------------------------------------------------------------- hover effect ----------------------------------------------------------------------*/ if(isset($_POST['logooos_hovereffect'])) { update_post_meta($post_id, 'hovereffect', $_POST['logooos_hovereffect']); } /*---------------------------------------------------------------------- hover effect color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_hoverEffectColor'])) { update_post_meta($post_id, 'hovereffectcolor', $_POST['logooos_hoverEffectColor']); } /*---------------------------------------------------------------------- grayscale ----------------------------------------------------------------------*/ if(isset($_POST['logooos_grayscaleList'])) { update_post_meta($post_id, 'grayscale', $_POST['logooos_grayscaleList']); } /*---------------------------------------------------------------------- on click action ----------------------------------------------------------------------*/ if(isset($_POST['logooos_onClickAction'])) { update_post_meta($post_id, 'onclickaction', $_POST['logooos_onClickAction']); } /*---------------------------------------------------------------------- details area padding ----------------------------------------------------------------------*/ if(isset($_POST['logooos_detailsArea_padding'])) { update_post_meta($post_id, 'detailsarea_padding', $_POST['logooos_detailsArea_padding']); } /*---------------------------------------------------------------------- details area bg color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_detailsArea_bgColor'])) { update_post_meta($post_id, 'detailsarea_bgcolor', $_POST['logooos_detailsArea_bgColor']); } /*---------------------------------------------------------------------- details area close btn color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_detailsArea_closeBtnColor'])) { update_post_meta($post_id, 'detailsarea_closebtncolor', $_POST['logooos_detailsArea_closeBtnColor']); } /*---------------------------------------------------------------------- details area border ----------------------------------------------------------------------*/ if(isset($_POST['logooos_detailsArea_border'])) { update_post_meta($post_id, 'detailsarea_border', $_POST['logooos_detailsArea_border']); } /*---------------------------------------------------------------------- details area border color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_detailsArea_borderColor'])) { update_post_meta($post_id, 'detailsarea_bordercolor', $_POST['logooos_detailsArea_borderColor']); } /*---------------------------------------------------------------------- details area logo ----------------------------------------------------------------------*/ if(isset($_POST['logooos_detailsArea_logo'])) { update_post_meta($post_id, 'detailsarea_logo', $_POST['logooos_detailsArea_logo']); } /*---------------------------------------------------------------------- details area logo border ----------------------------------------------------------------------*/ if(isset($_POST['logooos_detailsArea_logoBorder'])) { update_post_meta($post_id, 'detailsarea_logoborder', $_POST['logooos_detailsArea_logoBorder']); } /*---------------------------------------------------------------------- details area logo border color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_detailsArea_logoBorderColor'])) { update_post_meta($post_id, 'detailsarea_logobordercolor', $_POST['logooos_detailsArea_logoBorderColor']); } /*---------------------------------------------------------------------- details area logo bg color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_detailsArea_logoBgColor'])) { update_post_meta($post_id, 'detailsarea_logobgcolor', $_POST['logooos_detailsArea_logoBgColor']); } /*---------------------------------------------------------------------- autoplay ----------------------------------------------------------------------*/ if(isset($_POST['logooos_autoplay'])) { update_post_meta($post_id, 'autoplay', $_POST['logooos_autoplay']); } /*---------------------------------------------------------------------- transition effect ----------------------------------------------------------------------*/ if(isset($_POST['logooos_transitionEffect'])) { update_post_meta($post_id, 'transitioneffect', $_POST['logooos_transitionEffect']); } /*---------------------------------------------------------------------- easing function ----------------------------------------------------------------------*/ if(isset($_POST['logooos_easingFunction'])) { update_post_meta($post_id, 'easingfunction', $_POST['logooos_easingFunction']); } /*---------------------------------------------------------------------- scroll duration ----------------------------------------------------------------------*/ if(isset($_POST['logooos_scrollduration'])) { update_post_meta($post_id, 'scrollduration', $_POST['logooos_scrollduration']); } /*---------------------------------------------------------------------- pause duration ----------------------------------------------------------------------*/ if(isset($_POST['logooos_pauseduration'])) { update_post_meta($post_id, 'pauseduration', $_POST['logooos_pauseduration']); } /*---------------------------------------------------------------------- buttons border color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_buttonsbordercolor'])) { update_post_meta($post_id, 'buttonsbordercolor', $_POST['logooos_buttonsbordercolor']); } /*---------------------------------------------------------------------- buttons bg color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_buttonsbgcolor'])) { update_post_meta($post_id, 'buttonsbgcolor', $_POST['logooos_buttonsbgcolor']); } /*---------------------------------------------------------------------- buttons arrows color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_buttonsarrowscolor'])) { update_post_meta($post_id, 'buttonsarrowscolor', $_POST['logooos_buttonsarrowscolor']); } /*---------------------------------------------------------------------- font style ----------------------------------------------------------------------*/ if(isset($_POST['logooos_font_style'])) { update_post_meta($post_id, 'fontstyle', $_POST['logooos_font_style']); } /*---------------------------------------------------------------------- title font family ----------------------------------------------------------------------*/ if(isset($_POST['logooos_title_font_family'])) { update_post_meta($post_id, 'titlefontfamily', $_POST['logooos_title_font_family']); } /*---------------------------------------------------------------------- title font color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_title_font_color'])) { update_post_meta($post_id, 'titlefontcolor', $_POST['logooos_title_font_color']); } /*---------------------------------------------------------------------- title font size ----------------------------------------------------------------------*/ if(isset($_POST['logooos_title_font_size'])) { update_post_meta($post_id, 'titlefontsize', $_POST['logooos_title_font_size']); } /*---------------------------------------------------------------------- title font weight ----------------------------------------------------------------------*/ if(isset($_POST['logooos_title_font_weight'])) { update_post_meta($post_id, 'titlefontweight', $_POST['logooos_title_font_weight']); } /*---------------------------------------------------------------------- text font family ----------------------------------------------------------------------*/ if(isset($_POST['logooos_text_font_family'])) { update_post_meta($post_id, 'textfontfamily', $_POST['logooos_text_font_family']); } /*---------------------------------------------------------------------- text font color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_text_font_color'])) { update_post_meta($post_id, 'textfontcolor', $_POST['logooos_text_font_color']); } /*---------------------------------------------------------------------- text font size ----------------------------------------------------------------------*/ if(isset($_POST['logooos_text_font_size'])) { update_post_meta($post_id, 'textfontsize', $_POST['logooos_text_font_size']); } /*---------------------------------------------------------------------- excerpt text length ----------------------------------------------------------------------*/ if(isset($_POST['logooos_excerptText_length'])) { update_post_meta($post_id, 'excerpttextlength', $_POST['logooos_excerptText_length']); } /*---------------------------------------------------------------------- more link text ----------------------------------------------------------------------*/ if(isset($_POST['logooos_moreLinkText'])) { update_post_meta($post_id, 'morelinktext', $_POST['logooos_moreLinkText']); } /*---------------------------------------------------------------------- more link text color ----------------------------------------------------------------------*/ if(isset($_POST['logooos_more_link_text_color'])) { update_post_meta($post_id, 'morelinktextcolor', $_POST['logooos_more_link_text_color']); } } /*---------------------------------------------------------------------- Save logooo_sc Options Meta Box Action ----------------------------------------------------------------------*/ add_action('save_post', 'logooo_sc_save_meta_box');
?>
|