This commit is contained in:
2024-05-20 15:37:46 +03:00
commit 00b7dbd0b7
10404 changed files with 3285853 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<?php
// Silence is golden.
// Hide file structure from users on unprotected servers.

View File

@ -0,0 +1,58 @@
<?php
/**
* @package Freemius
* @copyright Copyright (c) 2015, Freemius, Inc.
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
* @since 1.2.2.7
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<script type="text/javascript">
(function ($) {
if ($.fn.contentChange)
return;
/**
* Content change event listener.
*
* @url http://stackoverflow.com/questions/3233991/jquery-watch-div/3234646#3234646
*
* @param {function} callback
*
* @returns {object[]}
*/
$.fn.contentChange = function (callback) {
var elements = $(this);
elements.each(function () {
var element = $(this);
element.data("lastContents", element.html());
window.watchContentChange = window.watchContentChange ?
window.watchContentChange :
[];
window.watchContentChange.push({
"element" : element,
"callback": callback
});
});
return elements;
};
setInterval(function() {
if ( window.watchContentChange ) {
for ( var i in window.watchContentChange ) {
if ( window.watchContentChange[ i ].element.data( 'lastContents' ) !== window.watchContentChange[ i ].element.html() ) {
window.watchContentChange[ i ].callback.apply( undefined, [ false ] );
window.watchContentChange[ i ].element.data( 'lastContents', window.watchContentChange[ i ].element.html() )
}
}
}
}, 500 );
})(jQuery);
</script>

View File

@ -0,0 +1,37 @@
<?php
/**
* @package Freemius
* @copyright Copyright (c) 2015, Freemius, Inc.
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
* @since 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$license_id = $VARS['license_id'];
?>
<script type="text/javascript">
(function ($) {
var prepareLicenseActivationDialog = function () {
var $dialog = $('.fs-modal-license-activation');
// Trigger the license activation dialog box.
$($('.activate-license-trigger')[0]).click();
// setTimeout(function(){
$dialog.find('select.fs-licenses option[data-id=<?php echo $license_id ?>]')
.prop('selected', true)
.change();
// }, 100);
};
if ($('.fs-modal-license-activation').length > 0) {
prepareLicenseActivationDialog();
} else {
$('body').on('licenseActivationLoaded', function () {
prepareLicenseActivationDialog();
});
}
})(jQuery);
</script>

View File

@ -0,0 +1,53 @@
<?php
/**
* @package Freemius
* @copyright Copyright (c) 2015, Freemius, Inc.
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
* @since 1.2.2.7
*
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* @var array $VARS
* @var Freemius $fs
*/
$fs = freemius( $VARS['id'] );
$slug = $fs->get_slug();
?>
<script type="text/javascript">
(function ($) {
// Select the premium theme version.
var $theme = $('#<?php echo $slug ?>-premium-name').parents('.theme'),
addPremiumMetadata = function (firstCall) {
if (!firstCall) {
// Seems like the original theme element is removed from the DOM,
// so we need to reselect the updated one.
$theme = $('#<?php echo $slug ?>-premium-name').parents('.theme');
}
if (0 === $theme.find('.fs-premium-theme-badge-container').length) {
$theme.addClass('fs-premium');
var $themeBadgeContainer = $( '<div class="fs-premium-theme-badge-container"></div>' );
$themeBadgeContainer.append( '<div class="fs-badge fs-premium-theme-badge">' + <?php echo json_encode( $fs->get_text_inline( 'Premium', 'premium' ) ) ?> + '</div>' );
<?php if ( $fs->is_beta() ) : ?>
$themeBadgeContainer.append( '<div class="fs-badge fs-beta-theme-badge">' + <?php echo json_encode( $fs->get_text_inline( 'Beta', 'beta' ) ) ?> + '</div>' );
<?php endif ?>
$theme.append( $themeBadgeContainer );
}
};
addPremiumMetadata(true);
$theme.contentChange(addPremiumMetadata);
})(jQuery);
</script>