remove error on theme sniffer (Theme and Core)

This commit is contained in:
Fabiano 2018-10-03 16:27:20 -03:00
parent ae384650b1
commit 0092cbffd3
3 changed files with 7 additions and 7 deletions

View File

@ -17,14 +17,14 @@ class TainacanThemeCollectionColor {
function action_tainacan_enqueue_admin_scripts() { function action_tainacan_enqueue_admin_scripts() {
wp_enqueue_script( 'tainacan_colorWell', get_template_directory_uri() . '/functions/collection-color.js', false, false, true ); wp_enqueue_script( 'tainacan_colorWell', get_template_directory_uri() . '/functions/collection-color.js', false, false, true );
wp_enqueue_style( 'tainacan_colorWellStyle', get_template_directory_uri() . '/functions/collection-color.css' ); wp_enqueue_style( 'tainacan_colorWellStyle', get_template_directory_uri() . '/functions/collection-color.css' );
wp_localize_script( 'tainacan_colorWell', 'tainacan_colorPickerVars', [ wp_localize_script( 'tainacan_colorWell', 'tainacan_colorPickerVars', array(
'cancelText' => __("cancel", 'tainacan-interface'), 'cancelText' => __("cancel", 'tainacan-interface'),
'chooseText' => __("choose", 'tainacan-interface'), 'chooseText' => __("choose", 'tainacan-interface'),
'togglePaletteMoreText' => __("more", 'tainacan-interface'), 'togglePaletteMoreText' => __("more", 'tainacan-interface'),
'togglePaletteLessText' => __("less", 'tainacan-interface'), 'togglePaletteLessText' => __("less", 'tainacan-interface'),
'clearText' => __("Clear Color Selection", 'tainacan-interface'), 'clearText' => __("Clear Color Selection", 'tainacan-interface'),
'noColorSelectedText' => __("No Color Selected", 'tainacan-interface'), 'noColorSelectedText' => __("No Color Selected", 'tainacan-interface'),
] ); ) );
wp_enqueue_script( 'tainacan_Spectrum', get_template_directory_uri() . '/assets/js/spectrum.js', false, false, true ); wp_enqueue_script( 'tainacan_Spectrum', get_template_directory_uri() . '/assets/js/spectrum.js', false, false, true );
wp_enqueue_style( 'tainacan_Spectrum', get_template_directory_uri() . '/assets/js/spectrum.css' ); wp_enqueue_style( 'tainacan_Spectrum', get_template_directory_uri() . '/assets/js/spectrum.css' );

View File

@ -46,10 +46,10 @@ if ( ! function_exists( 'tainacan_enqueues' ) ) {
* Tainacan Theme * Tainacan Theme
*/ */
wp_enqueue_script( 'tainacan_tainacanTruncate', get_template_directory_uri() . '/assets/js/tainacan-interface-truncate.js', array( 'jquery' ), '1.0', false ); wp_enqueue_script( 'tainacan_tainacanTruncate', get_template_directory_uri() . '/assets/js/tainacan-interface-truncate.js', array( 'jquery' ), '1.0', false );
wp_localize_script( 'tainacan_tainacanTruncate', 'tainacan_trucanteVars', [ wp_localize_script( 'tainacan_tainacanTruncate', 'tainacan_trucanteVars', array(
"moreText" => __('More', 'tainacan-interface'), "moreText" => __('More', 'tainacan-interface'),
"lessText" => __('Less', 'tainacan-interface') "lessText" => __('Less', 'tainacan-interface')
]); ));
wp_register_style( 'tainacan_tainacanStyle', get_stylesheet_uri(), array( 'tainacan_bootstrap4CSS' ) ); wp_register_style( 'tainacan_tainacanStyle', get_stylesheet_uri(), array( 'tainacan_bootstrap4CSS' ) );
wp_enqueue_style( 'tainacan_tainacanStyle' ); wp_enqueue_style( 'tainacan_tainacanStyle' );