PATH:
home
/
letacommog
/
laindinois
/
OLD
/
wp-content
/
plugins
/
wpseo-news
/
classes
<?php /** * Yoast SEO: News plugin file. * * @package WPSEO_News\Admin */ /** * Represents wrappers for the form methods. */ class WPSEO_News_Wrappers { /** * Fallback for admin_header. * * @param bool $form Whether or not the form start tag should be included. * @param string $option_long_name Group name of the option. * @param string $option The short name of the option to use for the current page. * @param bool $contains_files Whether the form should allow for file uploads. * * @return mixed */ public static function admin_header( $form = true, $option_long_name = 'yoast_wpseo_options', $option = 'wpseo', $contains_files = false ) { if ( method_exists( 'Yoast_Form', 'admin_header' ) ) { Yoast_Form::get_instance()->admin_header( $form, $option, $contains_files, $option_long_name ); return; } return self::admin_pages()->admin_header( true, 'yoast_wpseo_news_options', 'wpseo_news' ); } /** * Fallback for admin_footer. * * @param bool $submit Whether or not a submit button and form end tag should be shown. * @param bool $show_sidebar Whether or not to show the banner sidebar - used by premium plugins to disable it. * * @return mixed */ public static function admin_footer( $submit = true, $show_sidebar = true ) { if ( method_exists( 'Yoast_Form', 'admin_footer' ) ) { Yoast_Form::get_instance()->admin_footer( $submit, $show_sidebar ); return; } return self::admin_pages()->admin_footer( $submit, $show_sidebar ); } /** * Fallback for the textinput method. * * @param string $var The variable within the option to create the text input field for. * @param string $label The label to show for the variable. * @param string $option The option to use. * * @return mixed */ public static function textinput( $var, $label, $option = '' ) { if ( method_exists( 'Yoast_Form', 'textinput' ) ) { if ( $option !== '' ) { Yoast_Form::get_instance()->set_option( $option ); } Yoast_Form::get_instance()->textinput( $var, $label ); return; } return self::admin_pages()->textinput( $var, $label, $option ); } /** * Wrapper for select method. * * @param string $var The variable within the option to create the select for. * @param string $label The label to show for the variable. * @param array $values The select options to choose from. * @param string $option The option to use. * * @return mixed */ public static function select( $var, $label, $values, $option = '' ) { if ( method_exists( 'Yoast_Form', 'select' ) ) { if ( $option !== '' ) { Yoast_Form::get_instance()->set_option( $option ); } Yoast_Form::get_instance()->select( $var, $label, $values ); return; } return self::admin_pages()->select( $var, $label, $option ); } /** * Wrapper for checkbox method. * * @param string $var The variable within the option to create the checkbox for. * @param string $label The label to show for the variable. * @param bool $label_left Whether the label should be left (true) or right (false). * @param string $option The option to use. * * @return mixed */ public static function checkbox( $var, $label, $label_left = false, $option = '' ) { if ( method_exists( 'Yoast_Form', 'checkbox' ) ) { if ( $option !== '' ) { Yoast_Form::get_instance()->set_option( $option ); } Yoast_Form::get_instance()->checkbox( $var, $label, $label_left ); return; } return self::admin_pages()->checkbox( $var, $label, $label_left, $option ); } /** * Returns the wpseo_admin pages global variable. * * @return mixed */ private static function admin_pages() { global $wpseo_admin_pages; return $wpseo_admin_pages; } }
[+]
..
[-] upgrade-manager.php
[edit]
[-] sitemap.php
[edit]
[-] head.php
[edit]
[-] class-wpseo-news.php
[edit]
[-] class-sitemap-item.php
[edit]
[-] class-meta-box.php
[edit]
[-] sitemap-timezone.php
[edit]
[-] class-beacon-setting.php
[edit]
[-] meta-box.php
[edit]
[-] wpseo-news.php
[edit]
[-] class-product.php
[edit]
[-] javascript-strings.php
[edit]
[-] sitemap-images.php
[edit]
[-] class-head.php
[edit]
[-] class-sitemap.php
[edit]
[-] class-upgrade-manager.php
[edit]
[-] beacon-setting.php
[edit]
[-] class-admin-page.php
[edit]
[-] class-news-wrappers.php
[edit]
[-] class-sitemap-images.php
[edit]
[-] wrappers.php
[edit]
[-] sitemap-item.php
[edit]
[-] product.php
[edit]
[-] class-javascript-strings.php
[edit]
[-] schema.php
[edit]
[-] admin-page.php
[edit]
[-] excludable-taxonomies.php
[edit]
[-] class-sitemap-timezone.php
[edit]