Skip to content

Commit

Permalink
1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
webmandesign committed Jun 18, 2018
1 parent d7644b2 commit a39180d
Show file tree
Hide file tree
Showing 10 changed files with 1,420 additions and 530 deletions.
21 changes: 21 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Receptar Changelog

## 1.5.0

* **Update**: WordPress 4.9.6 compatibility (GDPR)
* **Update**: Scripts: Slick 1.8.0
* **Update**: Beaver Builder editor styles
* **Fix**: Checking for comments form fields isset in `receptar_comments_form_placeholders()`

### Files changed:

changelog.md
style.css
css/beaver-builder-editor.css
css/slick.css
css/starter.css
inc/setup.php
js/scripts-global.js
js/slick.min.js
js/dev/slick.js
template-parts/footer/site-info.php


## 1.4.1

* **Add**: Site title/logo partial refresh in customizer
Expand Down
10 changes: 1 addition & 9 deletions css/beaver-builder-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,11 @@
* @copyright 2015 WebMan - Oliver Juhas
*
* @since 1.0
* @version 1.4.0
* @version 1.5.0
*/



/**
* Wider module edit form
*/

body .fl-builder-lightbox .fl-lightbox { width: 720px; }

body .fl-builder-settings-tab { width: 100%; }



/**
Expand Down
8 changes: 5 additions & 3 deletions css/slick.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @copyright 2015 WebMan - Oliver Juhas
*
* @since 1.0
* @version 1.4.1
* @version 1.5.0
*/


Expand Down Expand Up @@ -134,7 +134,9 @@
*/

.site-banner .slick-slider .slider-nav {
position: relative;
position: absolute;
bottom: 0;
width: 90%;
height: 0;
padding: 0;
}
Expand Down Expand Up @@ -164,7 +166,7 @@
-ms-transition: opacity .4s ease-in-out;
transition: opacity .4s ease-in-out;
}
.site-banner .slick-next { right: 1rem; }
.site-banner .slick-next { right: 0; }

.site-banner .slick-prev span,
.site-banner .slick-next span {
Expand Down
14 changes: 4 additions & 10 deletions css/starter.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @copyright 2015 WebMan - Oliver Juhas
*
* @since 1.0.0
* @version 1.4.0
* @version 1.5.0
*/


Expand Down Expand Up @@ -1223,7 +1223,7 @@
* Sticky posts
*/

.sticky {}
.sticky { /* This theme does not apply special styles here. */ }



Expand Down Expand Up @@ -1388,6 +1388,8 @@
.comment-form p { margin-bottom: 1em; }

.comment-form label { display: block; }
.comment-form [type="checkbox"] + label,
.comment-form [type="radio"] + label { display: inline-block; }

.comment-form-author input,
.comment-form-email input,
Expand Down Expand Up @@ -1844,14 +1846,6 @@



/**
* Comments special
*/

.bypostauthor {}





/**
Expand Down
80 changes: 47 additions & 33 deletions inc/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright 2015 WebMan - Oliver Juhas
*
* @since 1.0.0
* @version 1.4.1
* @version 1.5.0
*
* CONTENT:
* - 10) Actions and filters
Expand Down Expand Up @@ -774,7 +774,7 @@ function receptar_customizer_preview_enqueue_assets() {
* HTML Body classes
*
* @since 1.0
* @version 1.0
* @version 1.5.0
*
* @param array $classes
*/
Expand All @@ -798,6 +798,12 @@ function receptar_body_classes( $classes ) {
$body_classes['is-not-singular'] = ++$i;
}

// Privacy Policy page

if ( (int) get_option( 'wp_page_for_privacy_policy' ) === get_the_ID() ) {
$body_classes['page-privacy-policy'] = ++$i;
}

//Has featured image?
if ( is_singular() && has_post_thumbnail() ) {
$body_classes['has-post-thumbnail'] = ++$i;
Expand Down Expand Up @@ -1858,61 +1864,69 @@ function receptar_entry_featured_image_fallback_url() {
* Add form field placeholders to comments form
*
* @since 1.0
* @version 1.3
* @version 1.5.0
*
* @param mixed $fields
*/
if ( ! function_exists( 'receptar_comments_form_placeholders' ) ) {
function receptar_comments_form_placeholders( $fields ) {
//Preparing output

//Processing

if ( is_string( $fields ) ) {

//Comment
// Comment

$fields = str_replace(
'<textarea',
'<textarea placeholder="' . esc_html_x( 'Comment', 'Comment form field placeholder text.', 'receptar' ) . '"',
$fields
);
'<textarea',
'<textarea placeholder="' . esc_html_x( 'Comment', 'Comment form field placeholder text.', 'receptar' ) . '"',
$fields
);

$fields = str_replace(
'rows="8"',
'rows="4"',
$fields
);
'rows="8"',
'rows="4"',
$fields
);

} else {

//Name
// Name

if ( isset( $fields['author'] ) ) {
$fields['author'] = str_replace(
'<input',
'<input placeholder="' . esc_html_x( 'Name', 'Comment form field placeholder text.', 'receptar' ) . '"',
$fields['author']
);
'<input',
'<input placeholder="' . esc_html_x( 'Name', 'Comment form field placeholder text.', 'receptar' ) . '"',
$fields['author']
);
}

//Email
if ( isset( $fields['author'] ) ) {
// Email

if ( isset( $fields['email'] ) ) {
$fields['email'] = str_replace(
'<input',
'<input placeholder="' . esc_html_x( 'Email', 'Comment form field placeholder text.', 'receptar' ) . '"',
$fields['email']
);
'<input',
'<input placeholder="' . esc_html_x( 'Email', 'Comment form field placeholder text.', 'receptar' ) . '"',
$fields['email']
);
}

//Website
if ( isset( $fields['author'] ) ) {
// Website

if ( isset( $fields['url'] ) ) {
$fields['url'] = str_replace(
'<input',
'<input placeholder="' . esc_html_x( 'Website', 'Comment form field placeholder text.', 'receptar' ) . '"',
$fields['url']
);
'<input',
'<input placeholder="' . esc_html_x( 'Website', 'Comment form field placeholder text.', 'receptar' ) . '"',
$fields['url']
);
}

}

//Output

// Output

return $fields;

}
} // /receptar_comments_form_placeholders

?>
Loading

0 comments on commit a39180d

Please sign in to comment.