Prvi commit: WordPress tema Europe Wonder s CI/CD konfiguracijo
This commit is contained in:
commit
135cc3b4c6
438 files changed
+56454
No files matched your search
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
// Vključi WordPress
|
||||
require_once('../../../../wp-load.php');
|
||||
|
||||
// Ustvari glavni meni
|
||||
$menu_name = 'Primary Menu';
|
||||
$menu_exists = wp_get_nav_menu_object($menu_name);
|
||||
|
||||
if (!$menu_exists) {
|
||||
$menu_id = wp_create_nav_menu($menu_name);
|
||||
|
||||
// Dodaj menijske elemente
|
||||
wp_update_nav_menu_item($menu_id, 0, array(
|
||||
'menu-item-title' => 'Home',
|
||||
'menu-item-url' => home_url('/'),
|
||||
'menu-item-status' => 'publish',
|
||||
'menu-item-type' => 'custom',
|
||||
));
|
||||
|
||||
wp_update_nav_menu_item($menu_id, 0, array(
|
||||
'menu-item-title' => 'Contact us',
|
||||
'menu-item-url' => home_url('/contact'),
|
||||
'menu-item-status' => 'publish',
|
||||
'menu-item-type' => 'custom',
|
||||
));
|
||||
|
||||
wp_update_nav_menu_item($menu_id, 0, array(
|
||||
'menu-item-title' => 'Blog',
|
||||
'menu-item-url' => home_url('/blog'),
|
||||
'menu-item-status' => 'publish',
|
||||
'menu-item-type' => 'custom',
|
||||
));
|
||||
|
||||
// Dodeli meni lokaciji
|
||||
$locations = get_theme_mod('nav_menu_locations');
|
||||
$locations['primary'] = $menu_id;
|
||||
set_theme_mod('nav_menu_locations', $locations);
|
||||
}
|
||||
|
||||
// Nastavi kontaktne podatke
|
||||
set_theme_mod('contact_email', 'test@test.com');
|
||||
set_theme_mod('contact_phone', '+386 41 444 290');
|
||||
set_theme_mod('whatsapp', '38641444290');
|
||||
set_theme_mod('messenger', 'worlddiscovery');
|
||||
|
||||
// Nastavi družbena omrežja
|
||||
set_theme_mod('social_instagram', '#');
|
||||
set_theme_mod('social_facebook', '#');
|
||||
set_theme_mod('social_linkedin', '#');
|
||||
|
||||
// Nastavi opis v nogi
|
||||
set_theme_mod('footer_description', "We're a travel agency and tour operator for holidays, activities, and other unforgettable experiences in every corner of the globe, and for every sort of traveler.");
|
||||
|
||||
// Nastavi hero sekcijo
|
||||
set_theme_mod('hero_title', 'Grilc Tours');
|
||||
set_theme_mod('hero_subtitle', 'Your path to unforgettable cycling experiences');
|
||||
set_theme_mod('tours_section_title', 'Experience Journeys');
|
||||
|
||||
echo "Nastavitve teme so končane!\n";
|
||||
Reference in new issue
Block a user