Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
webmandesign committed Dec 11, 2017
1 parent 15873d1 commit 220890f
Show file tree
Hide file tree
Showing 9 changed files with 5,915 additions and 4 deletions.
8 changes: 8 additions & 0 deletions assets/css/custom-styles-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,20 @@ button, input, select, textarea { background-color: transparent; }

.color-error { background-color: rgba(238, 0, 0, 0.85); color: #fff; }

.color-error a:not(.button) { color: inherit; }

.color-info { background-color: rgba(0, 85, 238, 0.85); color: #fff; }

.color-info a:not(.button) { color: inherit; }

.color-success { background-color: rgba(0, 119, 34, 0.85); color: #fff; }

.color-success a:not(.button) { color: inherit; }

.color-warning { background-color: rgba(255, 221, 0, 0.85); color: #310; }

.color-warning a:not(.button) { color: inherit; }

/* FILE: main/custom-styles/__accent.scss */
mark, .highlight { /*[*/ -webkit-box-shadow: 0.38em 0 0 #00855b, -0.38em 0 0 #00855b; box-shadow: 0.38em 0 0 #00855b, -0.38em 0 0 #00855b; /*]*/ /*// box-shadow: .38em 0 0 [[color_accent]], -.38em 0 0 [[color_accent]]; //*/ }

Expand Down
8 changes: 8 additions & 0 deletions assets/css/custom-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,20 @@ button, input, select, textarea { background-color: transparent; }

.color-error { background-color: rgba(238, 0, 0, 0.85); color: #fff; }

.color-error a:not(.button) { color: inherit; }

.color-info { background-color: rgba(0, 85, 238, 0.85); color: #fff; }

.color-info a:not(.button) { color: inherit; }

.color-success { background-color: rgba(0, 119, 34, 0.85); color: #fff; }

.color-success a:not(.button) { color: inherit; }

.color-warning { background-color: rgba(255, 221, 0, 0.85); color: #310; }

.color-warning a:not(.button) { color: inherit; }

/* FILE: main/custom-styles/__typography.scss */
/**if(typography_custom_fonts)
Expand Down
5 changes: 5 additions & 0 deletions assets/scss/main/custom-styles/__base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
.color-#{$color} {
background-color: map_get( $colors, '#{$color}_background' ); //*
color: map_get( $colors, '#{$color}_text' ); //*

a:not(.button) {
color: inherit;
}

}

}
10 changes: 7 additions & 3 deletions includes/plugins/jetpack/class-jetpack-custom-post-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@ private function __construct() {

// Setup

add_post_type_support( 'jetpack-portfolio', 'excerpt' );
add_theme_support( 'jetpack-portfolio' );

add_post_type_support( 'jetpack-portfolio', 'custom-fields' );
add_post_type_support( 'jetpack-testimonial', 'custom-fields' );
add_post_type_support( 'jetpack-portfolio', 'excerpt' );
add_post_type_support( 'jetpack-portfolio', 'custom-fields' );

add_theme_support( 'jetpack-testimonial' );

add_post_type_support( 'jetpack-testimonial', 'custom-fields' );

// Hooks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private function __construct() {

if ( isset( $plugin_options['nsfp_posttypes'] ) ) {
foreach ( (array) $plugin_options['nsfp_posttypes'] as $post_type => $enabled ) {
if ( post_type_exists( $post_type ) ) {
if ( $enabled && post_type_exists( $post_type ) ) {
self::$supported_post_types[] = $post_type;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,38 @@ public static function before() {
}
}

// NS Featured Posts

self::ns_featured_posts();

} // /before



/**
* NS Featured Posts plugin options
*
* @since 2.0.0
* @version 2.0.0
*/
public static function ns_featured_posts() {

// Helper variables

$plugin_options = get_option( 'nsfp_plugin_options' );


// Processing

$plugin_options['nsfp_posttypes']['post'] = 1;
$plugin_options['nsfp_posttypes']['jetpack-portfolio'] = 1;

update_option( 'nsfp_plugin_options', $plugin_options );

} // /ns_featured_posts



/**
* After import actions
*
Expand Down
Loading

0 comments on commit 220890f

Please sign in to comment.