-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.5.4' of github.com:pojome/elementor into rele…
…ase/1.5.4
- Loading branch information
Showing
9 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
namespace Elementor; | ||
|
||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | ||
|
||
/** | ||
* A single Checkbox control | ||
* | ||
* @param string $default Whether to initial it as checked. 'on' for checked, and '' (empty string) for unchecked | ||
* Default '' | ||
* @deprecated since 1.5.4 | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
class Control_Checkbox extends Base_Data_Control { | ||
|
||
public function get_type() { | ||
return 'checkbox'; | ||
} | ||
|
||
public function get_value( $control, $widget ) { | ||
_deprecated_file( __CLASS__, '1.5.4' ); | ||
|
||
return parent::get_value( $control, $widget ); | ||
} | ||
|
||
public function content_template() { | ||
?> | ||
<label class="elementor-control-title"> | ||
<input type="checkbox" data-setting="{{ data.name }}" /> | ||
<span>{{{ data.label }}}</span> | ||
</label> | ||
<# if ( data.description ) { #> | ||
<div class="elementor-control-field-description">{{{ data.description }}}</div> | ||
<# } #> | ||
<?php | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters