Skip to content

Commit

Permalink
Merge branch 'release/1.7.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
gregpriday committed Aug 1, 2016
2 parents 875b556 + f531a5b commit 3a6fc33
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist
.DS_Store
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ Screenshot includes an image by Kathy Priday. Released under GPL.
Change Log
-----------------------------------------------

#### 1.7 - 2 June 2016
#### 1.7.2 - 1 August 2016
* Updated settings framework.
* Integrated with SiteOrigin Premium.

#### 1.7.1 - 2 June 2016
* Properly include all minified JS versions.

#### 1.7 - 30 May 2016
Expand Down
Binary file added admin/about/screenshot-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added admin/about/screenshot-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions inc/customizer/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,17 +577,15 @@ function create_css_builder(){
* Enqueue the customizer scripts
*/
function enqueue(){
$js_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
wp_enqueue_script('siteorigin-customizer-preview', get_template_directory_uri() . '/inc/customizer/js/live-customizer' . $js_suffix . '.js', array( 'jquery','customize-preview' ), SITEORIGIN_THEME_VERSION);
wp_enqueue_script('siteorigin-customizer-preview', get_template_directory_uri() . '/inc/customizer/js/live-customizer' . SITEORIGIN_THEME_JS_PREFIX . '.js', array( 'jquery','customize-preview' ), SITEORIGIN_THEME_VERSION);
wp_localize_script('siteorigin-customizer-preview', 'customizeSettings', $this->settings);
}

/**
* Enqueue scripts for the actual customizer admin
*/
function admin_enqueue( ){
$js_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
wp_enqueue_script('siteorigin-customizer-admin', get_template_directory_uri() . '/inc/customizer/js/admin' . $js_suffix . '.js', array( 'jquery', 'customize-controls' ), SITEORIGIN_THEME_VERSION);
wp_enqueue_script('siteorigin-customizer-admin', get_template_directory_uri() . '/inc/customizer/js/admin' . SITEORIGIN_THEME_JS_PREFIX . '.js', array( 'jquery', 'customize-controls' ), SITEORIGIN_THEME_VERSION);
wp_localize_script('siteorigin-customizer-admin', 'soCustomizeAdmin', array(
'confirm' => __('Are you sure you want to reset your theme customizations?', 'origami'),
'button' => __('Reset Customizations', 'origami'),
Expand Down
3 changes: 1 addition & 2 deletions inc/mobilenav/mobilenav.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
function siteorigin_mobilenav_enqueue_scripts() {
$root_uri = get_template_directory_uri() . '/inc/mobilenav/';

$js_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
wp_enqueue_script( 'siteorigin-mobilenav', $root_uri . 'js/mobilenav' . $js_suffix . '.js', array( 'jquery' ), SITEORIGIN_THEME_VERSION );
wp_enqueue_script( 'siteorigin-mobilenav', $root_uri . 'js/mobilenav' . SITEORIGIN_THEME_JS_PREFIX . '.js', array( 'jquery' ), SITEORIGIN_THEME_VERSION );

$text = array(
'navigate' => __( 'Menu', 'origami' ),
Expand Down
2 changes: 1 addition & 1 deletion inc/settings
18 changes: 16 additions & 2 deletions inc/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ function origami_settings_init(){
'description' => __("Changes [gallery] shortcode galleries into a fancy slider.", 'origami')
));

$settings->add_teaser( 'display', 'attribution', 'checkbox', __( 'Footer Attribution', 'origami' ), array(
'description' => __("Hide/show the link to SiteOrigin in your footer.", 'origami')
) );

$settings->add_field('display', 'featured_image', 'checkbox', __('Display featured Image', 'origami'), array(
'description' => __('Featured image above posts', 'origami')
));
Expand Down Expand Up @@ -68,6 +72,10 @@ function origami_settings_init(){

$settings->add_section( 'comments', __('Comments', 'origami') );

$settings->add_teaser( 'comments', 'ajax', 'checkbox', __( 'Ajax Comments', 'origami' ), array(
'description' => __("Use ajax comments system.", 'origami')
) );

}
add_action('siteorigin_settings_init', 'origami_settings_init');

Expand Down Expand Up @@ -109,6 +117,14 @@ function origami_about_page_setup( $about ){

$about['description'] = __( 'Origami is one of our most elegant, mature WordPress themes. Find out more about what it has to offer by watching this short video.', 'origami' );

$about[ 'video_thumbnail' ] = array(
get_template_directory_uri() . '/admin/about/screenshot-1.jpg',
get_template_directory_uri() . '/admin/about/screenshot-2.jpg',
);

$about['documentation_url'] = 'https://siteorigin.com/origami-documentation/';
$about['review'] = true;

$about[ 'sections' ] = array(
'free',
'support',
Expand All @@ -117,8 +133,6 @@ function origami_about_page_setup( $about ){
'github',
);

$about[ 'premium_url' ] = false;

return $about;
}
add_filter( 'siteorigin_about_page', 'origami_about_page_setup' );

0 comments on commit 3a6fc33

Please sign in to comment.