diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 87a616e..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/404.php b/404.php index 7e9c5a0..9c2a29c 100644 --- a/404.php +++ b/404.php @@ -1,104 +1,16 @@ - - - - - - - - - <?php wp_title(); ?> - - - -
- -
-
- + + +
+
+
+

Страница 404

+

+ Данной страницы не существует, перейдите на главную страницу + сайта +

+ На главную
-
- -
- -
-
-
- -
- -
-
-
-

Страница 404

-

- Данной страницы не существует, перейдите на главную страницу - сайта -

- На главную -
-
-
-
- - - - - +
+ + \ No newline at end of file diff --git a/500.php b/500.php index 374cb28..0f1a790 100644 --- a/500.php +++ b/500.php @@ -1,112 +1,16 @@ - + - - - - - - - - - <?php wp_title(); ?> - - - -
-
-
- +
+
+
+

Страница 500

+

+ Приносим свои извинения, но в данный момент наш сайт перегружен + запросами, попробуйте повторить попытку позже +

+ Попробовать снова
-
- -
- -
-
-
- -
- -
-
-
-

Страница 500

-

- Приносим свои извинения, но в данный момент наш сайт перегружен - запросами, попробуйте повторить попытку позже -

- Попробовать снова -
-
-
-
- - - - - - - - +
+ + \ No newline at end of file diff --git a/acfe-php/group_65d0befc4dd22.php b/acfe-php/group_65d0befc4dd22.php index 6c55845..f16b914 100644 --- a/acfe-php/group_65d0befc4dd22.php +++ b/acfe-php/group_65d0befc4dd22.php @@ -129,6 +129,9 @@ acf_add_local_field_group(array( 'layout' => 'block', 'acfe_seamless_style' => 0, 'acfe_group_modal' => 0, + 'acfe_group_modal_close' => 0, + 'acfe_group_modal_button' => '', + 'acfe_group_modal_size' => 'large', 'sub_fields' => array( array( 'key' => 'field_65d9de4263d6b', @@ -195,9 +198,6 @@ acf_add_local_field_group(array( 'library' => 'all', ), ), - 'acfe_group_modal_close' => 0, - 'acfe_group_modal_button' => '', - 'acfe_group_modal_size' => 'large', ), array( 'key' => 'field_65d9c80255855', @@ -216,6 +216,9 @@ acf_add_local_field_group(array( 'layout' => 'block', 'acfe_seamless_style' => 0, 'acfe_group_modal' => 0, + 'acfe_group_modal_close' => 0, + 'acfe_group_modal_button' => '', + 'acfe_group_modal_size' => 'large', 'sub_fields' => array( array( 'key' => 'field_65d9c9c53ab69', @@ -305,180 +308,13 @@ acf_add_local_field_group(array( 'library' => 'all', ), ), - 'acfe_group_modal_close' => 0, - 'acfe_group_modal_button' => '', - 'acfe_group_modal_size' => 'large', - ), - array( - 'key' => 'field_65db65a892815', - 'label' => 'Баннеры правый сайдбар ПК', - 'name' => 'banners_right_sidebar', - 'aria-label' => '', - 'type' => 'group', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'layout' => 'block', - 'acfe_seamless_style' => 0, - 'acfe_group_modal' => 0, - 'sub_fields' => array( - array( - 'key' => 'field_65db664492817', - 'label' => 'Баннер №1', - 'name' => 'right_sidebar_first', - 'aria-label' => '', - 'type' => 'group', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'layout' => 'block', - 'acfe_seamless_style' => 0, - 'acfe_group_modal' => 0, - 'sub_fields' => array( - array( - 'key' => 'field_65de1288ecc58', - 'label' => 'Изображение', - 'name' => 'image_banner', - 'aria-label' => '', - 'type' => 'image', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'uploader' => '', - 'return_format' => 'array', - 'acfe_thumbnail' => 0, - 'min_width' => '', - 'min_height' => '', - 'min_size' => '', - 'max_width' => '', - 'max_height' => '', - 'max_size' => '', - 'mime_types' => '', - 'preview_size' => 'medium', - 'library' => 'all', - ), - array( - 'key' => 'field_65de12b7ecc59', - 'label' => 'Ссылка', - 'name' => 'link', - 'aria-label' => '', - 'type' => 'url', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'default_value' => '', - 'placeholder' => '', - ), - ), - 'acfe_group_modal_close' => 0, - 'acfe_group_modal_button' => '', - 'acfe_group_modal_size' => 'large', - ), - array( - 'key' => 'field_65db667c92818', - 'label' => 'Баннер №2', - 'name' => 'right_sidebar_second', - 'aria-label' => '', - 'type' => 'group', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'layout' => 'block', - 'acfe_seamless_style' => 0, - 'acfe_group_modal' => 0, - 'sub_fields' => array( - array( - 'key' => 'field_65de130e128f8', - 'label' => 'Изображение', - 'name' => 'image_banner', - 'aria-label' => '', - 'type' => 'image', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'uploader' => '', - 'return_format' => 'array', - 'acfe_thumbnail' => 0, - 'min_width' => '', - 'min_height' => '', - 'min_size' => '', - 'max_width' => '', - 'max_height' => '', - 'max_size' => '', - 'mime_types' => '', - 'preview_size' => 'medium', - 'library' => 'all', - ), - array( - 'key' => 'field_65de1327128f9', - 'label' => 'Ссылка', - 'name' => 'link', - 'aria-label' => '', - 'type' => 'url', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'default_value' => '', - 'placeholder' => '', - ), - ), - 'acfe_group_modal_close' => 0, - 'acfe_group_modal_button' => '', - 'acfe_group_modal_size' => 'large', - ), - ), - 'acfe_group_modal_close' => 0, - 'acfe_group_modal_button' => '', - 'acfe_group_modal_size' => 'large', ), array( 'key' => 'field_65db68c251f51', - 'label' => 'Баннеры левый сайдбар ПК', - 'name' => 'banners_left_sidebar', + 'label' => 'Баннеры левый сайдбар Desktop', + 'name' => 'left_sidebar_banners_desktop', 'aria-label' => '', - 'type' => 'group', + 'type' => 'repeater', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, @@ -488,18 +324,23 @@ acf_add_local_field_group(array( 'id' => '', ), 'relevanssi_exclude' => 0, - 'layout' => 'block', - 'acfe_seamless_style' => 0, - 'acfe_group_modal' => 0, + 'acfe_repeater_stylised_button' => 0, + 'layout' => 'table', + 'pagination' => 0, + 'min' => 0, + 'max' => 0, + 'collapsed' => '', + 'button_label' => 'Добавить', + 'rows_per_page' => 20, 'sub_fields' => array( array( - 'key' => 'field_65db68c251f52', - 'label' => 'Баннер №1', - 'name' => 'left_sidebar_first', + 'key' => 'field_65e6eff1e3a9e', + 'label' => 'Изображение', + 'name' => 'image', 'aria-label' => '', - 'type' => 'group', + 'type' => 'image', 'instructions' => '', - 'required' => 0, + 'required' => 1, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', @@ -507,69 +348,28 @@ acf_add_local_field_group(array( 'id' => '', ), 'relevanssi_exclude' => 0, - 'layout' => 'block', - 'acfe_seamless_style' => 0, - 'acfe_group_modal' => 0, - 'sub_fields' => array( - array( - 'key' => 'field_65de13cc10dba', - 'label' => 'Изображение', - 'name' => 'image_banner', - 'aria-label' => '', - 'type' => 'image', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'uploader' => '', - 'return_format' => 'array', - 'acfe_thumbnail' => 0, - 'min_width' => '', - 'min_height' => '', - 'min_size' => '', - 'max_width' => '', - 'max_height' => '', - 'max_size' => '', - 'mime_types' => '', - 'preview_size' => 'medium', - 'library' => 'all', - ), - array( - 'key' => 'field_65de13e510dbb', - 'label' => 'Ссылка', - 'name' => 'link', - 'aria-label' => '', - 'type' => 'url', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'default_value' => '', - 'placeholder' => '', - ), - ), - 'acfe_group_modal_close' => 0, - 'acfe_group_modal_button' => '', - 'acfe_group_modal_size' => 'large', + 'uploader' => '', + 'return_format' => 'array', + 'acfe_thumbnail' => 0, + 'min_width' => '', + 'min_height' => '', + 'min_size' => '', + 'max_width' => '', + 'max_height' => '', + 'max_size' => '', + 'mime_types' => '', + 'preview_size' => 'medium', + 'library' => 'all', + 'parent_repeater' => 'field_65db68c251f51', ), array( - 'key' => 'field_65db68c251f53', - 'label' => 'Баннер №2', - 'name' => 'left_sidebar_second', + 'key' => 'field_65e6f01ee3aa0', + 'label' => 'Ссылка', + 'name' => 'link', 'aria-label' => '', - 'type' => 'group', + 'type' => 'text', 'instructions' => '', - 'required' => 0, + 'required' => 1, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', @@ -577,69 +377,249 @@ acf_add_local_field_group(array( 'id' => '', ), 'relevanssi_exclude' => 0, - 'layout' => 'block', - 'acfe_seamless_style' => 0, - 'acfe_group_modal' => 0, - 'sub_fields' => array( - array( - 'key' => 'field_65de140210dbc', - 'label' => 'Изображение', - 'name' => 'image_banner', - 'aria-label' => '', - 'type' => 'image', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'uploader' => '', - 'return_format' => 'array', - 'acfe_thumbnail' => 0, - 'min_width' => '', - 'min_height' => '', - 'min_size' => '', - 'max_width' => '', - 'max_height' => '', - 'max_size' => '', - 'mime_types' => '', - 'preview_size' => 'medium', - 'library' => 'all', - ), - array( - 'key' => 'field_65de150cf66ad', - 'label' => 'Ссылка', - 'name' => 'link', - 'aria-label' => '', - 'type' => 'url', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'default_value' => '', - 'placeholder' => '', - ), - ), - 'acfe_group_modal_close' => 0, - 'acfe_group_modal_button' => '', - 'acfe_group_modal_size' => 'large', + 'default_value' => '', + 'maxlength' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'parent_repeater' => 'field_65db68c251f51', + ), + ), + ), + array( + 'key' => 'field_65e6f18c2909f', + 'label' => 'Баннеры левый сайдбар Mobile', + 'name' => 'left_sidebar_banners_mobile', + 'aria-label' => '', + 'type' => 'repeater', + 'instructions' => '', + 'required' => 0, + 'conditional_logic' => 0, + 'wrapper' => array( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'relevanssi_exclude' => 0, + 'acfe_repeater_stylised_button' => 0, + 'layout' => 'table', + 'pagination' => 0, + 'min' => 0, + 'max' => 0, + 'collapsed' => '', + 'button_label' => 'Добавить', + 'rows_per_page' => 20, + 'sub_fields' => array( + array( + 'key' => 'field_65e6f18c290a0', + 'label' => 'Изображение', + 'name' => 'image', + 'aria-label' => '', + 'type' => 'image', + 'instructions' => '', + 'required' => 1, + 'conditional_logic' => 0, + 'wrapper' => array( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'relevanssi_exclude' => 0, + 'uploader' => '', + 'return_format' => 'array', + 'acfe_thumbnail' => 0, + 'min_width' => '', + 'min_height' => '', + 'min_size' => '', + 'max_width' => '', + 'max_height' => '', + 'max_size' => '', + 'mime_types' => '', + 'preview_size' => 'medium', + 'library' => 'all', + 'parent_repeater' => 'field_65e6f18c2909f', + ), + array( + 'key' => 'field_65e6f18c290a1', + 'label' => 'Ссылка', + 'name' => 'link', + 'aria-label' => '', + 'type' => 'text', + 'instructions' => '', + 'required' => 1, + 'conditional_logic' => 0, + 'wrapper' => array( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'relevanssi_exclude' => 0, + 'default_value' => '', + 'maxlength' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'parent_repeater' => 'field_65e6f18c2909f', + ), + ), + ), + array( + 'key' => 'field_65db65a892815', + 'label' => 'Баннеры правый сайдбар Desktop', + 'name' => 'right_sidebar_banners_desktop', + 'aria-label' => '', + 'type' => 'repeater', + 'instructions' => '', + 'required' => 0, + 'conditional_logic' => 0, + 'wrapper' => array( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'relevanssi_exclude' => 0, + 'acfe_repeater_stylised_button' => 0, + 'layout' => 'table', + 'pagination' => 0, + 'min' => 0, + 'max' => 0, + 'collapsed' => '', + 'button_label' => 'Добавить', + 'rows_per_page' => 20, + 'sub_fields' => array( + array( + 'key' => 'field_65e6ef15311f6', + 'label' => 'Изображение', + 'name' => 'image', + 'aria-label' => '', + 'type' => 'image', + 'instructions' => '', + 'required' => 1, + 'conditional_logic' => 0, + 'wrapper' => array( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'relevanssi_exclude' => 0, + 'uploader' => '', + 'return_format' => 'array', + 'acfe_thumbnail' => 0, + 'min_width' => '', + 'min_height' => '', + 'min_size' => '', + 'max_width' => '', + 'max_height' => '', + 'max_size' => '', + 'mime_types' => '', + 'preview_size' => 'medium', + 'library' => 'all', + 'parent_repeater' => 'field_65db65a892815', + ), + array( + 'key' => 'field_65e6ef2c311f7', + 'label' => 'Ссылка', + 'name' => 'link', + 'aria-label' => '', + 'type' => 'text', + 'instructions' => '', + 'required' => 1, + 'conditional_logic' => 0, + 'wrapper' => array( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'relevanssi_exclude' => 0, + 'default_value' => '', + 'maxlength' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'parent_repeater' => 'field_65db65a892815', + ), + ), + ), + array( + 'key' => 'field_65e6f1c333933', + 'label' => 'Баннеры правый сайдбар Mobile', + 'name' => 'right_sidebar_banners_mobile', + 'aria-label' => '', + 'type' => 'repeater', + 'instructions' => '', + 'required' => 0, + 'conditional_logic' => 0, + 'wrapper' => array( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'relevanssi_exclude' => 0, + 'acfe_repeater_stylised_button' => 0, + 'layout' => 'table', + 'pagination' => 0, + 'min' => 0, + 'max' => 0, + 'collapsed' => '', + 'button_label' => 'Добавить', + 'rows_per_page' => 20, + 'sub_fields' => array( + array( + 'key' => 'field_65e6f1c333934', + 'label' => 'Изображение', + 'name' => 'image', + 'aria-label' => '', + 'type' => 'image', + 'instructions' => '', + 'required' => 1, + 'conditional_logic' => 0, + 'wrapper' => array( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'relevanssi_exclude' => 0, + 'uploader' => '', + 'return_format' => 'array', + 'acfe_thumbnail' => 0, + 'min_width' => '', + 'min_height' => '', + 'min_size' => '', + 'max_width' => '', + 'max_height' => '', + 'max_size' => '', + 'mime_types' => '', + 'preview_size' => 'medium', + 'library' => 'all', + 'parent_repeater' => 'field_65e6f1c333933', + ), + array( + 'key' => 'field_65e6f1c333935', + 'label' => 'Ссылка', + 'name' => 'link', + 'aria-label' => '', + 'type' => 'text', + 'instructions' => '', + 'required' => 1, + 'conditional_logic' => 0, + 'wrapper' => array( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'relevanssi_exclude' => 0, + 'default_value' => '', + 'maxlength' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'parent_repeater' => 'field_65e6f1c333933', ), ), - 'acfe_group_modal_close' => 0, - 'acfe_group_modal_button' => '', - 'acfe_group_modal_size' => 'large', ), array( 'key' => 'field_65dcc369d882e', - 'label' => 'Баннер в хеддере ПК', + 'label' => 'Баннер в шапке сайта', 'name' => 'banner_in_header', 'aria-label' => '', 'type' => 'group', @@ -655,11 +635,42 @@ acf_add_local_field_group(array( 'layout' => 'block', 'acfe_seamless_style' => 0, 'acfe_group_modal' => 0, + 'acfe_group_modal_close' => 0, + 'acfe_group_modal_button' => '', + 'acfe_group_modal_size' => 'large', 'sub_fields' => array( + array( + 'key' => 'field_65df510cf4089', + 'label' => 'Изображение для Desktop-версии', + 'name' => 'image_desktop', + 'aria-label' => '', + 'type' => 'image', + 'instructions' => '', + 'required' => 0, + 'conditional_logic' => 0, + 'wrapper' => array( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'relevanssi_exclude' => 0, + 'uploader' => '', + 'return_format' => 'array', + 'acfe_thumbnail' => 0, + 'min_width' => '', + 'min_height' => '', + 'min_size' => '', + 'max_width' => '', + 'max_height' => '', + 'max_size' => '', + 'mime_types' => '', + 'preview_size' => 'medium', + 'library' => 'all', + ), array( 'key' => 'field_65df510cf4080', - 'label' => 'Изображение', - 'name' => 'image_banner', + 'label' => 'Изображение для мобильных', + 'name' => 'image_mobile', 'aria-label' => '', 'type' => 'image', 'instructions' => '', @@ -703,14 +714,11 @@ acf_add_local_field_group(array( 'placeholder' => '', ), ), - 'acfe_group_modal_close' => 0, - 'acfe_group_modal_button' => '', - 'acfe_group_modal_size' => 'large', ), array( 'key' => 'field_65dc4de8dc91a', - 'label' => 'Баннеры между постами ПК', - 'name' => 'banner_between_posts', + 'label' => 'Баннеры между постами Desktop', + 'name' => 'banner_between_posts_desktop', 'aria-label' => '', 'type' => 'repeater', 'instructions' => '', @@ -733,18 +741,19 @@ acf_add_local_field_group(array( 'sub_fields' => array( array( 'key' => 'field_65dc4e00dc91b', - 'label' => 'image_banner', - 'name' => 'image_banner', + 'label' => 'Изображение', + 'name' => 'image', 'aria-label' => '', 'type' => 'image', 'instructions' => '', - 'required' => 0, + 'required' => 1, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), + 'relevanssi_exclude' => 0, 'uploader' => '', 'return_format' => 'array', 'acfe_thumbnail' => 0, @@ -766,7 +775,7 @@ acf_add_local_field_group(array( 'aria-label' => '', 'type' => 'url', 'instructions' => '', - 'required' => 0, + 'required' => 1, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', @@ -780,173 +789,9 @@ acf_add_local_field_group(array( ), ), ), - array( - 'key' => 'field_65e05594c586e', - 'label' => 'Баннеры на мобильных устройствах', - 'name' => 'banners_right_sidebar_mobile', - 'aria-label' => '', - 'type' => 'group', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'layout' => 'block', - 'acfe_seamless_style' => 0, - 'acfe_group_modal' => 0, - 'sub_fields' => array( - array( - 'key' => 'field_65e05594c586f', - 'label' => 'Баннер №1', - 'name' => 'right_sidebar_first', - 'aria-label' => '', - 'type' => 'group', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'layout' => 'block', - 'acfe_seamless_style' => 0, - 'acfe_group_modal' => 0, - 'sub_fields' => array( - array( - 'key' => 'field_65e05594c5870', - 'label' => 'Изображение', - 'name' => 'image_banner', - 'aria-label' => '', - 'type' => 'image', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'uploader' => '', - 'return_format' => 'array', - 'acfe_thumbnail' => 0, - 'min_width' => '', - 'min_height' => '', - 'min_size' => '', - 'max_width' => '', - 'max_height' => '', - 'max_size' => '', - 'mime_types' => '', - 'preview_size' => 'medium', - 'library' => 'all', - ), - array( - 'key' => 'field_65e05594c5871', - 'label' => 'Ссылка', - 'name' => 'link', - 'aria-label' => '', - 'type' => 'url', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'default_value' => '', - 'placeholder' => '', - ), - ), - 'acfe_group_modal_close' => 0, - 'acfe_group_modal_button' => '', - 'acfe_group_modal_size' => 'large', - ), - array( - 'key' => 'field_65e05594c5872', - 'label' => 'Баннер №2', - 'name' => 'right_sidebar_second', - 'aria-label' => '', - 'type' => 'group', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'layout' => 'block', - 'acfe_seamless_style' => 0, - 'acfe_group_modal' => 0, - 'sub_fields' => array( - array( - 'key' => 'field_65e05594c5873', - 'label' => 'Изображение', - 'name' => 'image_banner', - 'aria-label' => '', - 'type' => 'image', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'uploader' => '', - 'return_format' => 'array', - 'acfe_thumbnail' => 0, - 'min_width' => '', - 'min_height' => '', - 'min_size' => '', - 'max_width' => '', - 'max_height' => '', - 'max_size' => '', - 'mime_types' => '', - 'preview_size' => 'medium', - 'library' => 'all', - ), - array( - 'key' => 'field_65e05594c5874', - 'label' => 'Ссылка', - 'name' => 'link', - 'aria-label' => '', - 'type' => 'url', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'default_value' => '', - 'placeholder' => '', - ), - ), - 'acfe_group_modal_close' => 0, - 'acfe_group_modal_button' => '', - 'acfe_group_modal_size' => 'large', - ), - ), - 'acfe_group_modal_close' => 0, - 'acfe_group_modal_button' => '', - 'acfe_group_modal_size' => 'large', - ), array( 'key' => 'field_65e055c7c587c', - 'label' => 'Баннеры между постами Гаджет', + 'label' => 'Баннеры между постами Mobile', 'name' => 'banner_between_posts_mobile', 'aria-label' => '', 'type' => 'repeater', @@ -970,12 +815,12 @@ acf_add_local_field_group(array( 'sub_fields' => array( array( 'key' => 'field_65e055c7c587d', - 'label' => 'image_banner', - 'name' => 'image_banner', + 'label' => 'Изображение', + 'name' => 'image', 'aria-label' => '', 'type' => 'image', 'instructions' => '', - 'required' => 0, + 'required' => 1, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', @@ -1004,7 +849,7 @@ acf_add_local_field_group(array( 'aria-label' => '', 'type' => 'url', 'instructions' => '', - 'required' => 0, + 'required' => 1, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', @@ -1018,76 +863,6 @@ acf_add_local_field_group(array( ), ), ), - array( - 'key' => 'field_65e055d2c587f', - 'label' => 'Баннер в хеддере Гаджет', - 'name' => 'banner_in_header_mobile', - 'aria-label' => '', - 'type' => 'group', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'layout' => 'block', - 'acfe_seamless_style' => 0, - 'acfe_group_modal' => 0, - 'sub_fields' => array( - array( - 'key' => 'field_65e055d2c5880', - 'label' => 'Изображение', - 'name' => 'image_banner', - 'aria-label' => '', - 'type' => 'image', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'uploader' => '', - 'return_format' => 'array', - 'acfe_thumbnail' => 0, - 'min_width' => '', - 'min_height' => '', - 'min_size' => '', - 'max_width' => '', - 'max_height' => '', - 'max_size' => '', - 'mime_types' => '', - 'preview_size' => 'medium', - 'library' => 'all', - ), - array( - 'key' => 'field_65e055d2c5881', - 'label' => 'Ссылка', - 'name' => 'link', - 'aria-label' => '', - 'type' => 'url', - 'instructions' => '', - 'required' => 0, - 'conditional_logic' => 0, - 'wrapper' => array( - 'width' => '', - 'class' => '', - 'id' => '', - ), - 'relevanssi_exclude' => 0, - 'default_value' => '', - 'placeholder' => '', - ), - ), - 'acfe_group_modal_close' => 0, - 'acfe_group_modal_button' => '', - 'acfe_group_modal_size' => 'large', - ), ), 'location' => array( array( @@ -1114,7 +889,7 @@ acf_add_local_field_group(array( 'acfe_form' => 0, 'acfe_meta' => '', 'acfe_note' => '', - 'modified' => 1709201281, + 'modified' => 1709636110, )); endif; \ No newline at end of file diff --git a/agroexpert-master.zip b/agroexpert-master.zip deleted file mode 100644 index b83f26c..0000000 Binary files a/agroexpert-master.zip and /dev/null differ diff --git a/category-events.php b/category-events.php index 6362a1d..2554b0b 100644 --- a/category-events.php +++ b/category-events.php @@ -1,8 +1,13 @@ -slug); +get_header(); +$posts = new WP_Query([ + 'category_name' => get_queried_object()->slug, + 'post_type' => 'post', + 'posts_per_page' => 10, + 'orderby' => 'date', + 'order' => 'ASC' +]); ?>
@@ -10,7 +15,7 @@ $posts = get_post_query('post', 10,'ASC', '', get_queried_object()->slug);

name ?>

- $posts, 'category'=> get_queried_object()->term_id])?> + $posts, 'category' => get_queried_object()->term_id]) ?>
На главную @@ -18,4 +23,4 @@ $posts = get_post_query('post', 10,'ASC', '', get_queried_object()->slug); +get_footer(); ?> \ No newline at end of file diff --git a/category-interviews.php b/category-interviews.php index 691b331..4d0ba78 100644 --- a/category-interviews.php +++ b/category-interviews.php @@ -8,33 +8,34 @@ $args = array( 'category_name' => get_queried_object()->slug ); $counter = 0; -query_posts( $args ); +query_posts($args); ?> -
+
- -
-

name?>

-
+ +
+

name ?>

+
- + +
\ No newline at end of file diff --git a/category-partners.php b/category-partners.php index b236897..f1af247 100644 --- a/category-partners.php +++ b/category-partners.php @@ -1,5 +1,11 @@ 'partners', + 'post_type' => 'post', + 'posts_per_page' => 10, + 'orderby' => 'date', + 'order' => 'ASC' +]); ?> diff --git a/content-post.php b/content-post.php index 5343936..f27f677 100644 --- a/content-post.php +++ b/content-post.php @@ -5,7 +5,7 @@ $class = $full_width ? 'article-item article-item--lg' : 'article-item'; ?>
- +
diff --git a/footer.php b/footer.php index c3c01c7..94ec23c 100644 --- a/footer.php +++ b/footer.php @@ -1,10 +1,12 @@ - + +
+
- + diff --git a/frontend/src/pages/500.html b/frontend/src/pages/500.html index f07a45c..c48192d 100644 --- a/frontend/src/pages/500.html +++ b/frontend/src/pages/500.html @@ -101,6 +101,6 @@ - + diff --git a/frontend/src/pages/about.html b/frontend/src/pages/about.html index 533503d..c659005 100644 --- a/frontend/src/pages/about.html +++ b/frontend/src/pages/about.html @@ -293,6 +293,6 @@ - + diff --git a/frontend/src/pages/advertiser.html b/frontend/src/pages/advertiser.html index 54c1a2a..416ce5a 100644 --- a/frontend/src/pages/advertiser.html +++ b/frontend/src/pages/advertiser.html @@ -164,6 +164,6 @@ - + diff --git a/frontend/src/pages/contacts.html b/frontend/src/pages/contacts.html index 7c64a88..e730097 100644 --- a/frontend/src/pages/contacts.html +++ b/frontend/src/pages/contacts.html @@ -1,250 +1,310 @@ -{{> head}} + {{> head}} - -
- {{> header-banner}} {{> header}} -
- {{> breadcrumbs title='Контакты'}} -
-
-
- {{> menu-vertical desktop="true"}} {{> content-sidebar}} -
-
-
- - + +
+ {{> header-banner}} {{> header}} +
+ {{> breadcrumbs title='Контакты'}} +
+
+ + +
+ {{> most-read class='content-right__most-read'}} + + + + +
+
+
+
+
-
- +
+ + - - - - - \ No newline at end of file + form.addEventListener('submit', handleSubmit); + }); + + + + diff --git a/frontend/src/pages/event-single.html b/frontend/src/pages/event-single.html index 7c0fc74..20ad9bc 100644 --- a/frontend/src/pages/event-single.html +++ b/frontend/src/pages/event-single.html @@ -1,165 +1,204 @@ -{{> head}} + {{> head}} - -
- {{> header-banner}} {{> header}} -
- {{> breadcrumbs middle='Мероприятия' title="Российское растениеводство" }} -
-
-
- {{> menu-vertical desktop="true"}} -
{{> content-sidebar}}
-
-
-
- - + +
+ {{> header-banner}} {{> header}} +
+ {{> breadcrumbs middle='Мероприятия' title="Российское растениеводство" + }} + +
+
-
- -
- - - - \ No newline at end of file + + + + + diff --git a/frontend/src/pages/events.html b/frontend/src/pages/events.html index 2c19a4f..7870bb2 100644 --- a/frontend/src/pages/events.html +++ b/frontend/src/pages/events.html @@ -1,167 +1,203 @@ -{{> head}} + {{> head}} - -
- {{> header-banner}} {{> header}} -
- {{> breadcrumbs title='Мероприятия'}} -
-
-
- {{> menu-vertical desktop="true"}} -
{{> content-sidebar}}
-
-
-
- - + +
+ {{> header-banner}} {{> header}} +
+ {{> breadcrumbs title='Мероприятия'}} + +
+
-
- -
- - - - \ No newline at end of file + + + + + diff --git a/frontend/src/pages/index.html b/frontend/src/pages/index.html index 14ee889..dbd3a0d 100644 --- a/frontend/src/pages/index.html +++ b/frontend/src/pages/index.html @@ -165,7 +165,11 @@ {{> most-read class='mobile'}} - +
@@ -208,8 +212,16 @@
- - + + @@ -296,6 +308,6 @@ - + diff --git a/frontend/src/pages/interviews.html b/frontend/src/pages/interviews.html index a7ff2fa..82b85b9 100644 --- a/frontend/src/pages/interviews.html +++ b/frontend/src/pages/interviews.html @@ -1,147 +1,172 @@ -{{> head}} + {{> head}} - -
- {{> header-banner}} {{> header}} -
- {{> breadcrumbs title='Интервью'}} -
-
-
- {{> menu-vertical desktop="true"}} {{> content-sidebar}} -
-
-
- - -
-

- На одной из птицефабрик Красноярского края выявили опасные - вирусы -

-
-
- {{> most-read class='mobile'}} - -
-
- {{> menu-vertical mobile="true"}} -
-

Интервью

-
-
- {{> interview-item}} {{> interview-item}} {{> interview-item}} {{> interview-item}} - {{> banner-middle}} {{> interview-item}} {{> interview-item}} {{> interview-item}} {{> interview-item}} {{> interview-item}} - {{> interview-item}} {{> interview-item}} {{> interview-item}} {{> interview-item}} {{> interview-item}} -
- {{> articles-show-more}} {{> pagination}} - На главную -
-
- {{> most-read class='content-right__most-read'}} - - - - -
-
-
-
- -
- - + + + + + + diff --git a/frontend/src/pages/materials-single.html b/frontend/src/pages/materials-single.html index 66e8fce..8a97b6a 100644 --- a/frontend/src/pages/materials-single.html +++ b/frontend/src/pages/materials-single.html @@ -342,6 +342,6 @@ - + diff --git a/frontend/src/pages/materials.html b/frontend/src/pages/materials.html index eb0f644..4160cde 100644 --- a/frontend/src/pages/materials.html +++ b/frontend/src/pages/materials.html @@ -9,7 +9,8 @@
- {{> menu-vertical isSafety="true" desktop="true"}} {{> content-sidebar}} + {{> menu-vertical isSafety="true" desktop="true"}} {{> + content-sidebar}}
@@ -164,6 +165,6 @@
- + diff --git a/frontend/src/pages/pages.html b/frontend/src/pages/pages.html index 477a897..5bf06f1 100644 --- a/frontend/src/pages/pages.html +++ b/frontend/src/pages/pages.html @@ -1,125 +1,142 @@ -{{> head}} + {{> head}} - - - - -
- - - - \ No newline at end of file + +
+ + + diff --git a/frontend/src/pages/partners-single.html b/frontend/src/pages/partners-single.html index 6449906..a3dcbfe 100644 --- a/frontend/src/pages/partners-single.html +++ b/frontend/src/pages/partners-single.html @@ -1,157 +1,177 @@ -{{> head}} + {{> head}} - -
- {{> header-banner}} {{> header}} -
- {{> breadcrumbs middle='Партнеры' title='Научно-методический базовый центр ФГБУ «ВГНКИ»'}} -
-
-
- {{> menu-vertical desktop="true"}} {{> content-sidebar}} -
-
-
- - + +
+ {{> header-banner}} {{> header}} +
+ {{> breadcrumbs middle='Партнеры' title='Научно-методический базовый + центр ФГБУ «ВГНКИ»'}} + +
+
-
- -
- - - - \ No newline at end of file + +
+ + + diff --git a/frontend/src/pages/partners.html b/frontend/src/pages/partners.html index 8cff807..291914b 100644 --- a/frontend/src/pages/partners.html +++ b/frontend/src/pages/partners.html @@ -31,25 +31,46 @@
{{> menu-vertical mobile="true"}} -
+

Партнеры

- {{> partner-item text='Научно-методический базовый центр ФГБУ «ВГНКИ»' num='1'}} - {{> partner-item text='ФГБУ «ВГНКИ» проводит полный спектр доклинических (токсикологических) исследований необходимых для регистрации лекарственных средств для ветеринарного применения и кормовых добавок.' num='2'}} - {{> partner-item text='ФГБУ «ВГНКИ» проводит полный спектр доклинических (токсикологических) исследований необходимых для регистрации лекарственных средств для ветеринарного применения и кормовых добавок.' num='3'}} - {{> partner-item text='Испытательный центр ФГБУ «ВГНКИ» проводит различные виды исследований по выявлению фальсификации молочной продукции' num='4'}} - {{> partner-item text='ФГБУ «ВГНКИ» проводит полный спектр доклинических (токсикологических) исследований необходимых для регистрации лекарственных средств для ветеринарного применения и кормовых добавок.' num='5'}} - {{> partner-item text='ФГБУ «ВГНКИ» проводит полный спектр доклинических (токсикологических) исследований необходимых для регистрации лекарственных средств для ветеринарного применения и кормовых добавок.' num='2'}} - {{> partner-item text='Научно-методический базовый центр ФГБУ «ВГНКИ»' num='1'}} - {{> partner-item text='Испытательный центр ФГБУ «ВГНКИ» проводит различные виды исследований по выявлению фальсификации молочной продукции' num='3'}} - {{> partner-item text='ФГБУ «ВГНКИ» проводит полный спектр доклинических (токсикологических) исследований необходимых для регистрации лекарственных средств для ветеринарного применения и кормовых добавок.' num='4'}} - {{> partner-item text='Научно-методический базовый центр ФГБУ «ВГНКИ»' num='1'}} - {{> partner-item text='Испытательный центр ФГБУ «ВГНКИ» проводит различные виды исследований по выявлению фальсификации молочной продукции' num='2'}} - {{> partner-item text='Научно-методический базовый центр ФГБУ «ВГНКИ»' num='3'}} + {{> partner-item text='Научно-методический базовый центр ФГБУ + «ВГНКИ»' num='1'}} {{> partner-item text='ФГБУ «ВГНКИ» проводит + полный спектр доклинических (токсикологических) исследований + необходимых для регистрации лекарственных средств для + ветеринарного применения и кормовых добавок.' num='2'}} {{> + partner-item text='ФГБУ «ВГНКИ» проводит полный спектр + доклинических (токсикологических) исследований необходимых для + регистрации лекарственных средств для ветеринарного применения и + кормовых добавок.' num='3'}} {{> partner-item + text='Испытательный центр ФГБУ «ВГНКИ» проводит различные виды + исследований по выявлению фальсификации молочной продукции' + num='4'}} {{> partner-item text='ФГБУ «ВГНКИ» проводит полный + спектр доклинических (токсикологических) исследований + необходимых для регистрации лекарственных средств для + ветеринарного применения и кормовых добавок.' num='5'}} {{> + partner-item text='ФГБУ «ВГНКИ» проводит полный спектр + доклинических (токсикологических) исследований необходимых для + регистрации лекарственных средств для ветеринарного применения и + кормовых добавок.' num='2'}} {{> partner-item + text='Научно-методический базовый центр ФГБУ «ВГНКИ»' num='1'}} + {{> partner-item text='Испытательный центр ФГБУ «ВГНКИ» проводит + различные виды исследований по выявлению фальсификации молочной + продукции' num='3'}} {{> partner-item text='ФГБУ «ВГНКИ» + проводит полный спектр доклинических (токсикологических) + исследований необходимых для регистрации лекарственных средств + для ветеринарного применения и кормовых добавок.' num='4'}} {{> + partner-item text='Научно-методический базовый центр ФГБУ + «ВГНКИ»' num='1'}} {{> partner-item text='Испытательный центр + ФГБУ «ВГНКИ» проводит различные виды исследований по выявлению + фальсификации молочной продукции' num='2'}} {{> partner-item + text='Научно-методический базовый центр ФГБУ «ВГНКИ»' num='3'}}
{{> pagination}} - На главную + На главную
@@ -176,6 +197,6 @@
- + diff --git a/frontend/src/pages/search.html b/frontend/src/pages/search.html index 85e25f1..149f09a 100644 --- a/frontend/src/pages/search.html +++ b/frontend/src/pages/search.html @@ -196,6 +196,6 @@
- + diff --git a/frontend/src/pages/subscription.html b/frontend/src/pages/subscription.html index dc4cd1e..7ffb558 100644 --- a/frontend/src/pages/subscription.html +++ b/frontend/src/pages/subscription.html @@ -383,6 +383,6 @@ - + diff --git a/frontend/src/partials/header-banner.html b/frontend/src/partials/header-banner.html index 93ee851..c0d7d48 100644 --- a/frontend/src/partials/header-banner.html +++ b/frontend/src/partials/header-banner.html @@ -1,3 +1,10 @@ -'; } - -/** - * param string $postType - тип поста - * param int $countPerPage - количество отображаемых постов на странице - * param string $orderBy - относительно какого поля будем проиводить сортировку - * param string $order - сортировка по возрастанию/убыванию (DESC,ASC) - * param string $categorySlug - slug категории из которой выводить посты - * - * */ -function get_post_query(string $postType, int $countPerPage, string $order, string $orderBy = 'date', string $categorySlug = null) -{ - $posts = new WP_Query([ - 'category_name' => $categorySlug, - 'post_type' => $postType, // Указываем нужный тип поста - 'posts_per_page' => $countPerPage, // Получаем только один самый последний пост - 'orderby' => $orderBy, // Сортируем по дате публикации - 'order' => $order // В порядке убывания - ]); - - return $posts; -} - - -function cyrillic_to_latin($title) -{ - $map = array( - 'а' => 'a', 'б' => 'b', 'в' => 'v', - 'г' => 'g', 'д' => 'd', 'е' => 'e', - 'ё' => 'yo', 'ж' => 'zh', 'з' => 'z', - 'и' => 'i', 'й' => 'j', 'к' => 'k', - 'л' => 'l', 'м' => 'm', 'н' => 'n', - 'о' => 'o', 'п' => 'p', 'р' => 'r', - 'с' => 's', 'т' => 't', 'у' => 'u', - 'ф' => 'f', 'х' => 'h', 'ц' => 'c', - 'ч' => 'ch', 'ш' => 'sh', 'щ' => 'sch', - 'ь' => '', 'ы' => 'y', 'ъ' => '', - 'э' => 'e', 'ю' => 'yu', 'я' => 'ya', - ); - - $title = str_replace(array_keys($map), array_values($map), mb_strtolower($title)); - - // Дополнительно заменяем пробелы на дефисы и удаляем нежелательные символы - $title = preg_replace('/[^A-Za-z0-9-]+/', '-', $title); - - return $title; -} - -/*add_filter('sanitize_title', 'cyrillic_to_latin', 9); -add_filter('sanitize_file_name', 'cyrillic_to_latin', 9);*/ - function my_theme_scripts() { wp_enqueue_script('my-load-more', get_template_directory_uri() . '/js/load-more.js', array('jquery'), null, true); + $query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => 10)); + // Передаем переменные в скрипт wp_localize_script('my-load-more', 'my_load_more_params', array( 'ajaxurl' => admin_url('admin-ajax.php'), // URL для AJAX-запроса - 'posts' => json_encode((new WP_Query(array('post_type' => 'post', 'posts_per_page' => 10)))->query_vars), // Параметры запроса + 'posts' => json_encode($query->query_vars), // Параметры запроса 'current_page' => get_query_var('paged') ? get_query_var('paged') : 1, // Текущая страница - 'max_page' => (new WP_Query(array('post_type' => 'post', 'posts_per_page' => 10)))->max_num_pages // Максимальное количество страниц + 'max_page' => $query->max_num_pages // Максимальное количество страниц )); } add_action('wp_enqueue_scripts', 'my_theme_scripts'); @@ -303,25 +263,15 @@ add_filter('wpcf7_form_elements', function ($content) { return $content; }); -function show_post_image($post = null, $size = 'medium') +function show_post_image($post = null, $size = 'large') { if (has_post_thumbnail($post)) { return get_the_post_thumbnail($post, $size); } else { - // Вывод изображения-заглушки return ''; } } -function get_post_image($post = null) -{ - if (has_post_thumbnail($post)) { - return get_the_post_thumbnail_url($post, 'medium'); - } else { - return get_template_directory_uri() . '/noimage.jpg'; - } -} - add_action('rest_api_init', function () { register_rest_route('agroexpert/v1', '/posts-by-date/', array( 'methods' => 'GET', @@ -534,16 +484,6 @@ function change_image_size_dimensions() add_action('init', 'change_image_size_dimensions'); -function remove_srcset_attribute($attr) -{ - if (isset($attr['srcset'])) { - unset($attr['srcset']); // Удаляем srcset - } - return $attr; -} -add_filter('wp_get_attachment_image_attributes', 'remove_srcset_attribute', 10, 1); - - add_filter('big_image_size_threshold', '__return_false'); function auto_add_category_by_slug_to_new_post($post_ID, $post, $update) @@ -566,7 +506,7 @@ function get_category_name($post = null) return $category->slug !== 'all-events'; }); $categories = array_values($categories); - $category_name = !empty($categories) ? esc_html($categories[0]->name) : ''; + $category_name = !empty($categories) ? esc_html($categories[0]->name) : 'Все события'; return $category_name; } diff --git a/header.php b/header.php index a37ef3e..dc0be50 100644 --- a/header.php +++ b/header.php @@ -3,15 +3,9 @@ - - - - - <?php wp_title(); ?> -