=minor fixes upon uploading to server
1 files renamed
5 files modified
| | |
| | | public static function archive(string $type): array |
| | | { |
| | | $type = self::checkType($type, '[SchemaHelper]::archive'); |
| | | error_log('[SchemaHelper]::archive type: '.print_r($type, true)); |
| | | |
| | | if (!$type) { |
| | | return []; |
| | | } |
| | |
| | | }, |
| | | 'archive' => [ |
| | | 'type' => 'JVBase\managers\SEO\render\Thing\CreativeWork\WebPage\CollectionPage', |
| | | 'name' => '{{name}}' |
| | | ], |
| | | default => [], |
| | | }; |
| | |
| | | |
| | | foreach ($content as $contentType) { |
| | | $registrar = Registrar::getInstance($contentType); |
| | | |
| | | if (!$registrar) { |
| | | continue; |
| | | } |
| | | $contentTaxonomies = $registrar->registrar->taxonomies; |
| | | $contentTaxonomies = array_filter($contentTaxonomies, function($taxonomy) { |
| | | return Registrar::getInstance($taxonomy)->hasFeature('show_feed'); |
| | | return Registrar::getInstance($taxonomy)?->hasFeature('show_feed'); |
| | | }); |
| | | $taxonomies = array_merge($taxonomies, $contentTaxonomies); |
| | | } |
| | |
| | | |
| | | use JVBase\managers\SEO\render\Thing\CreativeWork\CreativeWork; |
| | | use JVBase\managers\SEO\render\Traits\_Properties\artEditionTrait; |
| | | use JVBase\managers\SEO\render\Traits\_Properties\artformTrait; |
| | | use JVBase\managers\SEO\render\Traits\_Properties\artFormTrait; |
| | | use JVBase\managers\SEO\render\Traits\_Properties\artistTrait; |
| | | use JVBase\managers\SEO\render\Traits\_Properties\artMediumTrait; |
| | | use JVBase\managers\SEO\render\Traits\_Properties\artworkSurfaceTrait; |
| File was renamed from inc/managers/SEO/render/Traits/_Properties/artformTrait.php |
| | |
| | | if (!defined('ABSPATH')) { |
| | | exit; |
| | | } |
| | | trait artformTrait { |
| | | trait artFormTrait { |
| | | /** |
| | | * @var string e.g. Painting, Drawing, Sculpture, Print, Photograph, Assemblage, Collage, etc. |
| | | */ |
| | |
| | | * @var array |
| | | */ |
| | | public array $capabilities; |
| | | |
| | | |
| | | /** |
| | | * The URL to the icon to be used for this menu. Pass a base64-encoded SVG using a data URI, which will be colored to match the color scheme — this should begin with 'data:image/svg+xml;base64,'. Pass the name of a Dashicons helper class to use a font icon, e.g. |
| | | * 'dashicons-chart-pie'. Pass 'none' to leave div.wp-menu-image empty so an icon can be added via CSS. Defaults to use the posts icon. |
| | | * @var string |
| | | */ |
| | | public string $menu_icon; |
| | | /** |
| | | * Triggers the handling of rewrites for this taxonomy. Default true, using $taxonomy as slug. To prevent rewrite, set to false. To specify rewrite rules, an array can be passed with any of these keys: |
| | | * slug {string} - Customize the permastruct slug. Default $taxonomy key. |
| | |
| | | $config = $this->getConfig('archive'); |
| | | $meta = Meta::forTerm(get_queried_object_id()); |
| | | $title = Resolver::resolve($config['name'], $meta); |
| | | } else { |
| | | error_log('[Schema]::filterTSFOGTitle Unmatched condition: '.$this->slug); |
| | | } |
| | | return $title; |
| | | } |