Skip to content

Commit

Permalink
Merge pull request #4291 from Codeinwp/feat/addon/2709
Browse files Browse the repository at this point in the history
Added new custom layout magic tag support
  • Loading branch information
vytisbulkevicius authored Oct 28, 2024
2 parents 7a1094d + 5821995 commit 00d2657
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions header-footer-grid/Core/Magic_Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,15 @@ public function current_single_excerpt() {
return is_singular() ? get_the_excerpt() : '';
}

/**
* Single Post Content.
*
* @return string
*/
public function current_single_content() {
return is_singular() ? get_the_content() : '';
}

/**
* Single Post meta.
*
Expand Down Expand Up @@ -590,6 +599,10 @@ private function setup_config() {
'label' => __( 'Current Single Excerpt', 'neve' ),
'type' => 'string',
],
'current_single_content' => [
'label' => __( 'Current Single Content', 'neve' ),
'type' => 'string',
],
'current_single_url' => [
'label' => __( 'Current Single URL', 'neve' ),
'type' => 'url',
Expand Down

0 comments on commit 00d2657

Please sign in to comment.