Submit
Path:
~
/
home
/
getwphos
/
public_html
/
organizedproductivity
/
wp-content
/
plugins
/
wordpress-seo
/
admin
/
File Content:
class-customizer.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin\Customizer */ /** * Class with functionality to support WP SEO settings in WordPress Customizer. */ class WPSEO_Customizer { /** * Holds the customize manager. * * @var WP_Customize_Manager */ protected $wp_customize; /** * Template for the setting IDs used for the customizer. * * @var string */ private $setting_template = 'wpseo_titles[%s]'; /** * Default arguments for the breadcrumbs customizer settings object. * * @var array */ private $default_setting_args = [ 'default' => '', 'type' => 'option', 'transport' => 'refresh', ]; /** * Default arguments for the breadcrumbs customizer control object. * * @var array */ private $default_control_args = [ 'label' => '', 'type' => 'text', 'section' => 'wpseo_breadcrumbs_customizer_section', 'settings' => '', 'context' => '', ]; /** * Construct Method. */ public function __construct() { add_action( 'customize_register', [ $this, 'wpseo_customize_register' ] ); } /** * Function to support WordPress Customizer. * * @param WP_Customize_Manager $wp_customize Manager class instance. */ public function wpseo_customize_register( $wp_customize ) { if ( ! WPSEO_Capability_Utils::current_user_can( 'wpseo_manage_options' ) ) { return; } $this->wp_customize = $wp_customize; $this->breadcrumbs_section(); $this->breadcrumbs_blog_show_setting(); $this->breadcrumbs_separator_setting(); $this->breadcrumbs_home_setting(); $this->breadcrumbs_prefix_setting(); $this->breadcrumbs_archiveprefix_setting(); $this->breadcrumbs_searchprefix_setting(); $this->breadcrumbs_404_setting(); } /** * Add the breadcrumbs section to the customizer. */ private function breadcrumbs_section() { $section_args = [ /* translators: %s is the name of the plugin */ 'title' => sprintf( __( '%s Breadcrumbs', 'wordpress-seo' ), 'Yoast SEO' ), 'priority' => 999, 'active_callback' => [ $this, 'breadcrumbs_active_callback' ], ]; $this->wp_customize->add_section( 'wpseo_breadcrumbs_customizer_section', $section_args ); } /** * Returns whether or not the breadcrumbs are active. * * @return bool */ public function breadcrumbs_active_callback() { return current_theme_supports( 'yoast-seo-breadcrumbs' ) || WPSEO_Options::get( 'breadcrumbs-enable' ); } /** * Adds the breadcrumbs show blog checkbox. */ private function breadcrumbs_blog_show_setting() { $index = 'breadcrumbs-display-blog-page'; $control_args = [ 'label' => __( 'Show blog page in breadcrumbs', 'wordpress-seo' ), 'type' => 'checkbox', 'active_callback' => [ $this, 'breadcrumbs_blog_show_active_cb' ], ]; $this->add_setting_and_control( $index, $control_args ); } /** * Returns whether or not to show the breadcrumbs blog show option. * * @return bool */ public function breadcrumbs_blog_show_active_cb() { return get_option( 'show_on_front' ) === 'page'; } /** * Adds the breadcrumbs separator text field. */ private function breadcrumbs_separator_setting() { $index = 'breadcrumbs-sep'; $control_args = [ 'label' => __( 'Breadcrumbs separator:', 'wordpress-seo' ), ]; $id = 'wpseo-breadcrumbs-separator'; $this->add_setting_and_control( $index, $control_args, $id ); } /** * Adds the breadcrumbs home anchor text field. */ private function breadcrumbs_home_setting() { $index = 'breadcrumbs-home'; $control_args = [ 'label' => __( 'Anchor text for the homepage:', 'wordpress-seo' ), ]; $this->add_setting_and_control( $index, $control_args ); } /** * Adds the breadcrumbs prefix text field. */ private function breadcrumbs_prefix_setting() { $index = 'breadcrumbs-prefix'; $control_args = [ 'label' => __( 'Prefix for breadcrumbs:', 'wordpress-seo' ), ]; $this->add_setting_and_control( $index, $control_args ); } /** * Adds the breadcrumbs archive prefix text field. */ private function breadcrumbs_archiveprefix_setting() { $index = 'breadcrumbs-archiveprefix'; $control_args = [ 'label' => __( 'Prefix for archive pages:', 'wordpress-seo' ), ]; $this->add_setting_and_control( $index, $control_args ); } /** * Adds the breadcrumbs search prefix text field. */ private function breadcrumbs_searchprefix_setting() { $index = 'breadcrumbs-searchprefix'; $control_args = [ 'label' => __( 'Prefix for search result pages:', 'wordpress-seo' ), ]; $this->add_setting_and_control( $index, $control_args ); } /** * Adds the breadcrumb 404 prefix text field. */ private function breadcrumbs_404_setting() { $index = 'breadcrumbs-404crumb'; $control_args = [ 'label' => __( 'Breadcrumb for 404 pages:', 'wordpress-seo' ), ]; $this->add_setting_and_control( $index, $control_args ); } /** * Adds the customizer setting and control. * * @param string $index Array key index to use for the customizer setting. * @param array $control_args Customizer control object arguments. * Only those different from the default need to be passed. * @param string|null $id Optional. Customizer control object ID. * Will default to 'wpseo-' . $index. * @param array $custom_settings Optional. Customizer setting arguments. * Only those different from the default need to be passed. */ private function add_setting_and_control( $index, $control_args, $id = null, $custom_settings = [] ) { $setting = sprintf( $this->setting_template, $index ); $control_args = array_merge( $this->default_control_args, $control_args ); $control_args['settings'] = $setting; $settings_args = $this->default_setting_args; if ( ! empty( $custom_settings ) ) { $settings_args = array_merge( $settings_args, $custom_settings ); } if ( ! isset( $id ) ) { $id = 'wpseo-' . $index; } $this->wp_customize->add_setting( $setting, $settings_args ); $control = new WP_Customize_Control( $this->wp_customize, $id, $control_args ); $this->wp_customize->add_control( $control ); } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
ajax
---
0755
capabilities
---
0755
endpoints
---
0755
exceptions
---
0755
filters
---
0755
formatter
---
0755
google_search_console
---
0755
import
---
0755
listeners
---
0755
menu
---
0755
metabox
---
0755
notifiers
---
0755
pages
---
0755
roles
---
0755
services
---
0755
statistics
---
0755
taxonomy
---
0755
tracking
---
0755
views
---
0755
watchers
---
0755
admin-settings-changed-listener.php
2403 bytes
0644
ajax.php
11280 bytes
0644
class-admin-asset-analysis-worker-location.php
1849 bytes
0644
class-admin-asset-dev-server-location.php
1665 bytes
0644
class-admin-asset-location.php
488 bytes
0644
class-admin-asset-manager.php
18168 bytes
0644
class-admin-asset-seo-location.php
2126 bytes
0644
class-admin-asset-yoast-components-l10n.php
2016 bytes
0644
class-admin-editor-specific-replace-vars.php
6493 bytes
0644
class-admin-gutenberg-compatibility-notification.php
2586 bytes
0644
class-admin-help-panel.php
2760 bytes
0644
class-admin-init.php
10730 bytes
0644
class-admin-recommended-replace-vars.php
6126 bytes
0644
class-admin-user-profile.php
3347 bytes
0644
class-admin-utils.php
2147 bytes
0644
class-admin.php
13429 bytes
0644
class-asset.php
4016 bytes
0644
class-bulk-description-editor-list-table.php
2100 bytes
0644
class-bulk-editor-list-table.php
29554 bytes
0644
class-bulk-title-editor-list-table.php
2286 bytes
0644
class-collector.php
984 bytes
0644
class-config.php
5700 bytes
0644
class-customizer.php
6345 bytes
0644
class-database-proxy.php
7556 bytes
0644
class-export.php
3405 bytes
0644
class-expose-shortlinks.php
8795 bytes
0644
class-gutenberg-compatibility.php
2515 bytes
0644
class-meta-columns.php
24431 bytes
0644
class-my-yoast-proxy.php
6273 bytes
0644
class-option-tab.php
2268 bytes
0644
class-option-tabs-formatter.php
2871 bytes
0644
class-option-tabs.php
2290 bytes
0644
class-paper-presenter.php
3600 bytes
0644
class-plugin-availability.php
8440 bytes
0644
class-plugin-conflict.php
4101 bytes
0644
class-premium-popup.php
2833 bytes
0644
class-premium-upsell-admin-block.php
3623 bytes
0644
class-primary-term-admin.php
7462 bytes
0644
class-product-upsell-notice.php
5705 bytes
0644
class-remote-request.php
3168 bytes
0644
class-schema-person-upgrade-notification.php
2221 bytes
0644
class-suggested-plugins.php
4245 bytes
0644
class-yoast-columns.php
3560 bytes
0644
class-yoast-dashboard-widget.php
4276 bytes
0644
class-yoast-form.php
37083 bytes
0644
class-yoast-input-validation.php
10720 bytes
0644
class-yoast-network-admin.php
10194 bytes
0644
class-yoast-network-settings-api.php
4276 bytes
0644
class-yoast-notification-center.php
26033 bytes
0644
class-yoast-notification.php
9611 bytes
0644
class-yoast-notifications.php
7669 bytes
0644
class-yoast-plugin-conflict.php
10442 bytes
0644
index.php
38 bytes
0644
interface-collection.php
257 bytes
0644
interface-installable.php
254 bytes
0644
N4ST4R_ID | Naxtarrr