芝麻web文件管理V1.00
编辑当前文件:/home/ephorei/www/wp-content/themes/astra/admin/includes/class-astra-theme-builder-free.php
esc_html__( 'Site Builder', 'astra' ), 'rest_url' => '/wp-json/astra-addon/v1/custom-layouts/', 'new_custom_layout_base_url' => admin_url( 'post-new.php?post_type=astra-advanced-hook' ), 'astra_pricing_page_url' => ASTRA_PRO_UPGRADE_URL, 'astra_docs_page_url' => 'https://wpastra.com/docs/custom-layouts-pro/', 'admin_url' => admin_url(), ); wp_localize_script( 'astra-theme-builder-script', 'astra_theme_builder', $localized_data ); wp_set_script_translations( 'astra-theme-builder-script', 'astra' ); } /** * Admin Body Classes * * @since 4.5.0 * @param string $classes Space separated class string. */ public function admin_body_class( $classes = '' ) { $theme_builder_class = isset( $_GET['page'] ) && 'theme-builder-free' === $_GET['page'] ? 'ast-theme-builder' : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Fetching a $_GET value, no nonce available to validate. $classes .= ' ' . $theme_builder_class . ' '; return $classes; } /** * Renders the admin settings. * * @since 4.5.0 * @return void */ public function render_theme_builder() { ?>