-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cristian-ungureanu
committed
May 25, 2021
1 parent
a35ce12
commit 8d83bcc
Showing
13 changed files
with
592 additions
and
426 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,10 +99,6 @@ | |
float: right; | ||
} | ||
} | ||
|
||
input[type=submit] { | ||
@extend %nv-button-secondary; | ||
} | ||
} | ||
|
||
.comment-form { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<?php | ||
/** | ||
* Default settings traits, shared with other classes. | ||
* | ||
* @package Neve\Customizer\Defaults | ||
*/ | ||
|
||
namespace Neve\Customizer\Defaults; | ||
|
||
/** | ||
* Trait Single_Post_Defaults | ||
* | ||
* @package Neve\Customizer\Defaults | ||
*/ | ||
trait Single_Post { | ||
|
||
/** | ||
* Get default values for cover padding. | ||
* | ||
* @return array | ||
*/ | ||
public function padding_default( $param = '' ) { | ||
|
||
$m_t = $m_r = $m_b = $m_l = $t_t = $t_r = $t_b = $t_l = $d_t = $d_r = $d_b = $d_l = 15; //phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found | ||
|
||
if ( $param === 'cover' ) { | ||
$m_t = $m_b = 40; //phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found | ||
$m_r = $m_l = $d_r = $d_l = $t_r = $t_l = 15; //phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found | ||
$t_t = $t_b = $d_t = $d_b = 60; //phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found | ||
} | ||
|
||
return [ | ||
'mobile' => [ | ||
'top' => $m_t, | ||
'right' => $m_r, | ||
'bottom' => $m_b, | ||
'left' => $m_l, | ||
], | ||
'tablet' => [ | ||
'top' => $t_t, | ||
'right' => $t_r, | ||
'bottom' => $t_b, | ||
'left' => $t_l, | ||
], | ||
'desktop' => [ | ||
'top' => $d_t, | ||
'right' => $d_r, | ||
'bottom' => $d_b, | ||
'left' => $d_l, | ||
], | ||
'mobile-unit' => 'px', | ||
'tablet-unit' => 'px', | ||
'desktop-unit' => 'px', | ||
]; | ||
} | ||
|
||
/** | ||
* Get the default value for title alignment. | ||
* | ||
* @return array | ||
*/ | ||
public static function post_title_alignment() { | ||
$default_position = is_rtl() ? 'right' : 'left'; | ||
return [ | ||
'mobile' => $default_position, | ||
'tablet' => $default_position, | ||
'desktop' => $default_position, | ||
]; | ||
} | ||
|
||
/** | ||
* Get the default value for title vertical position. | ||
* | ||
* @return array | ||
*/ | ||
public function post_title_position() { | ||
return [ | ||
'mobile' => 'bottom', | ||
'tablet' => 'bottom', | ||
'desktop' => 'bottom', | ||
]; | ||
} | ||
|
||
/** | ||
* Get default values for ordering control | ||
* | ||
* @return array | ||
*/ | ||
public function post_ordering() { | ||
$default_components = [ | ||
'title-meta', | ||
'thumbnail', | ||
'content', | ||
'tags', | ||
'comments', | ||
]; | ||
|
||
if ( get_theme_mod( 'neve_post_header_layout' ) === 'cover' ) { | ||
$default_components = [ | ||
'content', | ||
'tags', | ||
'comments', | ||
]; | ||
} | ||
|
||
return apply_filters( 'neve_single_post_elements_default_order', $default_components ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.