This commit introduces a more reliable and consistent approach to setting up the development environment using backups: - Add setup-from-backup.sh script for environment setup from existing backups - Standardize script naming and organization - Move obsolete scripts to bin/obsolete directory - Update documentation with new workflow instructions - Create migration guide for transitioning to new workflow - Update Memory Bank with workflow improvements The new workflow provides: - More reliable environment setup - Faster setup process - Offline development capability - Consistent development environments across team members Breaking changes: - setup-dev.sh is replaced by setup-from-backup.sh - sync-and-setup.sh is replaced by separate scripts - verify-with-wpcli.sh is no longer used Migration path is documented in MIGRATION_GUIDE.md
25 lines
873 B
PHP
25 lines
873 B
PHP
<?php
|
|
/**
|
|
* Scroll To Top Template
|
|
*
|
|
* @package Astra
|
|
* @since 4.0.0
|
|
*/
|
|
|
|
// Bail early if it is not astra customizer.
|
|
if ( is_customize_preview() && ! Astra_Customizer::is_astra_customizer() ) {
|
|
return;
|
|
}
|
|
|
|
$astra_addon_scroll_top_alignment = astra_get_option( 'scroll-to-top-icon-position' );
|
|
$astra_addon_scroll_top_devices = astra_get_option( 'scroll-to-top-on-devices' );
|
|
?>
|
|
|
|
<div id="ast-scroll-top" tabindex="0" class="<?php echo esc_attr( apply_filters( 'astra_scroll_top_icon', 'ast-scroll-top-icon' ) ); ?> ast-scroll-to-top-<?php echo esc_attr( $astra_addon_scroll_top_alignment ); ?>" data-on-devices="<?php echo esc_attr( $astra_addon_scroll_top_devices ); ?>">
|
|
<?php
|
|
if ( Astra_Icons::is_svg_icons() ) {
|
|
Astra_Icons::get_icons( 'arrow', true );
|
|
}
|
|
?>
|
|
<span class="screen-reader-text"><?php esc_html_e( 'Scroll to Top', 'astra' ); ?></span>
|
|
</div>
|