$post_id, 'provider' => $provider]); return 0; }
$att_id = self::attach($path, $post_id, $title);
if (!$att_id) @unlink($path);
return $att_id;
}
/* ---- Providers ---- */
private static function fetch_pollinations(string $title, string $style): string|false {
$map = ['photo'=>'realistic high quality photo','illustration'=>'digital illustration',
'artistic'=>'artistic painting','3d'=>'3D render','flat'=>'flat design vector art'];
$clean = preg_replace('/[^\p{L}\p{N}\s]/u', ' ', mb_substr($title, 0, 80));
$prompt = ($map[$style] ?? 'realistic high quality photo') . ', ' . trim($clean) . ', professional, no text, no watermark';
$seed = abs(crc32($title . time())) % 99999;
$url = self::POLLINATIONS_BASE . urlencode($prompt) . '?seed=' . $seed . '&width=1200&height=630&nologo=true&model=flux';
return self::download_image($url, $title);
}
private static function fetch_unsplash(string $title, string $api_key): string|false {
if (!$api_key) { ACI_Logger::warn('ImageGen: Unsplash API key missing'); return false; }
$keyword = urlencode(mb_substr($title, 0, 50));
$api_url = "https://api.unsplash.com/photos/random?query={$keyword}&orientation=landscape&content_filter=high";
$resp = wp_remote_get($api_url, [
'timeout' => 20, 'sslverify' => false,
'headers' => ['Authorization' => 'Client-ID ' . $api_key, 'Accept-Version' => 'v1'],
]);
if (is_wp_error($resp)) { ACI_Logger::error('ImageGen Unsplash', ['err' => $resp->get_error_message()]); return false; }
$data = json_decode(wp_remote_retrieve_body($resp), true);
$img_url = $data['urls']['regular'] ?? ($data['urls']['full'] ?? '');
if (!$img_url) { ACI_Logger::warn('ImageGen: Unsplash no URL', ['resp' => substr(wp_remote_retrieve_body($resp), 0, 200)]); return false; }
return self::download_image($img_url, $title);
}
private static function fetch_pexels(string $title, string $api_key): string|false {
if (!$api_key) { ACI_Logger::warn('ImageGen: Pexels API key missing'); return false; }
$keyword = urlencode(mb_substr($title, 0, 50));
$api_url = "https://api.pexels.com/v1/search?query={$keyword}&per_page=1&orientation=landscape";
$resp = wp_remote_get($api_url, [
'timeout' => 20, 'sslverify' => false,
'headers' => ['Authorization' => $api_key],
]);
if (is_wp_error($resp)) { ACI_Logger::error('ImageGen Pexels', ['err' => $resp->get_error_message()]); return false; }
$data = json_decode(wp_remote_retrieve_body($resp), true);
$img_url = $data['photos'][0]['src']['large2x'] ?? ($data['photos'][0]['src']['large'] ?? '');
if (!$img_url) { ACI_Logger::warn('ImageGen: Pexels no URL', ['resp' => substr(wp_remote_retrieve_body($resp), 0, 200)]); return false; }
return self::download_image($img_url, $title);
}
/* ---- Shared helpers ---- */
private static function download_image(string $url, string $title): string|false {
$resp = wp_remote_get($url, [
'timeout' => 45, 'redirection' => 10, 'sslverify' => false,
'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36',
'headers' => ['Accept' => 'image/webp,image/png,image/jpeg,image/*'],
]);
if (is_wp_error($resp)) { ACI_Logger::error('ImageGen download', ['err' => $resp->get_error_message()]); return false; }
if ((int)wp_remote_retrieve_response_code($resp) !== 200) { ACI_Logger::warn('ImageGen: non-200', ['code' => wp_remote_retrieve_response_code($resp)]); return false; }
$body = wp_remote_retrieve_body($resp);
if (strlen($body) < 1000) return false;
$ext = self::detect_ext($body);
if (!$ext) return false;
$upload = wp_upload_dir();
if (!empty($upload['error']) || !wp_mkdir_p($upload['path'])) return false;
$slug = sanitize_title(mb_substr($title, 0, 40)) ?: 'image';
$path = trailingslashit($upload['path']) . $slug . '-' . time() . '.' . $ext;
if (file_put_contents($path, $body) === false) return false;
return $path;
}
private static function detect_ext(string $body): string|false {
$h = substr($body, 0, 12);
if (str_starts_with($h, "\xFF\xD8\xFF")) return 'jpg';
if (str_starts_with($h, "\x89PNG\r\n\x1A\n")) return 'png';
if (str_starts_with($h, 'RIFF') && substr($h, 8, 4) === 'WEBP') return 'webp';
if (str_starts_with($h, 'GIF8')) return 'gif';
return false;
}
private static function attach(string $path, int $post_id, string $title): int {
require_once ABSPATH . 'wp-admin/includes/image.php';
require_once ABSPATH . 'wp-admin/includes/file.php';
require_once ABSPATH . 'wp-admin/includes/media.php';
$upload = wp_upload_dir();
$filetype = wp_check_filetype(basename($path));
if (empty($filetype['type'])) $filetype['type'] = 'image/jpeg';
$att_id = wp_insert_attachment([
'post_mime_type' => $filetype['type'],
'post_title' => sanitize_text_field($title),
'post_content' => '',
'post_status' => 'inherit',
'guid' => str_replace($upload['basedir'], $upload['baseurl'], $path),
], $path, $post_id);
if (is_wp_error($att_id)) { ACI_Logger::error('ImageGen attach', ['err' => $att_id->get_error_message()]); return 0; }
$meta = wp_generate_attachment_metadata($att_id, $path);
if ($meta) wp_update_attachment_metadata($att_id, $meta);
set_post_thumbnail($post_id, $att_id);
return $att_id;
}
}
])
}
}
])
}
])
}
])
}
}
}
}
}
Aspendos Ancient City Pictures
October 13, 2021
0
Aspendos Ancient City Pictures can give you information about this historical tourist place.
antikaspendoskentresim
A Favor
A person who does not make the world better is not human.
Post navigation
PrevNext
Similar Articles
Uşak Ancient City – Blaundos (Blaunda)
Kedrai – Kedreai, Kedreiai – Sedir Island Trip
Knidos Datça Travel Guide
Ancient Cities Around Bodrum Travel Guide
Leave a replyCancel replyYour email address will not be published.
Required fields are marked *Comment * Name *
Email *
website
Δ
document.getElementById( “ak_js_1” ).setAttribute( “value”, ( new Date() ).getTime() );
Good Introduction
Log in
Username:
Password:
remember me
Log in
Sign up
lost password
New Articles
subartramer
How to Make an Open Computer Case?
TRANSPORT OF RESPIRATORY GASES (O2-CO2) IN BLOOD
HIP JOINT: BONES AND LIGAMENTOUS SYSTEM
OVERVIEW OF CELL STRUCTURE
Current issues
I am a 4th year midwifery student and I need a scholarship.
All mimsy were the borogoves, And the mome raths outgrabe. http://biriyilik.com
Kayseri Kahraman Maraş Malatya Adıyaman Gazi Antep Urfa Earthquake Risk
Possible Earthquake in the Sea of Marmara May Affect Depending on Its Size
Live Earthquake Information
Forums
Those Who Want to Stay in Nature
Literature Club
Those Who Ask Where Is The Old Music?
News
Homework Resource Repository
Travel Routes
Technology and Science Club
Those who want to help
Help Requests
Assistance Requests
Those Who Want to Help
]]>The distance to Termessos from here is 9 km. To visit Termessos, you need some time and a little love for walking. Because the city is located in a completely mountainous and rugged area.
The people of Termessos are called Solyms. Unlike other ancient cities, Solyms are not tribes that came from the sea. They are entirely of Anatolian origin. The known history of Termessos dates back to Alexander the Great in B.C. It begins with the siege of Termessos in 333. Alexander could not capture this city, which he compared to a hawk’s nest. Termessos I.S. It survived until the 5th century.
City Walls, Hadrian’s Gate, Water Cisterns, Theatre, Gymnasium, Agora, Odeon and Hereon are some of the important works of the city. The cemetery spread over a wide area and monumental tombs such as Alketas, Agatemeros and Arslanlı Tomb attract everyone’s admiration.
ARIASSOS
At approximately the 48th km of the Antalya-Burdur highway, before reaching the mountain, turn left and reach Ariassos with a 1 km road. Ariassos, an ancient mountain city, was founded in a valley dominating the surroundings. It is a city worth seeing with its entrance gate, baths, rock tombs and tomb monuments.
antiquetravelcitytravelholitermessos
]]>Selge Ancient City
October 19, 2021
Selge ; After passing the Köprülü stream on the Antalya-Manavgat highway, TAĞIL is 55 km northwards from the Beşkonak road junction. On the southern slopes of the Taurus Mountains, near Köprüçayı, 950 m from the sea. Selge, built at a high altitude, is an ancient Pisidian Mountain City. You can reach Selge via a steep and winding 12-13 km road after the Köprülü Canyon. The road to Selge passes through Köprülü Canyon, which is very rich in natural beauty.
On the road; There are carved rocks that resemble the fairy chimneys in Ürgüp and Göreme and cover the entire mountain slope. The rocks formed by the erosion of the karst structure are called “Man Rocks” or “Devil Rocks” in the region.
It is thought that Selge was founded by Kalehes. The city, which was a part of Pisidia, was later included within the borders of Pamphylia. The city remained under Lydian, Persian, Alexander and Roman rule respectively. Ruins in the city; The theater in the north with 5 doors and 45 steps is the most important and best preserved monument. To the south of the theater is the Stadium and Gymnasium, and to the west is the Ionic temple whose ceiling is decorated with an eagle motif.
There is a fountain and agora in the south of the stadium. There are Artemis and Zeus monuments and a Necropolis to the north of the walls extending in the southwest of the city. There are water cisterns to the west of these temples, and sarcophagi and ornate tomb monuments to the north. The main entrance gate of the city is also located in this section. To the north of the walls, there are ruins of two temples on the hill, one dedicated to Zeus and the other to Artemis.
Market place (agora), monumental fountain building, grave area (necropolis) and Byzantine church are the other ruins in Selge. Today, there is still a village called Altınkaya (Zerk) among the ruins of this ancient city.
At approximately the 35th km of the SillonAntalya – Alanya highway, turn north and 8 km. Then Sillyon is reached. The city was built on a flat plain, on an elliptical plateau standing above the plain like a table. It has a position that completely dominates the environment. The field of view extends to the Mediterranean. Founded in B.C. IV. century.
Just as it lived through the Hellenic, Roman and Byzantine periods, it was also used during the Seljuk period and was further enriched with new buildings. Stadium, Gymnasium, Towers, Seljuk Mosque, Theater and sports facilities, the stage part of which was completely lost due to the collapse of the rocks, are some of the interesting structures.
antalyagezikurbanselgevoyageholiday
passenger
Anywhere you don’t feel is far away.
Post navigation
PrevNext
Similar Articles
Uşak Ancient City – Blaundos (Blaunda)
Kedrai – Kedreai, Kedreiai – Sedir Island Trip
Knidos Datça Travel Guide
Ancient Cities Around Bodrum Travel Guide
Leave a replyCancel replyYour email address will not be published.
Required fields are marked *Comment * Name *
Email *
website
Δ
document.getElementById( “ak_js_1” ).setAttribute( “value”, ( new Date() ).getTime() );
Good Introduction
Log in
Username:
Password:
remember me
Log in
Sign up
lost password
New Articles
subartramer
How to Make an Open Computer Case?
TRANSPORT OF RESPIRATORY GASES (O2-CO2) IN BLOOD
HIP JOINT: BONES AND LIGAMENTOUS SYSTEM
OVERVIEW OF CELL STRUCTURE
Current issues
I am a 4th year midwifery student and I need a scholarship.
All mimsy were the borogoves, And the mome raths outgrabe. http://biriyilik.com
Kayseri Kahraman Maraş Malatya Adıyaman Gazi Antep Urfa Earthquake Risk
Possible Earthquake in the Sea of Marmara May Affect Depending on Its Size
Live Earthquake Information
Forums
Those Who Want to Stay in Nature
Literature Club
Those Who Ask Where Is The Old Music?
News
Homework Resource Repository
Travel Routes
Technology and Science Club
Those who want to help
Help Requests
Assistance Requests
Those Who Want to Help
]]>Ancient Cities Around Bodrum Travel Guide
April 4, 2022
0
Ancient cities to visit near Bodrum.
Mandasa (Muğla-Bodrum)
It is thought that the ruins on the Türkbükü bay and Gölköy ridges in Bodrum are Madnasa, a Leleg city. Madnasa is a word derived from the Luwian language and means the city of the country “Ma”. Information about the history of the city is very limited.
We cannot find any other information in the sources except that the city, whose name is only mentioned by Pliny and Stephanos of Byzantium, paid a contribution of 2 talents to the Athens-Delos Naval Union in the 5th century B.C. The people living here were forced to migrate to Halicarnassus during the Mausallos period, and therefore the city was abandoned. No adequate research has been conducted on Madnasa.
However, the few city walls ruins on the hill, which is called the acropolis, attract attention. The walls are made of unprocessed broken stones, 1.5 m high. thick. No other remains were found in the surrounding area other than the tombs carved into the rocks.
Pages: 1 2 3 4 5 6 7 8
Bodrumegegezirehbertatil
A Favor
A person who does not make the world better is not human.
Post navigation
PrevNext
Similar Articles
Uşak Ancient City – Blaundos (Blaunda)
Kedrai – Kedreai, Kedreiai – Sedir Island Trip
Knidos Datça Travel Guide
Iasos Ancient City Milas Travel Guide
Leave a replyCancel replyYour email address will not be published.
Required fields are marked *Comment * Name *
Email *
website
Δ
document.getElementById( “ak_js_1” ).setAttribute( “value”, ( new Date() ).getTime() );
Good Introduction
Log in
Username:
Password:
remember me
Log in
Sign up
lost password
New Articles
subartramer
How to Make an Open Computer Case?
TRANSPORT OF RESPIRATORY GASES (O2-CO2) IN BLOOD
HIP JOINT: BONES AND LIGAMENTOUS SYSTEM
OVERVIEW OF CELL STRUCTURE
Current issues
I am a 4th year midwifery student and I need a scholarship.
All mimsy were the borogoves, And the mome raths outgrabe. http://biriyilik.com
Kayseri Kahraman Maraş Malatya Adıyaman Gazi Antep Urfa Earthquake Risk
Possible Earthquake in the Sea of Marmara May Affect Depending on Its Size
Live Earthquake Information
Forums
Those Who Want to Stay in Nature
Literature Club
Those Who Ask Where Is The Old Music?
News
Homework Resource Repository
Travel Routes
Technology and Science Club
Those who want to help
Help Requests
Assistance Requests
Those Who Want to Help
]]>Uşak Ancient City – Blaundos (Blaunda)
July 9, 2022
Blaundos is 2 km from Sülümendi village, located in the south-west of Ulubey district of Uşak. It is an ancient settlement located in the north. Blaundos was derived from a word from the Luwian language and adapted to the Hellenic language. No surface survey or archaeological excavation has been carried out in the area where Blaundos is located. His name is not mentioned in ancient sources. However, some ruins have survived to the present day in a very good condition.
For example, the arch of the entrance gate of the northern walls built in the Hellenistic age, some parts of the city walls, and the ruins of the Ionic style temple and other structures have survived. Also in the middle of the city, 7.60 x 14.20 m. The temple of the Roman Emperor Claudius and the stadium, which has seating levels on only one side, have survived to the present day in very good condition.
The ruins of the theater on the slope in the south of the city and the rock tombs right next to it also attract attention.
Klannoud (Uşak-Ulubey)
It is on the small hill that the villagers call Hâcet Castle, in the middle of two large hills behind the Kışla village on the road extending from Ulubey to Eşme in Uşak. It is thought that the word Klannoudda comes from the Lydian language. This name, which was later Hellenized, means “Holy Child”.
The information is extremely limited as there are no surface surveys or archaeological excavations where the city is located, where ancient sources do not provide sufficient information. Pottery sherds and architectural pieces can be found on the hill and scattered around. There are some ruins on the hill, thought to be the walls of the inner castle in the Acropolis. The stones of the city were probably used in the construction of the village.
Nais (İnay) (Uşak-Ulubey)
7 km from Ulubeyli district of Uşak province. 2 km from İnay village in the west. away. Nais means “water fairy” in the Hellenic language. Prof. Bilge Umar writes that there was plenty of water in the area where İnay village is located and the villagers covered this reservoir with concrete in 1975. Although Buresch and H.Keil made some studies on the city, they could not provide sufficient information. For this reason, the history of the city remained dark.
The stones where the city is located were used during the Roman period, and the Ottomans removed the stones for the construction of the caravanserai in the surrounding area. However, not much has survived to the present day, except for the arched gate of the Hellenistic walls and the ruins thought to belong to Nnymqhaeion.
Opsikion, Ovsekyon (Uşak) (Uşak-Central)
49 km from Manisa’s Salihli District. It is in the middle of a volcanic plain surrounded by mountains to the east. Strabo also refers to this place as Katakekaumene (burnt area). Opsikion, one of the names of the mother goddess in Anatolia, means “Place of the People of the Mother Goddess”. It is unknown when Opsikion was founded and its history. Additionally, some different claims have been put forward regarding its location.
According to some, today’s Kula district is identified with Opsikion. Prof.Bilge Umar says that Opsikion is not in Kula. Byzantine historians wrote that it was on the ridges. However, Opsikion was founded in the pit between the hills in Kula. XIII.
While mentioning the places dominated by the Byzantine Empire, which moved to Nikaeia (Iznik) in the 16th century, the following phrase was found: “Saittai and Koula, which have castles next to Magidon and Opsikion…” This shows that Kula is near Opsikion and is not the same place as it. No surface survey or archaeological excavation has been conducted in this region. In this regard, it is very difficult to provide information that will concretize the claims.
Only where the city is thought to be located, marble architectural pieces, inscriptions and a Kybele relief were found. In addition, the votive stele of the god Men, who healed the son of a woman named Onesime, is in the Uşak Museum today. antiquetravelcitytravelholiday
A Favor
A person who does not make the world better is not human.
Post navigation
PrevNext
Similar Articles
Kedrai – Kedreai, Kedreiai – Sedir Island Trip
Knidos Datça Travel Guide
Ancient Cities Around Bodrum Travel Guide
Iasos Ancient City Milas Travel Guide
Leave a replyCancel replyYour email address will not be published.
Required fields are marked *Comment * Name *
Email *
website
Δ
document.getElementById( “ak_js_1” ).setAttribute( “value”, ( new Date() ).getTime() );
Good Introduction
Log in
Username:
Password:
remember me
Log in
Sign up
lost password
New Articles
subartramer
How to Make an Open Computer Case?
TRANSPORT OF RESPIRATORY GASES (O2-CO2) IN BLOOD
HIP JOINT: BONES AND LIGAMENTOUS SYSTEM
OVERVIEW OF CELL STRUCTURE
Current issues
I am a 4th year midwifery student and I need a scholarship.
All mimsy were the borogoves, And the mome raths outgrabe. http://biriyilik.com
Kayseri Kahraman Maraş Malatya Adıyaman Gazi Antep Urfa Earthquake Risk
Possible Earthquake in the Sea of Marmara May Affect Depending on Its Size
Live Earthquake Information
Forums
Those Who Want to Stay in Nature
Literature Club
Those Who Ask Where Is The Old Music?
News
Homework Resource Repository
Travel Routes
Technology and Science Club
Those who want to help
Help Requests
Assistance Requests
Those Who Want to Help
]]>