Skip to content

Commit

Permalink
chore: phocs
Browse files Browse the repository at this point in the history
  • Loading branch information
imnavanath committed Jan 10, 2024
1 parent 98abf17 commit 4999c41
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions classes/class-astra-blk-meta-boxes-bulk-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ public function setup_bulk_options() {
'default' => 'no-change',
'sanitize' => 'FILTER_DEFAULT',
),
'ast-hfb-above-header-display' => array(
'ast-hfb-above-header-display' => array(
'default' => 'no-change',
'sanitize' => 'FILTER_DEFAULT',
),
'ast-hfb-below-header-display' => array(
'ast-hfb-below-header-display' => array(
'default' => 'no-change',
'sanitize' => 'FILTER_DEFAULT',
),
'ast-hfb-mobile-header-display' => array(
'ast-hfb-mobile-header-display' => array(
'default' => 'no-change',
'sanitize' => 'FILTER_DEFAULT',
),
Expand Down Expand Up @@ -387,7 +387,7 @@ public function display_quick_edit_custom( $column, $screen ) {

$html = '';
wp_nonce_field( basename( __FILE__ ), 'astra_settings_bulk_meta_box' );
$theme_name = apply_filters( 'astra_page_title', __( 'Astra', 'astra-bulk-edit' ) );
$theme_name = apply_filters( 'astra_page_title', __( 'Astra', 'astra-bulk-edit' ) );
$is_builder_active = is_callable( 'Astra_Builder_Helper::is_header_footer_builder_active' ) ? Astra_Builder_Helper::is_header_footer_builder_active() : false;
if ( 'astra-settings' == $column ) { ?>
<fieldset class="astra-bulk-settings inline-edit-col ">
Expand Down Expand Up @@ -485,18 +485,18 @@ public function display_quick_edit_custom( $column, $screen ) {

// Above Header Layout.
if ( $is_builder_active ) {
$above_header_meta = ( Astra_Builder_Helper::is_row_empty( 'above', 'header', 'desktop' ) || Astra_Builder_Helper::is_row_empty( 'above', 'header', 'mobile' ) ) ? true : false;
$above_header_meta = ( Astra_Builder_Helper::is_row_empty( 'above', 'header', 'desktop' ) || Astra_Builder_Helper::is_row_empty( 'above', 'header', 'mobile' ) ) ? true : false;
$above_header_meta_key = 'ast-hfb-above-header-display';
} elseif ( ! $is_builder_active && is_callable( 'Astra_Ext_Extension::is_active' ) && Astra_Ext_Extension::is_active( 'header-sections' ) ) {
$above_header_layout = astra_get_option( 'above-header-layout' );
$above_header_meta = 'disabled' != $above_header_layout ? true : false;
$above_header_layout = astra_get_option( 'above-header-layout' );
$above_header_meta = 'disabled' != $above_header_layout ? true : false;
$above_header_meta_key = 'ast-above-header-display';
} else {
$above_header_meta = false;
$above_header_meta = false;
$above_header_meta_key = 'ast-above-header-display';
}
if ( $above_header_meta ) {
?>
?>
<label class="inline-edit" for="<?php echo esc_attr( $above_header_meta_key ); ?>">
<span class="title"><?php esc_html_e( 'Above Header', 'astra-bulk-edit' ); ?></span>
<select name="<?php echo esc_attr( $above_header_meta_key ); ?>" id="<?php echo esc_attr( $above_header_meta_key ); ?>">
Expand All @@ -509,14 +509,14 @@ public function display_quick_edit_custom( $column, $screen ) {
<?php
// Below Header Layout.
if ( $is_builder_active ) {
$below_header_meta = ( Astra_Builder_Helper::is_row_empty( 'below', 'header', 'desktop' ) || Astra_Builder_Helper::is_row_empty( 'below', 'header', 'mobile' ) ) ? true : false;
$below_header_meta = ( Astra_Builder_Helper::is_row_empty( 'below', 'header', 'desktop' ) || Astra_Builder_Helper::is_row_empty( 'below', 'header', 'mobile' ) ) ? true : false;
$below_header_meta_key = 'ast-hfb-below-header-display';
} elseif ( ! $is_builder_active && is_callable( 'Astra_Ext_Extension::is_active' ) && Astra_Ext_Extension::is_active( 'header-sections' ) ) {
$below_header_layout = astra_get_option( 'below-header-layout' );
$below_header_meta = 'disabled' != $below_header_layout ? true : false;
$below_header_layout = astra_get_option( 'below-header-layout' );
$below_header_meta = 'disabled' != $below_header_layout ? true : false;
$below_header_meta_key = 'ast-below-header-display';
} else {
$below_header_meta = false;
$below_header_meta = false;
$below_header_meta_key = 'ast-below-header-display';
}
if ( $below_header_meta ) {
Expand Down Expand Up @@ -544,7 +544,7 @@ public function display_quick_edit_custom( $column, $screen ) {
</label>
<?php
}
?>
?>

<?php
$ast_theme_transparent_header = astra_get_option( 'theme-transparent-header-meta' );
Expand Down Expand Up @@ -601,7 +601,7 @@ public function display_quick_edit_custom( $column, $screen ) {
$above_header_meta = ( Astra_Builder_Helper::is_row_empty( 'above', 'header', 'desktop' ) || Astra_Builder_Helper::is_row_empty( 'above', 'header', 'mobile' ) ) ? true : false;
} elseif ( ! $is_builder_active && Astra_Ext_Extension::is_active( 'header-sections' ) ) {
$above_header_layout = astra_get_option( 'above-header-layout' );
$above_header_meta = 'disabled' != $above_header_layout ? true : false;
$above_header_meta = 'disabled' != $above_header_layout ? true : false;
} else {
$above_header_meta = false;
}
Expand All @@ -622,7 +622,7 @@ public function display_quick_edit_custom( $column, $screen ) {
if ( $is_builder_active ) {
$primary_header_meta = ( Astra_Builder_Helper::is_row_empty( 'primary', 'header', 'desktop' ) || Astra_Builder_Helper::is_row_empty( 'primary', 'header', 'mobile' ) ) ? true : false;
} elseif ( ! $is_builder_active && Astra_Ext_Extension::is_active( 'header-sections' ) ) {
$header_layouts = astra_get_option( 'header-layouts' );
$header_layouts = astra_get_option( 'header-layouts' );
$primary_header_meta = 'header-main-layout-5' != $header_layouts ? true : false;
} else {
$primary_header_meta = false;
Expand All @@ -644,7 +644,7 @@ public function display_quick_edit_custom( $column, $screen ) {
$below_header_meta = ( Astra_Builder_Helper::is_row_empty( 'below', 'header', 'desktop' ) || Astra_Builder_Helper::is_row_empty( 'below', 'header', 'mobile' ) ) ? true : false;
} elseif ( ! $is_builder_active && Astra_Ext_Extension::is_active( 'header-sections' ) ) {
$below_header_layout = astra_get_option( 'below-header-layout' );
$below_header_meta = 'disabled' != $below_header_layout ? true : false;
$below_header_meta = 'disabled' != $below_header_layout ? true : false;
} else {
$below_header_meta = false;
}
Expand Down Expand Up @@ -672,7 +672,6 @@ public function display_quick_edit_custom( $column, $screen ) {
<?php
// Breadcrumbs.
$ast_breadcrumbs_position = astra_get_option( 'breadcrumb-position', 'none' );
error_log( $ast_breadcrumbs_position );
if ( 'none' !== $ast_breadcrumbs_position ) {
?>
<label class="inline-edit" for="ast-breadcrumbs-content">
Expand Down Expand Up @@ -730,7 +729,8 @@ public function display_quick_edit_custom( $column, $screen ) {
<option value="disabled"> <?php esc_html_e( 'Disabled', 'astra-bulk-edit' ); ?> </option>
</select>
</label>
<?php }
<?php
}
?>
</div>

Expand Down

0 comments on commit 4999c41

Please sign in to comment.