golden hour
/home/godaofbq/hyperbarichelp.com/wp-content/plugins/oxygen/component-framework/components/classes
⬆️ Go Up
Upload
File/Folder
Size
Actions
.htaccess
420 B
Del
OK
comment-form.class.php
7.6 KB
Del
OK
comments-list-templates
-
Del
OK
comments-list.class.php
14.76 KB
Del
OK
data.comment-form.class.php
4.38 KB
Del
OK
div-block.class.php
4.34 KB
Del
OK
dynamic-list.class.php
314.25 KB
Del
OK
easy-posts-templates
-
Del
OK
fancy-icon.class.php
7.65 KB
Del
OK
gallery
-
Del
OK
gallery.class.php
44.75 KB
Del
OK
header-row-center.class.php
1.61 KB
Del
OK
header-row-left.class.php
1.59 KB
Del
OK
header-row-right.class.php
1.6 KB
Del
OK
header-row.class.php
7.22 KB
Del
OK
header.class.php
12.43 KB
Del
OK
headline.class.php
3.35 KB
Del
OK
icon-box.class.php
29.44 KB
Del
OK
inner-content.class.php
5.65 KB
Del
OK
li.class.php
3.08 KB
Del
OK
link-button.class.php
5.73 KB
Del
OK
link-text.class.php
5.25 KB
Del
OK
link-wrapper.class.php
4.74 KB
Del
OK
login-form.class.php
6.88 KB
Del
OK
map.class.php
2.36 KB
Del
OK
menu-pro
-
Del
OK
menu-pro.class.php
72.9 KB
Del
OK
menu.class.php
32.7 KB
Del
OK
modal.class.php
40.33 KB
Del
OK
nestable-shortcode.class.php
3.85 KB
Del
OK
new-columns.class.php
7.94 KB
Del
OK
pricing-box.class.php
80.82 KB
Del
OK
progress-bar.class.php
21.21 KB
Del
OK
reusable.class.php
2.24 KB
Del
OK
rich-text.class.php
4.67 KB
Del
OK
search-form.class.php
6.92 KB
Del
OK
section.class.php
5.68 KB
Del
OK
selector.class.php
3.3 KB
Del
OK
shape-divider
-
Del
OK
shape-divider.class.php
101.89 KB
Del
OK
shortcode.class.php
5.7 KB
Del
OK
sidebar.class.php
2.1 KB
Del
OK
slide.class.php
3.34 KB
Del
OK
slider.class.php
22.83 KB
Del
OK
social-icons.class.php
23.93 KB
Del
OK
soundcloud.class.php
3.92 KB
Del
OK
span.class.php
4.5 KB
Del
OK
superbox.class.php
26.58 KB
Del
OK
svg-icon.class.php
6.78 KB
Del
OK
tab-content.class.php
2.78 KB
Del
OK
tab.class.php
2.79 KB
Del
OK
tabs-contents.class.php
2.8 KB
Del
OK
tabs.class.php
7.16 KB
Del
OK
testimonial.class.php
32.71 KB
Del
OK
text-block.class.php
3.64 KB
Del
OK
toggle.class.php
9.31 KB
Del
OK
toolset-view.class.php
4.67 KB
Del
OK
video.class.php
4.52 KB
Del
OK
widget.class.php
6.67 KB
Del
OK
Edit: fancy-icon.class.php
<?php /** * CT_Fancy_Icon Component Class * * @since 0.2.1 */ Class CT_Fancy_Icon extends CT_Component { public $options; public $icons_ids = array(); function __construct( $options ) { // run initialization $this->init( $options ); // Add shortcodes add_shortcode( $this->options['tag'], array( $this, 'add_shortcode' ) ); add_oxygen_element( $this->options['tag'], array( $this, 'add_shortcode' ) ); // add specific options add_action("ct_toolbar_component_settings", array( $this, "icon_settings") ); // output svg set on frontend add_action("wp_footer", array( $this, "output_svg_set") ); // change component button place remove_action("ct_toolbar_fundamentals_list", array( $this, "component_button" ) ); add_action("oxygen_basics_components_visual", array( $this, "component_button" ) ); } /** * Add a [ct_fancy_icon] shortcode to WordPress * * @since 0.2.1 */ function add_shortcode( $atts, $content, $name ) { if ( ! $this->validate_shortcode( $atts, $content, $name ) ) { return ''; } $options = $this->set_options( $atts ); global $oxygen_svg_icons_to_load; $oxygen_svg_icons_to_load[] = $options['icon_id']; ob_start(); $editable_attribute = esc_attr($options['icon_id']); if( class_exists( 'Oxygen_Gutenberg' ) ) $editable_attribute = Oxygen_Gutenberg::decorate_attribute( $options, $editable_attribute, 'icon' ); ?><div id="<?php echo esc_attr($options['selector']); ?>" class="<?php echo esc_attr($options['classes']); ?>" <?php do_action("oxygen_vsb_component_attr", $options, $this->options['tag']); ?>><svg id="svg-<?php echo esc_attr($options['selector']); ?>"><use xlink:href="#<?php echo $editable_attribute; ?>"></use></svg></div><?php return ob_get_clean(); } /** * Output settings * * @since 0.2.1 */ function icon_settings() { ?> <div class="oxygen-sidebar-flex-panel" ng-show="isActiveName('<?php echo $this->options['tag']; ?>')"> <div class="oxygen-control-row"> <div class="oxygen-control-wrapper"> <label class="oxygen-control-label"><?php _e("Icon Set", "oxygen"); ?></label> <div class="oxygen-select oxygen-select-box-wrapper oxygen-special-property not-available-for-media not-available-for-classes"> <div class="oxygen-select-box"> <div class="oxygen-select-box-current">{{iframeScope.currentSVGSet}}</div> <div class="oxygen-select-box-dropdown"></div> </div> <div class="oxygen-select-box-options"> <div class="oxygen-select-box-option" title="<?php _e("Use this set", "component-theme"); ?>" ng-repeat="(name,set) in iframeScope.SVGSets" ng-click="iframeScope.setCurrentSVGSet(name);"> {{name}} </div> </div> </div> </div> </div> <div class="oxygen-control-row"> <div class="oxygen-control-wrapper"> <label class="oxygen-control-label"><?php _e("Icon", "oxygen"); ?></label> <div class="oxygen-control"> <div class="oxygen-icon-chooser"> <div class="oxygen-input"> <input type="text" placeholder="<?php _e("Start typing to search...","oxygen"); ?>" ng-model="iframeScope.iconFilter.title" ng-model-options="{debounce: 500}"> </div> <div class="oxygen-icon-grid"> <div class="oxygen-icon-grid-icon" ng-repeat="icon in iframeScope.SVGSets[iframeScope.currentSVGSet].defs.symbol | filter:iframeScope.iconFilter.title track by icon.title" ng-click="iframeScope.setSVGIcon(icon['@attributes']['id'], icon['title'])" ng-class="{'oxygen-icon-grid-icon-active':iframeScope.getOption('icon-id')==iframeScope.currentSVGSet.split(' ').join('')+icon['@attributes']['id']}" title="{{icon.title}}"> <svg><use xlink:href="" ng-href="{{'#'+iframeScope.currentSVGSet.split(' ').join('')+icon['@attributes']['id']}}"></use></svg> </div> </div> </div> <!-- .oxygen-icon-chooser --> </div> </div> </div> </div> <?php } /** * Output SVG sets available in install * only with icons used on the page * * @since 0.2.0 */ static function output_svg_set() { global $oxygen_svg_icons_to_load; if ( !is_array($oxygen_svg_icons_to_load) || empty($oxygen_svg_icons_to_load) ) return; if ( defined("SHOW_CT_BUILDER") ) return; //$svg_sets = get_option("ct_svg_sets", array() ); $svg_sets = oxy_get_svg_sets(); // loop all sets foreach ( $svg_sets as $set ) { $icons_to_remove = array(); $svg = new SimpleXMLElement($set); if($svg->defs->symbol) { // loop all set icons foreach ( $svg->defs->symbol as $key => $symbol ) { $icon = (array)$symbol; $attributes = $icon["@attributes"]; $icon_id = $attributes['id']; $view_box = explode(" ", $attributes['viewBox']); if ( in_array( $icon_id, $oxygen_svg_icons_to_load ) || is_admin() ) { if ( $view_box[2] != $view_box[3] ) { echo "<style>"; echo ".ct-".sanitize_text_field($attributes['id'])."{"; echo "width:" . ($view_box[2] / $view_box[3]) . "em"; echo "}"; echo "</style>\r\n"; } } else { // remove not used icons to keep HTML output clean $icons_to_remove[] = $symbol; } }; foreach ($icons_to_remove as $icon) { unset($icon[0]); } if ( sizeof($svg->defs->symbol) > 0 ) { // remove empty lines $output = str_replace("\r", "", $svg->asXML()); $output = str_replace("\n", "", $output); echo $output; } } } } } // Create toolbar inctances global $oxygen_vsb_components; $oxygen_vsb_components['fancy_icon'] = new CT_Fancy_Icon ( array( 'name' => __("Icon", "oxygen"), 'tag' => 'ct_fancy_icon', 'params' => array( array( "type" => "textfield", "param_name" => "icon-id", "value" => "FontAwesomeicon-thumbs-up", "hidden" => true, "css" => false ), array( "type" => "radio", "heading" => __("Icon Style", "oxygen"), "param_name" => "icon-style", "value" => array( 1 => __("Outline", "oxygen"), 2 => __("Solid", "oxygen"), 3 => __("None", "oxygen"), ), "default" => 3, "line_breaks" => true, "css" => false ), array( "type" => "colorpicker", "heading" => __("Color"), "param_name" => "icon-color", "value" => "#333333", "css" => false ), array( "type" => "colorpicker", "heading" => __("Background Color","oxygen"), "param_name" => "icon-background-color", "value" => "#f4f4f4", "condition" => "icon-style=2", "css" => false ), array( "type" => "slider-measurebox", "heading" => __("Icon size","oxygen"), "param_name" => "icon-size", "value" => 55, "min" => "10", "max" => "100", "param_units" => 'px', "css" => false ), array( "param_name" => "icon-size-unit", "value" => "px", "hidden" => true, "css" => false ), array( "type" => "slider-measurebox", "heading" => __("Space around icon","oxygen"), "param_name" => "icon-padding", "value" => 20, "min" => "10", "max" => "100", "condition" => "icon-style!=3", "param_units" => 'px', "css" => false ), array( "param_name" => "icon-padding-unit", "value" => "px", "hidden" => true, "css" => false ), ), /*'advanced' => array( "positioning" => array( "values" => array ( 'display' => 'inline-block', ) ) )*/ ) ); ?>
Save