GO PRO"; } } // Option HTML return "
"; } /* ---------------------------------------------------- */ /* Grid Builder */ /* ---------------------------------------------------- */ function yp_grid_builder($cssName, $name, $note = null){ // Tooltip $tooltip = ''; if($note != null && $note != false){ $tooltip = " data-toggle='tooltip' data-placement='left' title='".$note."'"; } // Dev CSS Filter $CSSID = yp_css_id($cssName); $option_status = apply_filters( 'yp_property__'.$CSSID, TRUE); if(!$option_status){return;} // Option HTML $return = "
"; // End Option $return .= "
"; // Return return $return; } /* ---------------------------------------------------- */ /* Select Option */ /* ---------------------------------------------------- */ function yp_get_select_markup($cssName, $name, $values, $default = 'none', $note = null){ // Tooltip $tooltip = ''; if($note != null && $note != false){ $tooltip = " data-toggle='tooltip' data-placement='left' title='".$note."'"; } // Default 1 if ($default != false) { $defaultLink = "" . $default . ""; } else { $defaultLink = ''; } // Default 2 if ($cssName == 'animation-name') { $filter_animation_tools = apply_filters( 'yp_animation_tools', TRUE); if($filter_animation_tools){ $defaultLink = "Animator"; }else{ $defaultLink = ""; } } // Dev CSS Filter $CSSID = yp_css_id($cssName); $option_status = apply_filters( 'yp_property__'.$CSSID, TRUE); if(!$option_status){return;} // Create json list if(is_array($values)){ $rArray = "["; $i = 0; foreach($values as $key => $value){ if($i != 0){ $rArray .= ","; } $rArray .= '{"value":"'.$key.'","label":"'.$value.'"}'; $i++; } $values = $rArray . "]"; }else{ $values = plugins_url('library/json/'.$values, __FILE__); } // Pro Label $proLabel = ""; if(!defined("WTFV")){ if($cssName == "font-family" || $cssName == "color" || $cssName == "background-color" || $cssName == "background-image" || $cssName == "width" || $cssName == "height" || $cssName == "animation-name"){ $proLabel = "GO PRO"; } } // Option HTML $return = "
"; // End Option $return .= "
"; // Return return $return; } /* ---------------------------------------------------- */ /* Radio Option */ /* ---------------------------------------------------- */ function yp_get_radio_markup($cssName, $name, $values, $default = 'none',$note = null){ // Tooltip $tooltip = ''; if($note != null && $note != false){ $tooltip = " data-toggle='tooltip' data-placement='left' title='".$note."'"; } // Default if ($default != false) { $defaultLink = "" . $default . ""; } else { $defaultLink = ''; } // Dev CSS Filter $CSSID = yp_css_id($cssName); $option_status = apply_filters( 'yp_property__'.$CSSID, TRUE); if(!$option_status){return;} // Pro Label $proLabel = ""; if(!defined("WTFV")){ if($cssName == "font-family" || $cssName == "color" || $cssName == "background-color" || $cssName == "background-image" || $cssName == "width" || $cssName == "height" || $cssName == "animation-name"){ $proLabel = "GO PRO"; } } // Option HTML $return = "
"; // Radio Settings foreach ($values as $key => $value) { $return .= '
'; } // Close $return .= "
"; // Return return $return; } /* ---------------------------------------------------- */ /* Colorpicker Option */ /* ---------------------------------------------------- */ function yp_get_color_markup($cssName, $name,$note = null){ // Tooltip $tooltip = ''; if($note != null && $note != false){ $tooltip = " data-toggle='tooltip' data-placement='left' title='".$note."'"; } // Dev CSS Filter $CSSID = yp_css_id($cssName); $option_status = apply_filters( 'yp_property__'.$CSSID, TRUE); if(!$option_status){return;} // Pro Label $proLabel = ""; if(!defined("WTFV")){ if($cssName == "font-family" || $cssName == "color" || $cssName == "background-color" || $cssName == "background-image" || $cssName == "width" || $cssName == "height" || $cssName == "animation-name"){ $proLabel = "GO PRO"; } } // Option HTML $return = "
FlatMaterialTrendPage Colors
"; // Theme Colors $return .= "
"; // Flat Colors $return .= "
"; // Meterial Colors $return .= "
"; // Nice Colors $return .= "
"; // option End $return .= "
"; // Return return $return; } /* ---------------------------------------------------- */ /* Input Option */ /* ---------------------------------------------------- */ function yp_get_input_markup($cssName, $name, $none = null, $note = null){ // Tooltip $tooltip = ''; if($note != null && $note != false){ $tooltip = " data-toggle='tooltip' data-placement='left' title='".$note."'"; } // Dev CSS Filter $CSSID = yp_css_id($cssName); $option_status = apply_filters( 'yp_property__'.$CSSID, TRUE); if(!$option_status){return;} // Pro Label $proLabel = ""; if(!defined("WTFV")){ if($cssName == "font-family" || $cssName == "color" || $cssName == "background-color" || $cssName == "background-image" || $cssName == "width" || $cssName == "height" || $cssName == "animation-name"){ $proLabel = "GO PRO"; } } // Option HTML $return = "
"; // Upload image icon if($cssName == 'list-style-image' || $cssName == "background-image"){ $return .= ""; } $return .= "
"; // Background Image if($cssName == "background-image"){ $return .= "
Stock ImageGradientPattern
"; // Background patterns section starts $return .= "
"; $return .= "
"; // Background patterns section end. // Background gradient section starts $return .= '
Orientation
'; // Background gradient section end $return .= "
"; $return .= "
"; $return .= "
"; $return .= ''; $return .= "
"; } // Close $return .= "
"; // Return return $return; } /* ---------------------------------------------------- */ /* Input Option */ /* ---------------------------------------------------- */ function yp_get_textarea_markup($cssName, $name, $none = null, $note = null){ // Tooltip $tooltip = ''; if($note != null && $note != false){ $tooltip = " data-toggle='tooltip' data-placement='left' title='".$note."'"; } // Dev CSS Filter $CSSID = yp_css_id($cssName); $option_status = apply_filters( 'yp_property__'.$CSSID, TRUE); if(!$option_status){return;} // Pro Label $proLabel = ""; if(!defined("WTFV")){ if($cssName == "font-family" || $cssName == "color" || $cssName == "background-color" || $cssName == "background-image" || $cssName == "width" || $cssName == "height" || $cssName == "animation-name"){ $proLabel = "GO PRO"; } } // Option HTML $return = "
"; $return .= "
"; // Return return $return; }