initial upload

This commit is contained in:
2026-04-20 22:55:59 +02:00
commit 56a8b97875
115 changed files with 43622 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#customize-controls .control-section-button .accordion-section-title:hover,
#customize-controls .control-section-button .accordion-section-title:focus {
background-color: #fff;
}
.control-section-button .accordion-section-title .button {
margin-top: -4px;
font-weight: 400;
margin-left: 8px;
background: #e45157;
border: none;
color: #fff;
}
.rtl .control-section-button .accordion-section-title .button {
margin-left: 0;
margin-right: 8px;
}
+15
View File
@@ -0,0 +1,15 @@
(function (api) {
if (api != null) {
// Extends our custom "upgrade-to-pro" section.
api.sectionConstructor["button"] = api.Section.extend({
// No events for this type of section.
attachEvents: function () {},
// Always make the section active.
isContextuallyActive: function () {
return true;
},
});
} else {
}
})(wp.customize);
@@ -0,0 +1,74 @@
<?php
/**
* Pro customizer section.
*
* @since 1.0.0
* @access public
*/
class Daisy_Blog_Button_Control extends WP_Customize_Section {
/**
* The type of customize section being rendered.
*
* @since 1.0.0
* @access public
* @var string
*/
public $type = 'button';
/**
* Custom button text to output.
*
* @since 1.0.0
* @access public
* @var string
*/
public $pro_text = '';
/**
* Custom pro button URL.
*
* @since 1.0.0
* @access public
* @var string
*/
public $pro_url = '';
/**
* Add custom parameters to pass to the JS via JSON.
*
* @since 1.0.0
* @access public
* @return void
*/
public function json() {
$json = parent::json();
$json['pro_text'] = $this->pro_text;
$json['pro_url'] = esc_url( $this->pro_url );
return $json;
}
/**
* Outputs the Underscore.js template.
*
* @since 1.0.0
* @access public
* @return void
*/
protected function render_template() { ?>
<li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }} cannot-expand">
<h3 class="accordion-section-title">
{{ data.title }}
<# if ( data.pro_text && data.pro_url ) { #>
<a href="{{ data.pro_url }}" class="button button-secondary alignright" target="_blank">{{ data.pro_text }}</a>
<# } #>
</h3>
</li>
<?php }
}