Skip to content

Commit

Permalink
Develop (#13)
Browse files Browse the repository at this point in the history
* Update namespace in composer

* Upgrade/php8.1 (#12)

* add conditional template rendering

* set default

* move tabs to settingsFields

* template logic for meta description

* fix classname check

* add html sitemap page;

* sitemap template

* sitempa func

* template local

* include template

* template updates

* template fix

* template fix

* remove error pgs from sitemaps

* exclude self from html sitemap

* remove css

* filters

* Feature/schemas (#9)

* add schema code

* namespaces

* list item

* namespaces

* namespaces

* local bus schema

* local bus schema config settings

* phone schema setting

* address schema fix

* org schema name fix

* contact point schema

* lat lng

* lat lng

* manual schema

* manual schema

* manual schema

* read me update

* read me

* readme

* readme

Co-authored-by: ebakernz <[email protected]>

* adding to headtag template to give pages default metatitle (#11)

* if conditions

Co-authored-by: Jeremy Cole <[email protected]>
Co-authored-by: jack <[email protected]>
Co-authored-by: jack <[email protected]>
Co-authored-by: Oscar <[email protected]>
Co-authored-by: ebakernz <[email protected]>
Co-authored-by: oscarholt <[email protected]>

Co-authored-by: psdigital <[email protected]>
Co-authored-by: jack <[email protected]>
Co-authored-by: jack <[email protected]>
Co-authored-by: Oscar <[email protected]>
Co-authored-by: ebakernz <[email protected]>
Co-authored-by: oscarholt <[email protected]>
  • Loading branch information
7 people authored Nov 17, 2022
1 parent 1e6e69d commit f7990e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
},
"autoload": {
"psr-4": {
"CyberDuck\\SEO\\": "src/",
"CyberDuck\\SEO\\Tests\\": "tests/"
"PlasticStudio\\SEO\\": "src/",
"PlasticStudio\\SEO\\Tests\\": "tests/"
}
},
"extra": {
Expand Down
4 changes: 3 additions & 1 deletion src/Forms/MetaPreviewField.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ private function getPageMetaDescription()
if(class_exists(BlogPost::class)) {
if($this->page instanceof BlogPost) {
if($this->page->Parent()->DefaultPostMetaDescription == 1) {
return strip_tags($this->page->Summary);
if ($this->page->Summary) {
return strip_tags($this->page->Summary);
}
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/Model/Extension/SeoPageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,9 @@ public function getPageMetaDescription()
if(class_exists(BlogPost::class)) {
if($this->owner instanceof BlogPost) {
if($this->owner->Parent()->DefaultPostMetaDescription == 1) {
return strip_tags($this->owner->Summary);
if ($this->page->Summary) {
return strip_tags($this->page->Summary);
}
}
}
}
Expand Down

0 comments on commit f7990e3

Please sign in to comment.