| | |
| | | |
| | | public function __construct(string $slug) { |
| | | $this->slug = $slug; |
| | | |
| | | $this->titleConfig['alts'] = apply_filters(BASE.jvbNoBase($slug).'TitleAlts', []); |
| | | add_action('init', [$this, 'init']); |
| | | } |
| | | |
| | |
| | | if (!function_exists('tsf')){ |
| | | return; |
| | | } |
| | | |
| | | if ($this->hasTitle()){ |
| | | add_filter('the_seo_framework_title_from_generation', [$this, 'filterTitle'], 10, 2); |
| | | } |
| | |
| | | |
| | | $meta = new \JVBase\meta\Meta($ID, Registrar::getInstance($this->slug)->getType()); |
| | | $resolved = Resolver::resolve($this->title, $meta); |
| | | $resolved = $this->testLength($ID, $resolved, 'title'); |
| | | return $resolved; |
| | | return $this->testLength($ID, $resolved, 'title'); |
| | | } |
| | | |
| | | public function filterDescription(string $description, ?array $args): string |