PATH:
home
/
letacommog
/
laindinois
/
OLD
/
wp-content
/
plugins
/
wordpress-seo-premium
/
admin
<?php /** * @package WPSEO\Admin */ /** * Class to implement a React modal. */ class Yoast_Modal { /** @var array The modal configuration. */ private static $config = array(); /** * Class constructor. */ public function __construct() { add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_assets' ) ); add_action( 'admin_footer', array( $this, 'print_localized_config' ) ); } /** * Enqueues the assets needed for the modal. */ public function enqueue_assets() { $asset_manager = new WPSEO_Admin_Asset_Manager(); $asset_manager->enqueue_script( 'yoast-modal' ); } /** * Prints the modals configuration. */ public function print_localized_config() { $config = self::$config; wp_localize_script( WPSEO_Admin_Asset_Manager::PREFIX . 'yoast-modal', 'yoastModalConfig', $config ); } /** * Adds a single modal configuration to the modals configuration. * * @param array $args The modal configuration arguments. */ public static function add( $args ) { $defaults = self::get_defaults(); $single = array_replace_recursive( $defaults, $args ); self::$config[] = $single; } /** * Gets the modals configuration. */ public function get_config() { return self::$config; } /** * Gets the default configuration for a modal. * * @return array { * The modal default configuration. * * @type string $mountHook Any CSS query selector to target an element that will be replaced * by the modal open button. * @type string $appElement Element the modal will hide with `aria-hidden`. For better * accessibility, set it to the most general wrapper and don't use body. * @type string $openButtonIcon Optional. Icon for the open button. * @type array $intl Locale and labels for the modal main elements. If omitted, the related * elements will not be used. Only exception is `modalAriaLabel` which is * required by the React modal component. * @type array $classes Optional. CSS classes for the modal buttons. * @type string $content The name of the React component to use as the modal content. * } */ public static function get_defaults() { $config = array( 'mountHook' => '', 'appElement' => '#wpwrap', 'openButtonIcon' => '', 'intl' => array( 'locale' => WPSEO_Utils::get_user_locale(), 'open' => __( 'Open', 'wordpress-seo' ), 'modalAriaLabel' => null, 'heading' => null, 'closeIconButton' => __( 'Close', 'wordpress-seo' ), 'closeButton' => null, ), 'classes' => array( 'openButton' => '', 'closeIconButton' => '', 'closeButton' => '', ), 'content' => null, ); return $config; } }
[+]
..
[-] class-yoast-columns.php
[edit]
[-] class-database-proxy.php
[edit]
[-] class-admin-editor-specific-replace-vars.php
[edit]
[-] courses-overview.php
[edit]
[-] class-admin-asset-manager.php
[edit]
[-] class-license-page-manager.php
[edit]
[-] class-bulk-title-editor-list-table.php
[edit]
[+]
views
[-] class-option-tabs-formatter.php
[edit]
[+]
services
[-] class-keyword-synonyms-modal.php
[edit]
[-] interface-collection.php
[edit]
[-] class-schema-person-upgrade-notification.php
[edit]
[-] class-yoast-network-admin.php
[edit]
[-] class-yoast-dashboard-widget.php
[edit]
[-] class-admin-asset-location.php
[edit]
[-] class-recalculate-scores.php
[edit]
[+]
import
[-] index.php
[edit]
[+]
formatter
[-] class-plugin-availability.php
[edit]
[-] class-asset.php
[edit]
[-] class-admin-asset-analysis-worker-location.php
[edit]
[-] class-admin-asset-seo-location.php
[edit]
[-] class-yoast-form.php
[edit]
[-] class-meta-table-accessible.php
[edit]
[+]
recalculate
[-] class-admin-help-panel.php
[edit]
[-] class-extensions.php
[edit]
[+]
metabox
[+]
pages
[-] class-extension-manager.php
[edit]
[-] class-expose-shortlinks.php
[edit]
[+]
capabilities
[-] class-yoast-plugin-conflict.php
[edit]
[-] class-config.php
[edit]
[-] .DS_Store
[edit]
[+]
notifiers
[-] class-option-tabs.php
[edit]
[-] class-admin-recommended-replace-vars.php
[edit]
[+]
config-ui
[-] class-meta-columns.php
[edit]
[-] class-remote-request.php
[edit]
[-] class-social-admin.php
[edit]
[-] class-plugin-conflict.php
[edit]
[-] class-collector.php
[edit]
[+]
roles
[-] class-yoast-modal.php
[edit]
[-] class-multiple-keywords-modal.php
[edit]
[-] class-cornerstone.php
[edit]
[-] class-admin-utils.php
[edit]
[+]
onpage
[-] class-admin.php
[edit]
[-] class-admin-gutenberg-compatibility-notification.php
[edit]
[-] class-add-keyword-modal.php
[edit]
[-] class-my-yoast-proxy.php
[edit]
[-] class-premium-popup.php
[edit]
[+]
watchers
[+]
listeners
[-] class-option-tab.php
[edit]
[+]
exceptions
[+]
links
[-] class-customizer.php
[edit]
[-] class-my-yoast-route.php
[edit]
[-] class-suggested-plugins.php
[edit]
[-] class-admin-media-purge-notification.php
[edit]
[+]
menu
[-] class-primary-term-admin.php
[edit]
[+]
taxonomy
[-] class-help-center.php
[edit]
[-] class-admin-asset-dev-server-location.php
[edit]
[+]
help_center
[-] ajax.php
[edit]
[-] class-yoast-notification-center.php
[edit]
[-] class-paper-presenter.php
[edit]
[-] class-bulk-description-editor-list-table.php
[edit]
[-] class-yoast-network-settings-api.php
[edit]
[-] class-meta-storage.php
[edit]
[-] class-extension.php
[edit]
[-] interface-installable.php
[edit]
[-] class-yoast-alerts.php
[edit]
[+]
endpoints
[-] class-bulk-editor-list-table.php
[edit]
[-] class-plugin-compatibility.php
[edit]
[-] class-admin-init.php
[edit]
[-] class-gutenberg-compatibility.php
[edit]
[+]
filters
[-] class-admin-asset-yoast-components-l10n.php
[edit]
[-] class-yoast-notification.php
[edit]
[-] class-export.php
[edit]
[+]
tracking
[-] class-help-center-item.php
[edit]
[+]
google_search_console
[+]
statistics
[-] class-premium-upsell-admin-block.php
[edit]
[+]
ajax
[-] class-admin-user-profile.php
[edit]
[-] class-product-upsell-notice.php
[edit]