first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
class WPML_UI_Unlock_Button {
public function render( $disabled, $unlocked, $radio_name, $unlocked_name ) {
if ( $disabled && ! $unlocked ) { ?>
<button type="button"
class="button-secondary wpml-button-lock js-wpml-sync-lock"
title="<?php esc_html_e( 'This setting is controlled by a wpml-config.xml file. Click here to unlock and override this setting.', 'sitepress' ); ?>"
data-radio-name="<?php echo $radio_name; ?>"
data-unlocked-name="<?php echo $unlocked_name; ?>">
<i class="otgs-ico-lock"></i>
</button>
<?php } ?>
<input type="hidden" name="<?php echo $unlocked_name; ?>" value="<?php echo $unlocked ? '1' : '0'; ?>">
<?php
}
}