DEBUG INFO
Идентификаторы
get_the_ID(): 1
get_queried_object_id(): 1
Тип страницы
is_page(): false
is_front_page(): false
is_home(): false
is_single(): true
is_archive(): false
is_category(): false
is_tag(): false
is_tax(): false
is_404(): false
is_search(): false
is_admin(): false
is_singular(): true
Запись
Post ID: 1
Post Type: post
Post Status: publish
Post Title: Привет, мир! С текстом
Post Author: Алеейка Петровичев
Post Date: 2022-09-26 23:41:46
Таксономии
Рубрики: Новости проекта (ID: 525)
Метки: как дела (ID: 524), тест (ID: 523)
URL
REQUEST_URI: /news/hello/
HTTP_HOST: zauroki.ru
Сервер
User Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Request Method: GET
Server Name: zauroki.ru
HTTPS: Yes
WordPress
WordPress Version: 6.8.5
Theme: liga-service-zauroki
Active Plugins: 13
Site URL: https://zauroki.ru
Home URL: https://zauroki.ru
Admin URL: https://zauroki.ru/wp-admin/
Основные методы
get_city_id()

Получает ID текущего города или по slug

Параметры: $slug (необязательно) - slug города
Вызов: get_city_id()
Результат: 557
Варианты использования:
get_city_id('moskva')
get_city_id()
get_city_field()

Получает поле ACF с 3-уровневым fallback

Параметры: $field_name (обязательно), $city_id (необязательно), $post_id (необязательно)
Вызов: get_city_field('phone')
Результат: '12345 (по умолчанию в ACF)'
Варианты использования:
get_city_field('phone')
get_city_field('address')
get_city_field('city_name')
get_city_field('phone', 526)
get_current_city_info()

Получает всю информацию о текущем городе

Параметры: $post_id (необязательно) - ID поста
Вызов: get_current_city_info()
Результат:
Array
(
    [city_term_slug] => default
    [city_term_id] => 557
    [city_term_name] => твоём городе
    [is_blog_post] => 1
    [city_data] => Array
        (
            [city_name] => твоём городе
            [phone] => 12345 (по умолчанию в ACF)
            [address] => Какой-то
            [faq-repiter] => 
        )

)
Варианты использования:
get_current_city_info()
get_current_city_info(123)
Прямые методы API
city_data()->getCityTermName()

Получает умное название города для отображения

Параметры: $slug (необязательно) - slug города
Вызов: city_data()->getCityTermName()
Результат: 'твоём городе'
Варианты использования:
city_data()->getCityTermName()
city_data()->getCityTermName('moskva')
city_data()->getCurrentCitySlug()

Получает slug города из URL

Параметры: Без параметров
Вызов: city_data()->getCurrentCitySlug()
Результат: 'default'
Варианты использования:
city_data()->getCurrentCitySlug()
city_data()->getMergedCityData()

Получает все объединенные данные с fallback

Параметры: $city_id (необязательно), $post_id (необязательно)
Вызов: city_data()->getMergedCityData()
Результат:
Array
(
    [city_name] => твоём городе
    [phone] => 12345 (по умолчанию в ACF)
    [address] => Какой-то
    [faq-repiter] => 
)
Варианты использования:
city_data()->getMergedCityData()
city_data()->getMergedCityData(526)
Служебные методы
city_data()->cityExists()

Проверяет существование города

Параметры: $slug (обязательно) - slug города
Вызов: city_data()->cityExists('moskva')
Результат: true
Варианты использования:
city_data()->cityExists('moskva')
city_data()->cityExists('spb')
city_data()->clearCache()

Очищает кэш API

Параметры: Без параметров
Вызов: city_data()->clearCache()
Результат: 'void'
Варианты использования:
city_data()->clearCache()
Низкоуровневые методы
city_data()->getCityTerm()

Получает объект термина города

Параметры: $slug (необязательно) - slug города
Вызов: city_data()->getCityTerm()
Результат:
WP_Term Object
(
    [term_id] => 557
    [name] => default
    [slug] => default
    [term_group] => 0
    [term_taxonomy_id] => 557
    [taxonomy] => city
    [description] => 
    [parent] => 0
    [count] => 0
    [filter] => raw
)
Варианты использования:
city_data()->getCityTerm()
city_data()->getCityTerm('moskva')
city_data()->getPageField()

Получает поле из ACF поста (уровни 1-2)

Параметры: $field_name, $city_id, $post_id (необязательно)
Вызов: city_data()->getPageField('phone', 557)
Результат: ''
Варианты использования:
city_data()->getPageField('phone', 557)
city_data()->getPageField('address', 557)
city_data()->getSettingsField()

Получает поле из настроек (уровень 3)

Параметры: $field_name (обязательно)
Вызов: city_data()->getSettingsField('phone')
Результат: '12345 (по умолчанию в ACF)'
Варианты использования:
city_data()->getSettingsField('phone')
city_data()->getSettingsField('city_name')

О нас

Мы выбрали лучших репетиторов, чтоб Вам осталось толкьо учиться.

Мы в сети

Shopping cart
The Women
$30.00 x1
Fourth Wing
$50.00 x1
image

Your Cart is empty

Go to Shop
Subtotal:
$160.00
blog feature image

With the advent of AI and machine learning, personalized learning is becoming more accessible than ever. Students can now receive tailored content that suits their individual needs, enhancing engagement and retention. Adaptive learning systems analyze student performance in real-time, adjusting lessons, quizzes, and content delivery according to their progress.

Online Learning Platforms

Online learning platforms have grown exponentially, offering flexibility and access to a wealth of resources. Platforms like Coursera and edX have made quality education available to anyone with an internet connection, providing courses from top universities and industry leaders around the world. This democratization of education opens doors to new opportunities, especially for learners in remote or underserved areas.

«Education is the most powerful weapon which you can use to
change the world.»

Nelson Mandela

Moreover, online platforms offer diverse courses that can be accessed at any time, allowing learners to study at their own pace. The rise of micro-credentials and online certifications is also transforming how skills are recognized in the workforce, enabling continuous learning and professional development.

image

image

Collaborative Learning

Collaborative learning encourages teamwork and critical thinking, preparing students for real-world challenges. This approach fosters a sense of community and allows students to learn from each other, whether in a physical classroom or through online platforms. Tools like Google Classroom, Zoom, and Microsoft Teams have made it easier for students to collaborate, discuss, and complete group projects remotely.

  • Interactive Online Learning Courses
  • Self-paced Modules Available for Flexibility
  • Refundable Security Deposit of USD 120 at the Time of Admission
  • Live Webinars with Industry Experts
  • Access to Exclusive Study Materials and Resources

The Rise of EdTech and Gamification

Educational technology (EdTech) is rapidly transforming classrooms with the integration of virtual reality (VR), augmented reality (AR), and gamified learning experiences. Gamification—where elements of game design like scoring, leaderboards, and rewards are used in learning—keeps students engaged and motivated.

Challenges and Opportunities Ahead

As education continues to evolve, there are still challenges to overcome, such as bridging the digital divide and ensuring that all students have access to the technologies that enable modern learning. However, the opportunities that lie ahead—such as more inclusive, accessible, and effective education—are immense.

Educators, policymakers, and technology developers must work together to ensure that these innovations benefit all learners, regardless of their background or location. As we look to the future, the goal is to create a more equitable and empowered learning environment for everyone.

Поделиться

Author image
Sarah Collins
Senior Education Consultant

Sarah is an EdTech Consultant with over 8 years of experience in integrating technology into education to enhance learning experiences.

Нет комментариев

Похожее

00:00
Перейти