芝麻web文件管理V1.00
编辑当前文件:/home/elegucvf/public_html/src/editors/framework/site/base-site-information.php
short_link_helper = $short_link_helper; $this->wistia_embed_permission_repository = $wistia_embed_permission_repository; $this->meta = $meta; $this->product_helper = $product_helper; $this->options_helper = $options_helper; $this->promotion_manager = $promotion_manager; } /** * Returns site information that is the * * @throws Exception If an invalid user ID is supplied to the wistia repository. * @return array
*/ public function get_site_information(): array { return [ 'adminUrl' => \admin_url( 'admin.php' ), 'linkParams' => $this->short_link_helper->get_query_params(), 'pluginUrl' => \plugins_url( '', \WPSEO_FILE ), 'wistiaEmbedPermission' => $this->wistia_embed_permission_repository->get_value_for_user( \get_current_user_id() ), 'site_name' => $this->meta->for_current_page()->site_name, 'contentLocale' => \get_locale(), 'userLocale' => \get_user_locale(), 'isRtl' => \is_rtl(), 'isPremium' => $this->product_helper->is_premium(), 'siteIconUrl' => \get_site_icon_url(), 'showSocial' => [ 'facebook' => $this->options_helper->get( 'opengraph', false ), 'twitter' => $this->options_helper->get( 'twitter', false ), ], 'sitewideSocialImage' => $this->options_helper->get( 'og_default_image' ), // phpcs:ignore Generic.ControlStructures.DisallowYodaConditions -- Bug: squizlabs/PHP_CodeSniffer#2962. 'isPrivateBlog' => ( (string) \get_option( 'blog_public' ) ) === '0', 'currentPromotions' => $this->promotion_manager->get_current_promotions(), 'blackFridayBlockEditorUrl' => ( $this->promotion_manager->is( 'black-friday-2023-checklist' ) ) ? $this->short_link_helper->get( 'https://yoa.st/black-friday-checklist' ) : '', ]; } /** * Returns site information that is the * * @throws Exception If an invalid user ID is supplied to the wistia repository. * @return array
*/ public function get_legacy_site_information(): array { return [ 'adminUrl' => \admin_url( 'admin.php' ), 'linkParams' => $this->short_link_helper->get_query_params(), 'pluginUrl' => \plugins_url( '', \WPSEO_FILE ), 'wistiaEmbedPermission' => $this->wistia_embed_permission_repository->get_value_for_user( \get_current_user_id() ), 'sitewideSocialImage' => $this->options_helper->get( 'og_default_image' ), // phpcs:ignore Generic.ControlStructures.DisallowYodaConditions -- Bug: squizlabs/PHP_CodeSniffer#2962. 'isPrivateBlog' => ( (string) \get_option( 'blog_public' ) ) === '0', 'currentPromotions' => $this->promotion_manager->get_current_promotions(), 'blackFridayBlockEditorUrl' => ( $this->promotion_manager->is( 'black-friday-2023-checklist' ) ) ? $this->short_link_helper->get( 'https://yoa.st/black-friday-checklist' ) : '', 'metabox' => [ 'site_name' => $this->meta->for_current_page()->site_name, 'contentLocale' => \get_locale(), 'userLocale' => \get_user_locale(), 'isRtl' => \is_rtl(), 'isPremium' => $this->product_helper->is_premium(), 'siteIconUrl' => \get_site_icon_url(), 'showSocial' => [ 'facebook' => $this->options_helper->get( 'opengraph', false ), 'twitter' => $this->options_helper->get( 'twitter', false ), ], ], ]; } }