Skip to content

Commit

Permalink
Merge pull request #3 from FameThemes/development
Browse files Browse the repository at this point in the history
Merge branch 'master' into development
  • Loading branch information
KienTrong committed Feb 20, 2016
2 parents 5fffb34 + 2705365 commit 7ec9e80
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion inc/customizer-controls.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ public function render_content() {

class Codilight_Lite_Theme_Support extends WP_Customize_Control {
public function render_content() {
echo __( 'Upgrade to <a href="#">OnePress Pro</a> to be able to change the section order and styling!', 'codilight-lite' );
echo __( 'Upgrade to <a href="#">Codilight Premium</a> to be able to change the section order and styling!', 'codilight-lite' );
}
}
18 changes: 14 additions & 4 deletions inc/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a target="_blank" href="https://www.famethemes.com/themes/codilight/?utm_source=theme_customizer&utm_medium=text_link&utm_campaign=codilight_lite_customizer">Codilight Premium</a> 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 ) {
Expand Down Expand Up @@ -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' );



9 changes: 4 additions & 5 deletions inc/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,31 @@ function codilight_lite_theme_info_page() {

<div class="wrap about-wrap theme_info_wrapper">
<h1><?php printf(esc_html__('Welcome to %1s - Version %2s', 'codilight-lite'), $theme_data->Name, $theme_data->Version ); ?></h1>
<div class="about-text">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.</div>
<div class="about-text"><?php esc_html_e( 'Codilight Lite is a news magazine style WordPress theme from FameThemes which is a perfect option to create any kind of magazine or blog websites.', 'codilight-lite' ) ?></div>
<a target="_blank" href="<?php echo esc_url('http://www.famethemes.com/?utm_source=theme_dashboard_page&utm_medium=badge_link&utm_campaign=theme_admin'); ?>" class="famethemes-badge wp-badge"><span>FameThemes</span></a>
<h2 class="nav-tab-wrapper">
<a href="?page=ft_codilight_lite" class="nav-tab nav-tab-active"><?php echo $theme_data->Name; ?></a>
<a href="?page=ft_codilight_lite&tab=premium" class="nav-tab">Upgrade To Pro</a>
</h2>

<div class="theme_info">
<div class="theme_info_column clearfix">
<div class="theme_info_left">
<div class="theme_link">
<h3>Theme Customizer</h3>
<h3><?php esc_html_e( 'Theme Customizer', 'codilight-lite' ); ?></h3>
<p class="about"><?php printf(esc_html__('%s supports the Theme Customizer for all theme settings. Click "Customize" to start customize your site.', 'codilight-lite'), $theme_data->Name); ?></p>
<p>
<a href="<?php echo admin_url('customize.php'); ?>" class="button button-primary"><?php esc_html_e('Start Customize', 'codilight-lite'); ?></a>
</p>
</div>
<div class="theme_link">
<h3>Theme Documentation</h3>
<h3><?php esc_html_e( 'Theme Documentation', 'codilight-lite' ); ?></h3>
<p class="about"><?php printf(esc_html__('Need any help to setup and configure %s? Please have a look at our documentations instructions.', 'codilight-lite'), $theme_data->Name); ?></p>
<p>
<a href="<?php echo esc_url( esc_html__( 'http://docs.famethemes.com/category/30-codilight-lite', 'codilight-lite' ) ); ?>" target="_blank" class="button button-secondary"><?php esc_html_e('Online Documentation', 'codilight-lite'); ?></a>
</p>
</div>
<div class="theme_link">
<h3>Having Trouble, Need Support?</h3>
<h3><?php esc_html_e( 'Having Trouble, Need Support?', 'codilight-lite' ); ?></h3>
<p class="about"><?php printf(esc_html__('Support for %s WordPress theme is conducted through the WordPress free theme support forum.', 'codilight-lite'), $theme_data->Name); ?></p>
<p>
<a href="<?php echo esc_url( esc_html__( 'https://wordpress.org/support/theme/codilight-lite', 'codilight-lite' ) ); ?>" target="_blank" class="button button-secondary"><?php echo sprintf( esc_html('Go To %s Support Forum', 'codilight-lite'), $theme_data->Name); ?></a>
Expand Down

0 comments on commit 7ec9e80

Please sign in to comment.