| 1 |
<?php |
| 2 |
/** |
| 3 |
* Themeco Pro element integration. |
| 4 |
* |
| 5 |
* @package wp-commerce7 |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
return; |
| 10 |
} |
| 11 |
|
| 12 |
require_once C7WP_ROOT . '/includes/themeco/pro/class-c7wp-themeco-pro.php'; |
| 13 |
|
| 14 |
/** |
| 15 |
* Register Commerce7 Pro elements. |
| 16 |
*/ |
| 17 |
function c7wp_themeco_pro_register_elements() { |
| 18 |
C7WP_Themeco_Pro::register_elements( C7WP::getInstance()->get_widgetsver() ); |
| 19 |
} |
| 20 |
add_action( 'cs_register_elements', 'c7wp_themeco_pro_register_elements' ); |
| 21 |
|
| 22 |
/** |
| 23 |
* Register Commerce7 icon for Pro builder. |
| 24 |
* |
| 25 |
* @param array $icon_map Icon map. |
| 26 |
* @return array |
| 27 |
*/ |
| 28 |
function c7wp_themeco_pro_icon_map( $icon_map ) { |
| 29 |
$icon_map['commerce7'] = C7WP_URI . 'assets/c7.svg'; |
| 30 |
return $icon_map; |
| 31 |
} |
| 32 |
add_filter( 'cs_icon_map', 'c7wp_themeco_pro_icon_map' ); |
| 33 |
|