Skip to content

Commit

Permalink
SD + AUI updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiofan committed Jun 13, 2024
1 parent bb863eb commit 4cb174a
Show file tree
Hide file tree
Showing 8 changed files with 129 additions and 29 deletions.
2 changes: 1 addition & 1 deletion vendor/ayecode/wp-ayecode-ui/ayecode-ui-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
add_action('after_setup_theme', function () {
global $ayecode_ui_version,$ayecode_ui_file_key;
$this_version = "0.2.15";
$this_version = "0.2.16";
if(empty($ayecode_ui_version) || version_compare($this_version , $ayecode_ui_version, '>')){
$ayecode_ui_version = $this_version ;
$ayecode_ui_file_key = wp_hash( __FILE__ );
Expand Down
3 changes: 3 additions & 0 deletions vendor/ayecode/wp-ayecode-ui/change-log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
= 0.2.16 - 2024-06-13 =
* Buttons after click when still have :focus can have wrong box-shadow if colour has been changed - FIXED

= 0.2.15 - 2024-05-22 =
* Checkbox not showing hand cursor on hover - FIXED

Expand Down
5 changes: 3 additions & 2 deletions vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AyeCode_UI_Settings {
*
* @var string
*/
public $version = '0.2.15';
public $version = '0.2.16';

/**
* Class textdomain.
Expand Down Expand Up @@ -1583,7 +1583,8 @@ public static function css_overwrite_bs5($type,$color_code,$compatibility, $hex
// $output .= $prefix ." .btn-{$type}:hover, $prefix .btn-{$type}:focus, $prefix .btn-{$type}.focus{background-color: #000; border-color: #000;} ";
$output .= $prefix ." .btn-outline-{$type}:not(:disabled):not(.disabled):active:focus, $prefix .btn-outline-{$type}:not(:disabled):not(.disabled).active:focus, .show>$prefix .btn-outline-{$type}.dropdown-toggle:focus{box-shadow: 0 0 0 0.2rem $op_25;} ";
$output .= $prefix ." .btn-{$type}:not(:disabled):not(.disabled):active, $prefix .btn-{$type}:not(:disabled):not(.disabled).active, .show>$prefix .btn-{$type}.dropdown-toggle{background-color: ".$darker_10."; border-color: ".$darker_125.";} ";
$output .= $prefix ." .btn-{$type}:not(:disabled):not(.disabled):active:focus, $prefix .btn-{$type}:not(:disabled):not(.disabled).active:focus, .show>$prefix .btn-{$type}.dropdown-toggle:focus {box-shadow: 0 0 0 0.2rem $op_25;} ";
$output .= $prefix ." .btn-{$type}:not(:disabled):not(.disabled):active:focus, $prefix .btn-{$type}:not(:disabled):not(.disabled).active:focus, .show>$prefix .btn-{$type}.dropdown-toggle:focus {box-shadow: 0 0 0 0.2rem $op_25;} ";
$output .= $prefix ." .btn-{$type}:not(:disabled):not(.disabled):active:focus, $prefix .btn-{$type}:not(:disabled):not(.disabled):focus {box-shadow: 0 0.25rem 0.25rem 0.125rem rgba(var(--bs-{$type}-rgb), 0.1), 0 0.375rem 0.75rem -0.125rem rgba(var(--bs-{$type}-rgb), 0.4);} ";

// text
// $output .= $prefix .".xxx, .text-{$type} {color: var(--bs-".esc_attr($type).");} ";
Expand Down
4 changes: 4 additions & 0 deletions vendor/ayecode/wp-super-duper/change-log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
= 1.1.44 - 2024-06-13 =
* Width and Height helper functions added - ADDED
* Undefined array key warning - FIXED

= 1.1.43 - 2024-06-05 =
* example block attribute now works for block previews - ADDED
* Block previews now enabled by default (set example as false to disable) - CHANGED
Expand Down
86 changes: 85 additions & 1 deletion vendor/ayecode/wp-super-duper/sd-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2097,6 +2097,88 @@ function sd_get_nofollow_input( $type = 'nofollow', $overwrite = array() ) {
return $input;
}

/**
* A helper function for width inputs.
*
* @param string $type
* @param array $overwrite
*
* @return array
*/
function sd_get_width_input( $type = 'width', $overwrite = array() ) {

$device_size = '';
if ( ! empty( $overwrite['device_type'] ) ) {
if ( $overwrite['device_type'] == 'Tablet' ) {
$device_size = '-md';
} elseif ( $overwrite['device_type'] == 'Desktop' ) {
$device_size = '-lg';
}
}
$options = array(
'' => __('Default', 'ayecode-connect'),
'w' . $device_size . '-25' => '25%',
'w' . $device_size . '-50' => '50%',
'w' . $device_size . '-75' => '75%',
'w' . $device_size . '-100' => '100%',
'w' . $device_size . '-auto' => 'auto',
);

$defaults = array(
'type' => 'select',
'title' => __( 'Width', 'ayecode-connect' ),
'options' => $options,
'default' => '',
'desc_tip' => true,
'group' => __( 'Wrapper Styles', 'ayecode-connect' ),
);

$input = wp_parse_args( $overwrite, $defaults );

return $input;
}

/**
* A helper function for height inputs.
*
* @param string $type
* @param array $overwrite
*
* @return array
*/
function sd_get_height_input( $type = 'height', $overwrite = array() ) {

$device_size = '';
if ( ! empty( $overwrite['device_type'] ) ) {
if ( $overwrite['device_type'] == 'Tablet' ) {
$device_size = '-md';
} elseif ( $overwrite['device_type'] == 'Desktop' ) {
$device_size = '-lg';
}
}
$options = array(
'' => __('Default', 'ayecode-connect'),
'h' . $device_size . '-25' => '25%',
'h' . $device_size . '-50' => '50%',
'h' . $device_size . '-75' => '75%',
'h' . $device_size . '-100' => '100%',
'h' . $device_size . '-auto' => 'auto',
);

$defaults = array(
'type' => 'select',
'title' => __( 'Height', 'ayecode-connect' ),
'options' => $options,
'default' => '',
'desc_tip' => true,
'group' => __( 'Wrapper Styles', 'ayecode-connect' ),
);

$input = wp_parse_args( $overwrite, $defaults );

return $input;
}

/**
* @param $type
* @param $overwrite
Expand Down Expand Up @@ -2832,7 +2914,9 @@ function sd_get_class_build_keys() {
'h100',
'overflow',
'scrollbars',
'float-MTD'
'float-MTD',
'height-MTD',
'width-MTD'
);

return apply_filters( 'sd_class_build_keys', $keys );
Expand Down
14 changes: 11 additions & 3 deletions vendor/ayecode/wp-super-duper/wp-super-duper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

if ( ! class_exists( 'WP_Super_Duper' ) ) {

define( 'SUPER_DUPER_VER', '1.1.43' );
define( 'SUPER_DUPER_VER', '1.1.44' );

/**
* A Class to be able to create a Widget, Shortcode or Block to be able to output content for WordPress.
Expand Down Expand Up @@ -4382,9 +4382,17 @@ public function output_title( $args, $instance = array() ) {
/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
$title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );

if(empty($instance['widget_title_tag'])){
if ( empty( $instance['widget_title_tag'] ) ) {
if ( ! isset( $args['before_title'] ) ) {
$args['before_title'] = '';
}

if ( ! isset( $args['after_title'] ) ) {
$args['after_title'] = '';
}

$output = $args['before_title'] . $title . $args['after_title'];
}else{
} else {
$title_tag = esc_attr( $instance['widget_title_tag'] );

// classes
Expand Down
28 changes: 14 additions & 14 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,20 @@
},
{
"name": "ayecode/wp-ayecode-ui",
"version": "0.2.15",
"version_normalized": "0.2.15.0",
"version": "0.2.16",
"version_normalized": "0.2.16.0",
"source": {
"type": "git",
"url": "https://github.com/AyeCode/wp-ayecode-ui.git",
"reference": "4ca9da978b42c3dbd3239a7751fa98c87240ac2f"
"reference": "fe9667bdf175fec012d7a112dd8fdf6e090319f8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/4ca9da978b42c3dbd3239a7751fa98c87240ac2f",
"reference": "4ca9da978b42c3dbd3239a7751fa98c87240ac2f",
"url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/fe9667bdf175fec012d7a112dd8fdf6e090319f8",
"reference": "fe9667bdf175fec012d7a112dd8fdf6e090319f8",
"shasum": ""
},
"time": "2024-05-22T15:10:15+00:00",
"time": "2024-06-13T09:50:43+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down Expand Up @@ -97,7 +97,7 @@
],
"support": {
"issues": "https://github.com/AyeCode/wp-ayecode-ui/issues",
"source": "https://github.com/AyeCode/wp-ayecode-ui/tree/0.2.15"
"source": "https://github.com/AyeCode/wp-ayecode-ui/tree/0.2.16"
},
"install-path": "../ayecode/wp-ayecode-ui"
},
Expand Down Expand Up @@ -246,24 +246,24 @@
},
{
"name": "ayecode/wp-super-duper",
"version": "1.1.43",
"version_normalized": "1.1.43.0",
"version": "1.1.44",
"version_normalized": "1.1.44.0",
"source": {
"type": "git",
"url": "https://github.com/AyeCode/wp-super-duper.git",
"reference": "45cbb2f97d1146a52f6c75f4bf82e4117f6bb22d"
"reference": "fa477ec1e75efcd7c307788de11d3c0303911e42"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/AyeCode/wp-super-duper/zipball/45cbb2f97d1146a52f6c75f4bf82e4117f6bb22d",
"reference": "45cbb2f97d1146a52f6c75f4bf82e4117f6bb22d",
"url": "https://api.github.com/repos/AyeCode/wp-super-duper/zipball/fa477ec1e75efcd7c307788de11d3c0303911e42",
"reference": "fa477ec1e75efcd7c307788de11d3c0303911e42",
"shasum": ""
},
"require": {
"composer/installers": "~1.0",
"php": ">=5.4.0"
},
"time": "2024-06-05T16:30:26+00:00",
"time": "2024-06-13T09:41:59+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down Expand Up @@ -295,7 +295,7 @@
],
"support": {
"issues": "https://github.com/AyeCode/wp-super-duper/issues",
"source": "https://github.com/AyeCode/wp-super-duper/tree/1.1.43"
"source": "https://github.com/AyeCode/wp-super-duper/tree/1.1.44"
},
"install-path": "../ayecode/wp-super-duper"
},
Expand Down
16 changes: 8 additions & 8 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'ayecode/geodirectory',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '5cfb3efdca9d1d8b56a016ec2f41d30b9fb146a9',
'reference' => 'bb863eb788596b1845d294b0c0c627830ea9d3e4',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -22,16 +22,16 @@
'ayecode/geodirectory' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '5cfb3efdca9d1d8b56a016ec2f41d30b9fb146a9',
'reference' => 'bb863eb788596b1845d294b0c0c627830ea9d3e4',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'dev_requirement' => false,
),
'ayecode/wp-ayecode-ui' => array(
'pretty_version' => '0.2.15',
'version' => '0.2.15.0',
'reference' => '4ca9da978b42c3dbd3239a7751fa98c87240ac2f',
'pretty_version' => '0.2.16',
'version' => '0.2.16.0',
'reference' => 'fe9667bdf175fec012d7a112dd8fdf6e090319f8',
'type' => 'library',
'install_path' => __DIR__ . '/../ayecode/wp-ayecode-ui',
'aliases' => array(),
Expand Down Expand Up @@ -65,9 +65,9 @@
'dev_requirement' => false,
),
'ayecode/wp-super-duper' => array(
'pretty_version' => '1.1.43',
'version' => '1.1.43.0',
'reference' => '45cbb2f97d1146a52f6c75f4bf82e4117f6bb22d',
'pretty_version' => '1.1.44',
'version' => '1.1.44.0',
'reference' => 'fa477ec1e75efcd7c307788de11d3c0303911e42',
'type' => 'library',
'install_path' => __DIR__ . '/../ayecode/wp-super-duper',
'aliases' => array(),
Expand Down

0 comments on commit 4cb174a

Please sign in to comment.