Skip to content

Commit

Permalink
exit if no taxonomy page
Browse files Browse the repository at this point in the history
  • Loading branch information
jcvignoli committed Dec 16, 2024
1 parent 5588413 commit b57328b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 8 deletions.
11 changes: 9 additions & 2 deletions dist/class/theme/class-taxonomy-items-standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* You can replace the occurences of the word s_tandar_d (without the underscores), rename this file, and then copy it in your theme folder
* Or easier: just use Lumière admin interface to do it automatically
*
* Version: 3.1.1
* Version: 3.1.2
*
* @package lumiere-movies
*/
Expand All @@ -23,7 +23,7 @@
* This template retrieves automaticaly all post related to an item taxonomy
* It is a virtual page created when the appropriate rules are met
*
* @see \Lumiere\Frontend\Taxonomy That build the taxonomy system and taxonomy pages
* @see \Lumiere\Alteration\Taxonomy That build the taxonomy system and taxonomy pages
*
* @since 4.0 Returns all Lumière taxonomies that can be clicked when visiting the item template page
*/
Expand Down Expand Up @@ -79,8 +79,15 @@ public function __construct() {

/**
* Static start
* @since 4.2.2 Run on taxonomy pages only
*/
public static function lumiere_static_start(): void {

// Run on taxonomy pages only.
if ( is_tax() === false ) {
return;
}

$class = new self();

// Display the page. Must not be included into an add_action(), as should be displayed directly, since it's a template.
Expand Down
11 changes: 9 additions & 2 deletions dist/class/theme/class-taxonomy-people-standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* You can replace the occurences of the word s_tandar_d (without the underscores), rename this file, and then copy it in your theme folder
* Or easier: just use Lumière admin interface to do it automatically
*
* Version: 3.7.1
* Version: 3.7.2
*
* @package lumiere-movies
*/
Expand All @@ -27,7 +27,7 @@
* It is a virtual page created according to Lumiere taxonomy
* If used along with Polylang WordPress plugin, a form is displayed to filter by available language
*
* @see \Lumiere\Frontend\Taxonomy That build the taxonomy system and taxonomy pages
* @see \Lumiere\Alteration\Taxonomy Build the taxonomy system and taxonomy pages
* @see \Lumiere\Frontend Trait to builds $this->link_maker var
*
* @since 4.1 Use of plugins detection, lumiere_medaillon_bio() returns larger number of characters for introduction, Polylang form with AMP works
Expand Down Expand Up @@ -99,8 +99,15 @@ public function __construct() {

/**
* Static start
* @since 4.2.2 Run on taxonomy pages only
*/
public static function lumiere_static_start(): void {

// Run on taxonomy pages only.
if ( is_tax() === false ) {
return;
}

$class = new self();

// Display the page. Must not be included into an add_action(), as should be displayed directly, since it's a template.
Expand Down
11 changes: 9 additions & 2 deletions src/class/theme/class-taxonomy-items-standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* You can replace the occurences of the word s_tandar_d (without the underscores), rename this file, and then copy it in your theme folder
* Or easier: just use Lumière admin interface to do it automatically
*
* Version: 3.1.1
* Version: 3.1.2
*
* @package lumiere-movies
*/
Expand All @@ -23,7 +23,7 @@
* This template retrieves automaticaly all post related to an item taxonomy
* It is a virtual page created when the appropriate rules are met
*
* @see \Lumiere\Frontend\Taxonomy That build the taxonomy system and taxonomy pages
* @see \Lumiere\Alteration\Taxonomy That build the taxonomy system and taxonomy pages
*
* @since 4.0 Returns all Lumière taxonomies that can be clicked when visiting the item template page
*/
Expand Down Expand Up @@ -79,8 +79,15 @@ public function __construct() {

/**
* Static start
* @since 4.2.2 Run on taxonomy pages only
*/
public static function lumiere_static_start(): void {

// Run on taxonomy pages only.
if ( is_tax() === false ) {
return;
}

$class = new self();

// Display the page. Must not be included into an add_action(), as should be displayed directly, since it's a template.
Expand Down
11 changes: 9 additions & 2 deletions src/class/theme/class-taxonomy-people-standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* You can replace the occurences of the word s_tandar_d (without the underscores), rename this file, and then copy it in your theme folder
* Or easier: just use Lumière admin interface to do it automatically
*
* Version: 3.7.1
* Version: 3.7.2
*
* @package lumiere-movies
*/
Expand All @@ -27,7 +27,7 @@
* It is a virtual page created according to Lumiere taxonomy
* If used along with Polylang WordPress plugin, a form is displayed to filter by available language
*
* @see \Lumiere\Frontend\Taxonomy That build the taxonomy system and taxonomy pages
* @see \Lumiere\Alteration\Taxonomy Build the taxonomy system and taxonomy pages
* @see \Lumiere\Frontend Trait to builds $this->link_maker var
*
* @since 4.1 Use of plugins detection, lumiere_medaillon_bio() returns larger number of characters for introduction, Polylang form with AMP works
Expand Down Expand Up @@ -99,8 +99,15 @@ public function __construct() {

/**
* Static start
* @since 4.2.2 Run on taxonomy pages only
*/
public static function lumiere_static_start(): void {

// Run on taxonomy pages only.
if ( is_tax() === false ) {
return;
}

$class = new self();

// Display the page. Must not be included into an add_action(), as should be displayed directly, since it's a template.
Expand Down

0 comments on commit b57328b

Please sign in to comment.