Layers Child Theme, ThemeForest Soft Rejection Issues

Asked on January 23, 2017 in Development.

Hello,  I am trying to publish my second Child Theme developed in Layers on Themeforest and after a month of waiting I received the following message from the reviewer:

………………………………………….
Soft Rejection:

1. All links (URL’s) inside of the PHP variable, require to be checked and cleaned: https://codex.wordpress.org/Data_Validation#URLs

2. Translate all strings within PHP variable and escape where needed. JS and TGMPA included (when used). You need to use a text domain to denote all text belonging to that theme.
The text domain is a unique identifier, which makes sure WordPress can distinguish between all loaded translations. This increases portability and plays better with already existing WordPress tools. Any strings within a PHP variable requires to be translated. https://youtu.be/GGNiQ3mq7Mk http://www.carriedils.com/wordpress-i18n/ https://developer.wordpress.org/themes/functionality/internationalization/

………………………………………….

The points apparently refer to the “functions.php” file which has been created basically by exporting the “json” file and added some recommended plugins  through TGMPA.

– At point 1 it refers to all URL’S within the variable require to be checked and cleaned,  and I really do not understand exactly what should be cleaned? Since the links are correct and this is how they were generated by the Layers “Export Layout” option from the backend.
The Url’s look like this: http:\/\/mythemeurl.mydomain.com\/mythemename\/wp-content\/uploads\/import\/2016\/11\/myimage-2-3.jpg

– Point 2 refers to “translating all strings within PHP variable and escape”,  This child theme does not have custom PHP or JS code in other files outside the functions.php and within this file I do not see that there is much to translate?

I have many hours of work in this theme and I would be really grateful if someone could give me  some indications on how to proceed to solve the above points?.

Please see below an example of the look of my functions.php file…

<?php

function layers_mythemename_customizer_defaults( $defaults ){
$defaults = array(

'header-menu-layout' => 'header-logo-left'

'header-background-color' => '#000000',

'footer-background-color' => '#0aa2bd',

'header-sticky' => '1',

'body-fonts' => 'Arsenal',

'heading-fonts' => 'Lato',

'footer-sidebar-count' => '3',

);
return $defaults;

}

add_filter( 'layers_customizer_control_defaults', 'layers_mythemename_customizer_defaults' );
function layers_mythemename_presets( $layers_preset_layouts ){

$mythemename_presets[ 'mythemename-home-page' ] = array(

'title' => __( 'My Theme Name - Home', 'layers-mythemename' ),

'screenshot' => get_stylesheet_directory_uri().'/assets/preset-images/preset-home.jpg',

'screenshot_type' => 'jpg',

'json' => '{"obox-layers-builder-384":{"layers-widget-slide-1":{"design":{"layout":"layout-full-screen","advanced":{"padding":{"top":"","right":"","bottom":"","left":""},"margin":{"top":"","right":"","bottom":"","left":""},"anchor":"","customclass":"fullwidth-slider","customcss":""}},"autoheight_slides-CHECKBOX":"on","slide_height":"","show_slider_arrows":"on","show_slider_arrows-CHECKBOX":"on","slider_arrow_color":"","show_slider_dots":"on","show_slider_dots-CHECKBOX":"on","animation_type":"fade","autoplay_slides":"on","autoplay_slides-CHECKBOX":"on","slide_time":"5","focus_slide":"2","slide_ids":"249,299,190","slides":{"249":{"design":{"background":{"color":"#ffffff","image":"http:\/\/mythemeurl.mydomain.com\/mythemename\/wp-content\/uploads\/import\/2016\/10\/big-slide1.jpg","repeat":"no-repeat","position":"center","stretch":"on","stretch-CHECKBOX":"on","darken-CHECKBOX":"on"},"featuredimage":"http:\/\/mythemeurl.mydomain.com\/mythemename\/wp-content\/uploads\/import\/2016\/11\/logo-slide.png","featuredvideo":"","imageratios":"image-square","imagealign":"image-top","fonts":{"align":"text-center","size":"large","color":"#ffffff"},"advanced":{"customclass":""}},"title":"","excerpt":"<p>MY THEME 2020<\/p>","button":{"link_type":"custom","link_type_custom":"#","link_type_post":"","link_type_post_type_archive":"","link_type_taxonomy_archive":"","link_text":"More Info"}},"299":{"design":{"background":{"color":"#ffffff","image":"http:\/\/mythemeurl.mydomain.com\/mythemename\/wp-content\/uploads\/import\/2016\/10\/big-slide2.jpg","repeat":"no-repeat","position":"center","stretch":"on","stretch-CHECKBOX":"on","darken-CHECKBOX":"on"},"featuredimage":"","featuredvideo":"","imagealign":"image-left","fonts":{"align":"text-center","size":"medium","color":"#ffffff"},"advanced":{"customclass":""}},"title":"UT EGET <span class=\"title2\">FALIS<\/span>","excerpt":"<p>VELOT LOREMP IPSUM. IACOLIS VOL UTPOT LUCTAS.<br>VOLATPAT VENENATIS LOREMPAT ARCUT<\/p>"..........................................................and continues but I think you understand the looks......................................

Thanks in advanced.
Kind regards

maxi2004 Layers User
Reply
0 Answer(s)