first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
/**
* Accordion template.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<div class="cx-ui-kit cx-component cx-accordion <?php echo esc_attr( $args['class'] ); ?>" data-compotent-id="#<?php echo esc_attr( $args['id'] ) ?>">
<?php if ( ! empty( $args['title'] ) ) { ?>
<h2 class="cx-ui-kit__title cx-component__title" role="banner" ><?php echo wp_kses_post( $args['title'] ); ?></h2>
<?php } ?>
<?php if ( ! empty( $args['description'] ) ) { ?>
<div class="cx-ui-kit__description cx-component__description" role="note" ><?php echo wp_kses_post( $args['description'] ); ?></div>
<?php } ?>
<?php if ( ! empty( $args['children'] ) ) { ?>
<div class="cx-ui-kit__content cx-component__content cx-accordion__content" role="group" >
<?php echo $args['children'] ?>
</div>
<?php } ?>
</div>

View File

@@ -0,0 +1,23 @@
<?php
/**
* Repeater template.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<div class="cx-ui-kit cx-component cx-repeater <?php echo esc_attr( $args['class'] ); ?>" data-compotent-id="#<?php echo esc_attr( $args['id'] ); ?>">
<?php if ( ! empty( $args['title'] ) ) { ?>
<h2 class="cx-ui-kit__title cx-component__title" role="banner" ><?php echo wp_kses_post( $args['title'] ); ?></h2>
<?php } ?>
<?php if ( ! empty( $args['description'] ) ) { ?>
<div class="cx-ui-kit__description cx-component__description" role="note" ><?php echo wp_kses_post( $args['description'] ); ?></div>
<?php } ?>
<?php if ( ! empty( $args['children'] ) ) { ?>
<div class="cx-ui-kit__content cx-component__content" role="group" >
<?php echo $args['children']; ?>
</div>
<?php } ?>
</div>

View File

@@ -0,0 +1,28 @@
<?php
/**
* Horizontal tab template.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<div class="cx-ui-kit cx-component cx-tab cx-tab--horizontal <?php echo esc_attr( $args['class'] ) ?>" data-compotent-id="#<?php echo esc_attr( $args['id'] ); ?>">
<?php if ( ! empty( $args['title'] ) ) { ?>
<h2 class="cx-ui-kit__title cx-component__title" role="banner" ><?php echo wp_kses_post( $args['title'] ); ?></h2>
<?php } ?>
<?php if ( ! empty( $args['description'] ) ) { ?>
<div class="cx-ui-kit__description cx-component__description" role="note" ><?php echo wp_kses_post( $args['description'] ); ?></div>
<?php } ?>
<?php if ( ! empty( $args['children'] ) ) { ?>
<div class="cx-tab__body" >
<div class="cx-tab__tabs" role="navigation" >
<?php echo $args['tabs']; ?>
</div>
<div class="cx-ui-kit__content cx-component__content cx-tab__content" role="group" >
<?php echo $args['children']; ?>
</div>
</div>
<?php } ?>
</div>

View File

@@ -0,0 +1,28 @@
<?php
/**
* Verticall tab template.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<div class="cx-ui-kit cx-component cx-tab cx-tab--vertical <?php echo esc_attr( $args['class'] ); ?>" data-compotent-id="#<?php echo esc_attr( $args['id'] ); ?>">
<?php if ( ! empty( $args['title'] ) ) { ?>
<h2 class="cx-ui-kit__title cx-component__title" role="banner" ><?php echo wp_kses_post( $args['title'] ); ?></h2>
<?php } ?>
<?php if ( ! empty( $args['description'] ) ) { ?>
<div class="cx-ui-kit__description cx-component__description" role="note" ><?php echo wp_kses_post( $args['description'] ); ?></div>
<?php } ?>
<?php if ( ! empty( $args['children'] ) ) { ?>
<div class="cx-tab__body" >
<div class="cx-tab__tabs" role="navigation" >
<?php echo $args['tabs']; ?>
</div>
<div class="cx-ui-kit__content cx-component__content cx-tab__content" role="group" >
<?php echo $args['children']; ?>
</div>
</div>
<?php } ?>
</div>

View File

@@ -0,0 +1,23 @@
<?php
/**
* Toggle template.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<div class="cx-ui-kit cx-component cx-toggle <?php echo esc_attr( $args['class'] ); ?>" data-compotent-id="#<?php echo esc_attr( $args['id'] ); ?>">
<?php if ( ! empty( $args['title'] ) ) { ?>
<h2 class="cx-ui-kit__title cx-component__title" role="banner" ><?php echo wp_kses_post( $args['title'] ); ?></h2>
<?php } ?>
<?php if ( ! empty( $args['description'] ) ) { ?>
<div class="cx-ui-kit__description cx-component__description" role="note" ><?php echo wp_kses_post( $args['description'] ); ?></div>
<?php } ?>
<?php if ( ! empty( $args['children'] ) ) { ?>
<div class="cx-ui-kit__content cx-component__content cx-toggle__content" role="group" >
<?php echo $args['children']; ?>
</div>
<?php } ?>
</div>

View File

@@ -0,0 +1,27 @@
<?php
/**
* Control template.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<div class="cx-ui-kit cx-control cx-control-<?php echo esc_attr( $args['type'] ); ?>" data-control-name="<?php echo esc_attr( $args['id'] ); ?>">
<?php if ( ! empty( $args['title'] ) || ! empty( $args['description'] ) ) { ?>
<div class="cx-control__info">
<?php if ( ! empty( $args['title'] ) ) { ?>
<h4 class="cx-ui-kit__title cx-control__title" role="banner" ><?php echo wp_kses_post( $args['title'] ); ?></h4>
<?php } ?>
<?php if ( ! empty( $args['description'] ) ) { ?>
<div class="cx-ui-kit__description cx-control__description" role="note" ><?php echo wp_kses_post( $args['description'] ); ?></div>
<?php } ?>
</div>
<?php } ?>
<?php if ( ! empty( $args['children'] ) ) { ?>
<div class="cx-ui-kit__content cx-control__content" role="group" >
<?php echo $args['children']; ?>
</div>
<?php } ?>
</div>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Form template.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<form class="cx-form <?php echo esc_attr( $args['class'] ); ?>" id="<?php echo esc_attr( $args['id'] ); ?>" name="<?php echo esc_attr( $args['id'] ); ?>" accept-charset="<?php echo esc_attr( $args['accept-charset'] ); ?>" action="<?php echo esc_attr( $args['action'] ); ?>" autocomplete="<?php echo esc_attr( $args['autocomplete'] ); ?>" enctype="<?php echo esc_attr( $args['enctype'] ); ?>" method="<?php echo esc_attr( $args['method'] ); ?>" target="<?php echo esc_attr( $args['target'] ); ?>" <?php echo esc_attr( $args['novalidate'] ); ?> >
<?php
if ( ! empty( $args['children'] ) ) {
echo $args['children'];
}
?>
</form>

View File

@@ -0,0 +1,17 @@
<?php
/**
* HTML template.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<div class="cx-ui-kit <?php echo esc_attr( $args['class'] ); ?>">
<?php if ( ! empty( $args['children'] ) ) { ?>
<div class="cx-ui-kit__content" role="group" >
<?php echo $args['children']; ?>
</div>
<?php } ?>
</div>

View File

@@ -0,0 +1,29 @@
<?php
/**
* Section template.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<div class="cx-ui-kit cx-section <?php echo esc_attr( $args['class'] ); ?>" onclick="void(0)">
<div class="cx-section__holder">
<div class="cx-section__inner">
<div class="cx-section__info">
<?php if ( ! empty( $args['title'] ) ) { ?>
<h1 class="cx-ui-kit__title cx-section__title" role="banner" ><?php echo wp_kses_post( $args['title'] ); ?></h1>
<?php } ?>
<?php if ( ! empty( $args['description'] ) ) { ?>
<div class="cx-ui-kit__description cx-section__description " role="note" ><?php echo wp_kses_post( $args['description'] ); ?></div>
<?php } ?>
</div>
<?php if ( ! empty( $args['children'] ) ) { ?>
<div class="cx-ui-kit__content cx-section__content" role="group" >
<?php echo $args['children']; ?>
</div>
<?php } ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,11 @@
<?php
/**
* Settings title template.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<h3 class="cx-ui-kit__title cx-settings__title" role="banner" ><?php echo wp_kses_post( $args['title'] ); ?></h3>

View File

@@ -0,0 +1,25 @@
<?php
/**
* Settings template.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<div class="cx-ui-kit cx-settings <?php echo esc_attr( $args['class'] ); ?>">
<?php if ( ! empty( $args['title'] ) ) {
echo $args['title'];
} ?>
<?php if ( ! empty( $args['children'] ) || ! empty( $args['description'] ) ) { ?>
<div class="cx-ui-kit__content cx-settings__content" role="group" id="<?php echo esc_attr( $args['id'] ); ?>" >
<?php if ( ! empty( $args['description'] ) ) { ?>
<div class="cx-ui-kit__description cx-settings__description" role="note" ><?php echo wp_kses_post( $args['description'] ); ?></div>
<?php } ?>
<?php if ( ! empty( $args['children'] ) ) { ?>
<?php echo $args['children']; ?>
<?php } ?>
</div>
<?php } ?>
</div>

View File

@@ -0,0 +1,13 @@
<?php
/**
* Tabs title template.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<button class="cx-tab__button cx-component__button" role="button" title="<?php echo esc_attr( $args['title'] ); ?>" aria-expanded="false" data-content-id="#<?php echo esc_attr( $args['id'] ); ?>">
<h3 class="cx-ui-kit__title cx-tab__title" aria-grabbed="true" role="banner" ><?php echo wp_kses_post( $args['title'] ); ?></h3>
</button>

View File

@@ -0,0 +1,15 @@
<?php
/**
* Toggle title template.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<button class="cx-toggle__header cx-component__button" role="button" aria-expanded="false" data-content-id="#<?php echo esc_attr( $args['id'] ); ?>">
<h3 class="cx-ui-kit__title cx-toggle__title" aria-grabbed="true" role="banner" ><?php echo wp_kses_post( $args['title'] ); ?></h3>
<span class="dashicons dashicons-arrow-down hide-icon"></span>
<span class="dashicons dashicons-arrow-up show-icon"></span>
</button>