| | |
| | | return $this->getCityTitle($term); |
| | | |
| | | default: |
| | | return $term->name; |
| | | return html_entity_decode($term->name); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | $title_format = "{$title} | {$city}'s Best {$artist_type}"; |
| | | $title = strtok($title, ' '); |
| | | $title_format = (strlen($title_format) <= $this->character_limits['title']) ? $title_format : "{$title} | {$city}'s Best {$artist_type}"; |
| | | return $title_format; |
| | | return (strlen($title_format) <= $this->character_limits['title']) ? $title_format : "{$title} | {$city}'s Best {$artist_type}"; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | |
| | | $length = strlen($term->name) + strlen($city); |
| | | $length = strlen(html_entity_decode($term->name)) + strlen($city); |
| | | |
| | | $title = match (true) { |
| | | $length < 36 => $city . '\s Best Tattoo Studios', |
| | |
| | | $length < 46 => $city . ' Tattoo Shop', |
| | | default => 'Tattoo Shop: ', |
| | | }; |
| | | return "{$term->name} | {$title}"; |
| | | $name = html_entity_decode($term->name); |
| | | return "{$name} | {$title}"; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | // Build description |
| | | $description = "{$term->name}"; |
| | | $description = html_entity_decode($term->name); |
| | | |
| | | if (!empty($established)) { |
| | | $description .= " has been slinging ink in {$city} since {$established}"; |
| | |
| | | */ |
| | | protected function getStyleTitle(WP_Term $term):string |
| | | { |
| | | return "Edmonton's Best {$term->name} Tattoo Artists"; |
| | | $name = html_entity_decode($term->name); |
| | | return "Edmonton's Best {$name} Tattoo Artists"; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | // Build description |
| | | $description = "{$term->name}{$alt_name_text} is a distinctive tattoo style"; |
| | | $name = html_entity_decode($term->name); |
| | | $description = "{$name}{$alt_name_text} is a distinctive tattoo style"; |
| | | |
| | | if (!empty($characteristics)) { |
| | | $stripped = wp_strip_all_tags($characteristics); |
| | |
| | | } |
| | | } |
| | | |
| | | $description .= " Find Edmonton artists specializing in {$term->name} tattoos."; |
| | | $name = html_entity_decode($term->name); |
| | | $description .= " Find Edmonton artists specializing in {$name} tattoos."; |
| | | |
| | | return $description; |
| | | } |
| | |
| | | */ |
| | | protected function getThemeTitle(WP_Term $term):string |
| | | { |
| | | return "Edmonton's Best {$term->name} Tattoos"; |
| | | $name = html_entity_decode($term->name); |
| | | return "Edmonton's Best {$name} Tattoos"; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | // Build description |
| | | $description = "Explore {$term->name} tattoos"; |
| | | $name = html_entity_decode($term->name); |
| | | $description = "Explore {$name} tattoos"; |
| | | |
| | | |
| | | $description .= ", a popular motif in Edmonton's tattoo scene."; |
| | | |
| | | |
| | | $description .= $similar_text; |
| | | |
| | | $description .= " Find artists specializing in {$term->name} tattoos."; |
| | | $name = html_entity_decode($term->name); |
| | | $description .= " Find artists specializing in {$name} tattoos."; |
| | | |
| | | return $description; |
| | | } |
| | |
| | | */ |
| | | protected function getCityTitle(WP_Term $term):string |
| | | { |
| | | return "{$term->name} Tattoo Artists & Shops | edmonton.ink"; |
| | | $name = html_entity_decode($term->name); |
| | | return "{$name} Tattoo Artists & Shops | edmonton.ink"; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | // Build description |
| | | $description = "Discover {$term->name}'s vibrant tattoo scene"; |
| | | $name = html_entity_decode($term->name); |
| | | $description = "Discover {$name}'s vibrant tattoo scene"; |
| | | |
| | | if ($shop_count > 0 || $artist_count > 0) { |
| | | $description .= " featuring"; |