From 27053659cfce762b475fde067e45ff5d3e0975ac Mon Sep 17 00:00:00 2001 From: Kien T Date: Sat, 20 Feb 2016 14:34:56 +0700 Subject: [PATCH] Upsell text & internationalized text in theme dashboard --- CHANGELOG.md | 1 + inc/customizer-controls.php | 2 +- inc/customizer.php | 18 ++++++++++++++---- inc/dashboard.php | 9 ++++----- 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01cf546..15e3d42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ CHANGELOG ==================================================================== ## 1.0.2 * Fixed customizer select sanitize callback. +* All text in theme dashboard are now internationalized. ## 1.0.1 * Add more widgets and blocks. diff --git a/inc/customizer-controls.php b/inc/customizer-controls.php index 31312ad..4dc94b2 100644 --- a/inc/customizer-controls.php +++ b/inc/customizer-controls.php @@ -49,6 +49,6 @@ public function render_content() { class Codilight_Lite_Theme_Support extends WP_Customize_Control { public function render_content() { - echo __( 'Upgrade to OnePress Pro to be able to change the section order and styling!', 'codilight-lite' ); + echo __( 'Upgrade to Codilight Premium to be able to change the section order and styling!', 'codilight-lite' ); } } diff --git a/inc/customizer.php b/inc/customizer.php index f993833..9e2b1d1 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -101,12 +101,25 @@ function codilight_lite_customize_register( $wp_customize ) { 'description' => esc_html__( 'Category, Tag, Author, Archive Page ...', 'codilight-lite' ), ) ); + $wp_customize->add_setting( 'codilight_lite_color_message', + array( + 'sanitize_callback' => 'codilight_lite_sanitize_text' + ) + ); + $wp_customize->add_control( new Codilight_Lite_Misc_Control( $wp_customize, 'codilight_lite_color_message', + array( + 'section' => 'colors', + 'type' => 'custom_message', + 'description' => wp_kses_post( 'Check out Codilight Premium version for full control over site color styling!', 'codilight-lite' ) + ) + )); + } add_action( 'customize_register', 'codilight_lite_customize_register' ); /*------------------------------------------------------------------------*/ -/* OnePress Sanitize Functions. +/* Sanitize Functions. /*------------------------------------------------------------------------*/ function codilight_lite_sanitize_file_url( $file_url ) { @@ -170,6 +183,3 @@ function codilight_lite_customize_js() { wp_enqueue_script( 'codilight_lite_customizer', get_template_directory_uri() . '/assets/js/customizer.js', array( 'customize-controls' ), '20130508', true ); } add_action( 'customize_controls_print_scripts', 'codilight_lite_customize_js' ); - - - diff --git a/inc/dashboard.php b/inc/dashboard.php index 713549b..5253725 100644 --- a/inc/dashboard.php +++ b/inc/dashboard.php @@ -15,32 +15,31 @@ function codilight_lite_theme_info_page() {

Name, $theme_data->Version ); ?>

-
Patus is a personal blogging theme for WordPress and an effortlessly tool for publishers of all kind, cherished for its flexibility, clean layouts and speed.
+
FameThemes