Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/monara/public_html/test.athavaneng.com/themes.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
bootstrap.php 0000644 00000003327 15073233517 0007305 0 ustar 00 get_site_suffix();
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
require_once __DIR__ . '/additional-css/class-wpcom-additional-css-manager.php';
$manager = new WPCOM_Additional_CSS_Manager( $domain );
} elseif ( ( new Host() )->is_woa_site() ) {
require_once __DIR__ . '/additional-css/class-atomic-additional-css-manager.php';
$manager = new Atomic_Additional_CSS_Manager( $domain );
}
if ( ! isset( $manager ) ) {
return;
}
$manager->register_nudge( $customize_manager );
}
/**
* Load the bootstrap on init action.
*
* We need to load on init because otherwise the filter will not be set to true in WPCOM (since the add_filter is set on init).
*/
function load_bootstrap_on_init() {
/**
* Disable Additional CSS section from Customizer in WPCOM and Atomic and replace it with a nudge.
*
* @module masterbar
*
* @since 9.9.0
*
* @param bool
*/
if ( \apply_filters( 'jetpack_customize_enable_additional_css_nudge', false ) ) {
\add_action( 'customize_register', __NAMESPACE__ . '\register_css_nudge_control' );
}
}
add_action( 'init', __NAMESPACE__ . '\load_bootstrap_on_init' );
additional-css/css/additional-css.css 0000644 00000000406 15073233517 0013650 0 ustar 00 .customize-control-cssNudge .nudge-container {
width: 100%;
padding: 50px 0;
}
.customize-control-cssNudge .nudge-container p {
text-align: center;
}
.customize-control-cssNudge .nudge-container .button-container {
margin-top: 20px;
text-align: center;
}
additional-css/js/additional-css.js 0000644 00000002267 15073233517 0013327 0 ustar 00 ( function ( $ ) {
'use strict';
var cssNudge = {
init: function () {
this.clickifyNavigateToButtons();
},
clickifyNavigateToButtons: function () {
var navButton = document.querySelector( '.navigate-to' );
if ( ! navButton ) {
return;
}
navButton.addEventListener( 'click', function () {
// Get destination.
var destination = this.getAttribute( 'data-navigate-to-page' );
if ( ! destination ) {
return;
}
// Fire Tracks click event.
window._tkq = window._tkq || [];
window._tkq.push( [
'recordEvent',
'calypso_upgrade_nudge_cta_click',
{
cta_name: 'customizer_css',
},
] );
// Navigate to a different page.
if (
window.location.search.match( /calypso=true/ ) &&
window.parent.location !== window.location
) {
// Calypso.
window.top.postMessage(
JSON.stringify( {
calypso: true,
command: 'navigateTo',
destination: destination,
} ),
'*'
);
} else {
// Non-Calypso.
window.location = 'https://wordpress.com' + destination;
}
} );
},
};
$( document ).ready( function () {
cssNudge.init();
} );
} )( jQuery );
additional-css/class-css-nudge-customize-control.php 0000644 00000002204 15073233517 0016650 0 ustar 00 cta_url;
$nudge_copy = $this->nudge_copy;
$nudge_button_copy = __( 'Upgrade Now', 'jetpack' );
echo '