golden hour
/home/godaofbq/oxythrive.com/wp-content/plugins/oxygen-woocommerce/elements
⬆️ Go Up
Upload
File/Folder
Size
Actions
archive-categories.css
243 B
Del
OK
archive-categories.php
4.63 KB
Del
OK
archive-description.css
0 B
Del
OK
archive-description.php
1.25 KB
Del
OK
archive-products.css
2.97 KB
Del
OK
archive-products.php
26.45 KB
Del
OK
archive-title.css
0 B
Del
OK
archive-title.php
1.39 KB
Del
OK
assets
-
Del
OK
cart-total.css
0 B
Del
OK
cart-total.php
1.14 KB
Del
OK
general-breadcrumb.css
62 B
Del
OK
general-breadcrumb.php
1.56 KB
Del
OK
mini-cart.css
4.46 KB
Del
OK
mini-cart.php
14.1 KB
Del
OK
page-account.css
5.24 KB
Del
OK
page-account.php
15.75 KB
Del
OK
page-checkout.css
7.73 KB
Del
OK
page-checkout.php
14.71 KB
Del
OK
page-order-tracking.css
719 B
Del
OK
page-order-tracking.php
4.36 KB
Del
OK
page-shopping-cart.css
5.33 KB
Del
OK
page-shopping-cart.php
9.09 KB
Del
OK
product-builder.css
901 B
Del
OK
product-builder.php
4.6 KB
Del
OK
product-cart-button.css
731 B
Del
OK
product-cart-button.php
9.22 KB
Del
OK
product-crosssells.php
11.99 KB
Del
OK
product-description.css
127 B
Del
OK
product-description.php
1.45 KB
Del
OK
product-excerpt.css
227 B
Del
OK
product-excerpt.php
1.48 KB
Del
OK
product-images.css
1.99 KB
Del
OK
product-images.php
13.69 KB
Del
OK
product-info.css
126 B
Del
OK
product-info.php
2.28 KB
Del
OK
product-meta.css
0 B
Del
OK
product-meta.php
3.28 KB
Del
OK
product-price.css
66 B
Del
OK
product-price.php
1.6 KB
Del
OK
product-rating.css
75 B
Del
OK
product-rating.php
2.65 KB
Del
OK
product-related.css
0 B
Del
OK
product-related.php
13.1 KB
Del
OK
product-stock.css
64 B
Del
OK
product-stock.php
1.89 KB
Del
OK
product-tabs.css
2.55 KB
Del
OK
product-tabs.php
15.59 KB
Del
OK
product-title.php
1.5 KB
Del
OK
product-upsells.css
0 B
Del
OK
product-upsells.php
12.69 KB
Del
OK
woo-global-styler.css
39.28 KB
Del
OK
Edit: archive-categories.php
<?php namespace Oxygen\WooElements; class ArchiveCategories extends \OxyWooEl { function name() { return 'Categories List'; } function slug() { return 'woo-product-categories'; } function woo_button_place() { return "archive"; } function icon() { return plugin_dir_url(__FILE__) . 'assets/'.basename(__FILE__, '.php').'.svg'; } function render($options, $defaults, $content) { /* ids – Specify specific category ids to be listed limit – The number of categories to display columns – The number of columns to display. Defaults to 4 hide_empty – The default is “1” which will hide empty categories. Set to “0” to show empty categories parent – Set to a specific category ID if you would like to display all the child categories orderby – The default is to order by “name”, can be set to “id”, “slug”, or “menu_order”. If you want to order by the ids you specified then you can use orderby="include" order – States whether the category ordering is ascending (ASC) or descending (DESC), using the method set in orderby. Defaults to ASC. */ $defaults = array( 'ids' => "", 'limit' => "", 'columns' => "", 'hide_empty' => "", 'parent' => "", 'orderby' => "", 'order' => "", ); $shortcode_props = shortcode_atts($defaults, $options); $atts_string = ''; foreach ($shortcode_props as $name => $value) { if (strlen($value)>0) { $atts_string .= ' '.$name.'='."'".$value."'"; } } $shortcode = '[product_categories '.$atts_string.']'; echo do_shortcode($shortcode); } function controls() { /* Images */ $categories_images = $this->addControlSection("categories_images", __("Images"), "assets/icon.png", $this); $categories_images_selector = '.product-category a img'; $categories_images->borderSection( __("Borders"), $categories_images_selector, $this ); $categories_images->boxShadowSection( __("Box Shadow"), $categories_images_selector, $this, null, false //remove inset control ); /* Typography */ $categories_typography = $this->addControlSection("categories_typography", __("Typography"), "assets/icon.png", $this); $links_section = $categories_typography->typographySection( __("Links"), ".woocommerce-loop-category__title", $this ); $links_section->addStyleControl( array( "name" => __('Hover Color'), "selector" => '.woocommerce-loop-category__title:hover', "property" => 'color', ) ); $qty_section = $categories_typography->typographySection( __("Quantity"), ".count", $this ); /* Categories Query Section */ $categories_query = $this->addControlSection("categories_query", __("Categories Query"), "assets/icon.png", $this); $categories_query->addOptionControl( array( "type" => 'textfield', "name" => 'IDs', "slug" => 'ids' ) ); $categories_query->addOptionControl( array( "type" => 'textfield', "name" => 'Limit', "slug" => 'limit' ) ); $categories_query->addOptionControl( array( "type" => 'textfield', "name" => 'Columns', "slug" => 'columns', ) ); $categories_query->addOptionControl( array( "type" => 'buttons-list', "name" => 'Hide Empty', "slug" => 'hide_empty', ) )->setValue(array('true', 'false')); $categories_query->addOptionControl( array( "type" => 'textfield', "name" => 'Parent', "slug" => 'parent' ) ); $categories_query->addOptionControl( array( "type" => 'buttons-list', "name" => 'Order', "slug" => 'order' ) )->setValue(array('ASC', 'DESC')); $categories_query->addOptionControl( array( "type" => 'dropdown', "name" => 'Order By', "slug" => 'orderby' ) )->setValue(array('name', 'id', 'slug', 'menu_order', 'include')); } function defaultCSS() { return file_get_contents(__DIR__.'/'.basename(__FILE__, '.php').'.css'); } } new ArchiveCategories();
Save