Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
}

&-type {
width: 45%;
display: inline-block;
margin-right: 8px;

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const TransformationsToggle = ( props ) => {
return (
<PanelBody title={__( 'Transformations', 'cloudinary' )}>
<ToggleControl
label={__( 'Overwrite Transformations', 'cloudinary' )}
label={__( 'Overwrite Global Transformations', 'cloudinary' )}
checked={overwrite_transformations}
onChange={( value ) => {
setAttributes( {overwrite_transformations: value} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ private function template_overwrite_insert() {
return '<# if( data.attachment.attributes.transformations ) { #>
<div class="setting cld-overwrite">
<label>
<span>' . esc_html__( 'Overwrite Transformations', 'cloudinary' ) . '</span>
<span>' . esc_html__( 'Overwrite Global Transformations', 'cloudinary' ) . '</span>
<input type="checkbox" data-setting="cldoverwrite" value="true"<# if ( data.model.cldoverwrite ) { #> checked="checked"<# } #> />
</label>
</div>
Expand All @@ -602,7 +602,7 @@ private function template_overwrite_insert_video() {
return '<# if( \'video\' === data.type && data.attachment.attributes.transformations ) { #>
<div class="setting cld-overwrite">
<label>
<span>' . esc_html__( 'Overwrite Transformations', 'cloudinary' ) . '</span>
<span>' . esc_html__( 'Overwrite Global Transformations', 'cloudinary' ) . '</span>
<input type="checkbox" data-setting="cldoverwrite" value="true"<# if ( data.model.cldoverwrite ) { #> checked="checked"<# } #> />
</label>
</div>
Expand All @@ -620,7 +620,7 @@ private function template_overwrite_edit() {
<label>
<span>&nbsp;</span>
<input type="checkbox" data-setting="cldoverwrite" value="true" <# if ( data.model.cldoverwrite ) { #>checked="checked"<# } #> />
' . esc_html__( 'Overwrite Transformations', 'cloudinary' ) . '
' . esc_html__( 'Overwrite Global Transformations', 'cloudinary' ) . '
</label>
</div>
<# } #>';
Expand All @@ -636,7 +636,7 @@ private function template_overwrite_video_edit() {
<div class="setting cld-overwrite">
<label>
<input type="checkbox" data-setting="cldoverwrite" value="true" <# if ( data.model.cldoverwrite ) { #>checked="checked"<# } #> />
' . esc_html__( 'Overwrite Transformations', 'cloudinary' ) . '
' . esc_html__( 'Overwrite Global Transformations', 'cloudinary' ) . '
</label>
</div>
<# } #>';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,14 @@ private function init_taxonomy_manager( $post ) {
}
}
$out[] = '</ul>';

// Get apply Type.
$type = get_post_meta( $post->ID, self::META_APPLY_KEY . '_terms', true );
$out[] = '<label class="cld-tax-order-list-type"><input ' . checked( 'overwrite', $type, false ) . ' type="checkbox" value="overwrite" name="cld_apply_type" />' . __( 'Overwrite', 'cloudinary' ) . '</label>';
if ( ! empty( $terms ) ) {
$type = get_post_meta( $post->ID, self::META_APPLY_KEY . '_terms', true );
$out[] = '<label class="cld-tax-order-list-type"><input ' . checked( 'overwrite', $type, false ) . ' type="checkbox" value="overwrite" name="cld_apply_type" />' . __( 'Overwrite taxonomy', 'cloudinary' ) . '</label>';
}

$out[] = '</div>';

return implode( $out );
}

Expand Down Expand Up @@ -501,7 +504,7 @@ public function classic_overwrite_transformations_featured_image( $content, $pos
'<p><label for="%1$s"><input type="hidden" name="%1$s" value="0" /><input type="checkbox" name="%1$s" id="%1$s" value="1" %2$s /> %3$s</label></p>',
esc_attr( self::META_FEATURED_IMAGE_KEY ),
checked( $field_value, 1, false ),
esc_html__( 'Overwrite Transformations', 'cloudinary' )
esc_html__( 'Overwrite Global Transformations', 'cloudinary' )
);
}

Expand Down