array( 'style.css', __( 'Stylesheet', 'luxeritas' ), '' . __( '* Deleting the original comment may malfunction to have the theme not work as the child theme.', 'luxeritas' ) . '' ), 'edit_script' => array( 'luxech.js', 'Javascript', '' ), 'edit_header' => array( 'add-header.php', 'Head ' . __( 'tag', 'luxeritas' ), '' . __( '* Write here the Sytle or Javascript which wants to be placed in the head tag.', 'luxeritas' ) . '' ), 'edit_footer' => array( 'add-footer.php', __( 'Footer', 'luxeritas' ), '' . __( '* Write here the Sytle or Javascript which wants to be placed in the footer.', 'luxeritas' ) . '' ), 'edit_analytics_head' => array( 'add-analytics-head.php', 'Analytics ( head )', '
' . __( '* When inserting the tracking code in <head> tag, please write it here.', 'luxeritas' ) . '
' . '' . __( '* Recommended to add Google Analytics code (gtag.js) and other tracking code here.', 'luxeritas' ) . '' ), 'edit_analytics' => array( 'add-analytics.php', 'Analytics ( body )', '' . __( '* When inserting the tracking code in <body> tag, please write it here.', 'luxeritas' ) . '
' . '| ' . __( 'Tracking code position', 'luxeritas' ) . ' : | ' . '' . sprintf( __( 'Top of %s', 'luxeritas' ), '<body>' ) . ' | ' . '' . sprintf( __( 'Bottom of %s', 'luxeritas' ), '<body>' ) . ' | ' . '
' . __( '* Please insert amp-auto-ads tag here when using Auto ads for AMP.', 'luxeritas' ) . ' ' . __( 'The head tag of amp-auto-ads is unnecessary as it is automatically loaded.', 'luxeritas' ) . '
' . '| ' . __( 'Insertion position', 'luxeritas' ) . ' : | ' . '' . sprintf( __( 'Top of %s', 'luxeritas' ), '<body>' ) . ' | ' . '' . sprintf( __( 'Bottom of %s', 'luxeritas' ), '<body>' ) . ' | ' . '
' . __( 'You do not have sufficient permissions to edit templates for this site.', 'luxeritas' ) . '
'); } if( $theme->exists() === false ) { wp_die( __( 'The requested theme does not exist.', 'luxeritas' ) ); } if( $theme->errors() && 'theme_no_stylesheet' == $theme->errors()->get_error_code() ) { wp_die( __( 'The requested theme does not exist.', 'luxeritas' ) . ' ' . $theme->errors()->get_error_message() ); } if( TPATH !== SPATH ) { if( !isset( $_GET['active'] ) ) { $file = SPATH . DSEP . $files['edit_style'][0]; $title = $files['edit_style'][1]; $msg = $files['edit_style'][2]; } else { foreach( $files as $key => $val ) { if( $_GET['active'] === $key ) { $file = SPATH . DSEP . $val[0]; $title = $val[1]; $msg = $val[2]; } } } if( is_file( $file ) === true && file_exists( $file ) === true ) { $content = thk_convert( $wp_filesystem->get_contents( $file ) ); $content = esc_textarea( $content ); } else { $error = true; } $title_sub = str_replace( SPATH . DSEP, '', $file ); } else { $title = '' . __( 'The theme selected is not the child theme, but the parent theme', 'luxeritas' ) . ''; $title_sub = __( 'This feature can only be used when the child theme is selected.', 'luxeritas' ); } ?>' . __( 'This theme is broken.', 'luxeritas' ) . ' ' . $theme->errors()->get_error_message() . '
' . __( 'Oops, no such file exists! Double check the name and try again, merci.', 'luxeritas' ) . '