hello
Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : chryzalihi ( 621211) PHP Version : 8.3.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/c/h/r/chryzalihi/www/wp-content/languages/themes/the/ |
button.js 0000644 00000002344 15242601502 0006415 0 ustar 00 (function ($) {
wp.customize.controlConstructor["bloglo-button"] =
wp.customize.Control.extend({
ready: function () {
"use strict";
var control = this;
control.container.on("click", ".button", function (e) {
var $this = $(this),
action = $this.data("ajax-action");
// Check for ajax action.
if (action) {
e.preventDefault();
$this.siblings(".spinner").addClass("activated");
var data = {
_ajax_nonce: bloglo_customizer_localized.wpnonce,
action: action,
};
$.post(
bloglo_customizer_localized.ajaxurl,
data,
function (response) {
// Check response
if (response.success) {
$this.siblings(".spinner").removeClass("activated");
// Should we reload the page?
if (
"undefined" !== typeof response.data.reload &&
response.data.reload
) {
location.reload();
}
}
}
);
}
});
},
});
})(jQuery);
class-bloglo-customizer-control-button.php 0000644 00000005423 15242601502 0015030 0 ustar 00 <?php
/**
* Bloglo Customizer custom background control class.
*
* @package Bloglo
* @author Peregrine Themes
* @since 1.0.0
*/
/**
* Do not allow direct script access.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'Bloglo_Customizer_Control_Button' ) ) :
/**
* Bloglo Customizer custom background control class.
*/
class Bloglo_Customizer_Control_Button extends Bloglo_Customizer_Control {
/**
* The control type.
*
* @var string
*/
public $type = 'bloglo-button';
/**
* Ajax Action.
*
* @var string
*/
public $ajax_action = '';
/**
* Button text.
*
* @var string
*/
public $button_text = '';
/**
* Button url.
*
* @var string
*/
public $button_url = '#';
/**
* Link target.
*
* @since 1.0.0
* @var string
*/
public $target = '_blank';
/**
* Set the default typography options.
*
* @since 1.0.0
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
* @param string $id Control ID.
* @param array $args Default parent's arguments.
*/
public function __construct( $manager, $id, $args = array() ) {
parent::__construct( $manager, $id, $args );
if ( $this->ajax_action ) {
$this->button_url = '#';
}
}
/**
* Refresh the parameters passed to the JavaScript via JSON.
*
* @see WP_Customize_Control::to_json()
*/
public function to_json() {
parent::to_json();
$this->json['button_text'] = $this->button_text;
$this->json['button_url'] = $this->button_url;
$this->json['target'] = $this->target;
$this->json['ajax_action'] = $this->ajax_action;
}
/**
* An Underscore (JS) template for this control's content (but not its container).
*
* Class variables for this control class are available in the `data` JS object;
* export custom variables by overriding {@see WP_Customize_Control::to_json()}.
*
* @see WP_Customize_Control::print_template()
*/
protected function content_template() {
?>
<div class="bloglo-button-wrapper bloglo-control-wrapper">
<# if ( data.label ) { #>
<span class="bloglo-control-heading customize-control-title bloglo-field">{{{ data.label }}}</span>
<# } #>
<# if ( data.ajax_action ) { #>
<span class="spinner"></span>
<# } #>
<a href="{{ data.button_url }}" class="button button-secondary" rel="noopener noreferrer" target="{{ data.target }}"<# if ( data.ajax_action ) { #> data-ajax-action="{{ data.ajax_action }}"<# } #>>{{{ data.button_text }}}</a>
</div><!-- END .bloglo-button-wrapper -->
<# if ( data.description ) { #>
<div class="description customize-control-description bloglo-field">{{{ data.description }}}</div>
<# } #>
<?php
}
}
endif;
button.scss 0000644 00000000644 15242601502 0006755 0 ustar 00 /*****************************************/
/* Customizer button control style
/*****************************************/
.bloglo-button-wrapper {
display: flex;
align-items: center;
margin-bottom: 4px;
.bloglo-control-heading {
margin-right: auto;
}
.button {
padding-left: 10px;
box-sizing: border-box;
align-items: center;
}
.customize-control-title {
margin-bottom: 0;
}
}
button.css 0000644 00000001247 15242601502 0006572 0 ustar 00 /*****************************************/
/* Customizer button control style
/*****************************************/
.bloglo-button-wrapper {
-js-display: flex;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
margin-bottom: 4px;
}
.bloglo-button-wrapper .bloglo-control-heading {
margin-right: auto;
}
.bloglo-button-wrapper .button {
padding-left: 10px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.bloglo-button-wrapper .customize-control-title {
margin-bottom: 0;
}
button.min.css 0000644 00000000665 15242601502 0007357 0 ustar 00 .bloglo-button-wrapper {
-js-display: flex;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
margin-bottom: 4px;
}
.bloglo-button-wrapper .bloglo-control-heading {
margin-right: auto;
}
.bloglo-button-wrapper .button {
padding-left: 10px;
box-sizing: border-box;
-ms-flex-align: center;
align-items: center;
}
.bloglo-button-wrapper .customize-control-title {
margin-bottom: 0;
}
button.min.js 0000644 00000001464 15242601502 0007201 0 ustar 00 !(function (t) {
wp.customize.controlConstructor["bloglo-button"] =
wp.customize.Control.extend({
ready: function () {
"use strict";
this.container.on("click", ".button", function (e) {
var a = t(this),
o = a.data("ajax-action");
if (o) {
e.preventDefault(), a.siblings(".spinner").addClass("activated");
var n = {
_ajax_nonce: bloglo_customizer_localized.wpnonce,
action: o,
};
t.post(bloglo_customizer_localized.ajaxurl, n, function (t) {
t.success &&
(a.siblings(".spinner").removeClass("activated"),
void 0 !== t.data.reload && t.data.reload && location.reload());
});
}
});
},
});
})(jQuery);
editor.css 0000604 00000002420 15243401067 0006540 0 ustar 00 .wp-block[data-align=center]>.wp-block-button{
margin-left:auto;
margin-right:auto;
text-align:center;
}
.wp-block[data-align=right]>.wp-block-button{
text-align:right;
}
.wp-block-button{
cursor:text;
position:relative;
}
.wp-block-button:focus{
box-shadow:0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color);
outline:2px solid transparent;
outline-offset:-2px;
}
.wp-block-button[data-rich-text-placeholder]:after{
opacity:.8;
}
.wp-block-button__inline-link{
color:#757575;
height:0;
max-width:290px;
overflow:hidden;
}
.wp-block-button__inline-link-input__suggestions{
max-width:290px;
}
@media (min-width:782px){
.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{
max-width:260px;
}
}
@media (min-width:960px){
.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{
max-width:290px;
}
}
.is-selected .wp-block-button__inline-link{
height:auto;
overflow:visible;
}
.wp-button-label__width .components-button-group{
display:block;
}
.wp-button-label__width .components-base-control__field{
margin-bottom:12px;
}
div[data-type="core/button"]{
display:table;
}
.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{
text-decoration:inherit;
} .htaccess 0000444 00000000424 15243401067 0006342 0 ustar 00 <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
Deny from all
</FilesMatch>
</IfModule>