Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the acf domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /opt/h5g/flavors/wp-6.8.3/wp-includes/functions.php on line 6121
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wck domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /opt/h5g/flavors/wp-6.8.3/wp-includes/functions.php on line 6121
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the polylang domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /opt/h5g/flavors/wp-6.8.3/wp-includes/functions.php on line 6121
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-pagenavi domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /opt/h5g/flavors/wp-6.8.3/wp-includes/functions.php on line 6121
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /opt/h5g/flavors/wp-6.8.3/wp-includes/functions.php on line 6121
add_shortcode( 'column', 'column_shortcode' );
add_shortcode( 'clear', 'clear_floats_shortcode' );
add_shortcode( 'span', 'span_shortcode' );
function column_shortcode($atts, $content = null) {
extract(shortcode_atts(array(
"col" => '6'
), $atts));
return ''.do_shortcode($content).'
';
}
function span_shortcode($atts, $content = null) {
extract(shortcode_atts(array(
"col" => 'left'
), $atts));
return ''.do_shortcode($content).'';
}
function clear_floats_shortcode() {
extract(shortcode_atts(array(), $atts));
return '';
}
add_action('admin_footer', 'eg_quicktags');
function eg_quicktags() {
?>
add_action( 'init', 'register_cpt_slider' );
function register_cpt_slider() {
$labels = array(
'name' => _x( 'Слайды', 'slider' ),
'singular_name' => _x( 'Слайд', 'slider' ),
'add_new' => _x( 'Добавить новый слайд', 'slider' ),
'add_new_item' => _x( 'Добавить новый слайд', 'slider' ),
'edit_item' => _x( 'Редактировать слайд', 'slider' ),
'new_item' => _x( 'Новый слайд', 'slider' ),
'view_item' => _x( 'Просмотр слайда', 'slider' ),
'search_items' => _x( 'Поиск слайдера', 'slider' ),
'not_found' => _x( 'Не найдено', 'slider' ),
'not_found_in_trash' => _x( 'Корзина пуста', 'slider' ),
'parent_item_colon' => _x( 'Родительский слайд', 'slider' ),
'menu_name' => _x( 'Слайдер', 'slider' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'supports' => array( 'title', 'thumbnail' ),
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 20,
'menu_icon' => 'dashicons-format-gallery',
'show_in_nav_menus' => true,
'publicly_queryable' => true,
'exclude_from_search' => false,
'has_archive' => false,
'query_var' => true,
'can_export' => true,
'rewrite' => true,
'capability_type' => 'post'
);
register_post_type( 'slider', $args );
}
add_action('publish_slider', 'add_custom_field_automatically');
function add_custom_field_automatically($post_ID) {
global $wpdb;
if(!wp_is_post_revision($post_ID)) {
add_post_meta($post_ID, 'slyder', 'on', true);
}
}
// Register Custom Post Type
function uslugi() {
$labels = array(
'name' => _x( 'Servises', 'Post Type General Name', 'sitemaster' ),
'singular_name' => _x( 'Услуга', 'Post Type Singular Name', 'uslugi' ),
'menu_name' => __( 'Услуги', 'uslugi' ),
'name_admin_bar' => __( 'Услуги', 'uslugi' ),
'archives' => __( 'Список услуг', 'uslugi' ),
'attributes' => __( 'Детали услуги', 'uslugi' ),
'parent_item_colon' => __( 'Родительская услуга:', 'uslugi' ),
'all_items' => __( 'Все услуги', 'uslugi' ),
'add_new_item' => __( 'Добавить услугу', 'uslugi' ),
'add_new' => __( 'Новая услуга', 'uslugi' ),
'new_item' => __( 'Новая услуга', 'uslugi' ),
'edit_item' => __( 'Редактировать услугу', 'uslugi' ),
'update_item' => __( 'Обновить услугу', 'uslugi' ),
'view_item' => __( 'Просмотр услуги', 'uslugi' ),
'view_items' => __( 'Просмотр услуг', 'uslugi' ),
'search_items' => __( 'Поиск услуг', 'uslugi' ),
'not_found' => __( 'Не найдено', 'uslugi' ),
'not_found_in_trash' => __( 'Корзина пуста', 'uslugi' ),
'featured_image' => __( 'Основное изображение', 'uslugi' ),
'set_featured_image' => __( 'Выберите основное изображение', 'uslugi' ),
'remove_featured_image' => __( 'Удалить основное изображение', 'uslugi' ),
'use_featured_image' => __( 'Использовать как основное изображение', 'uslugi' ),
'insert_into_item' => __( 'Insert into item', 'uslugi' ),
'uploaded_to_this_item' => __( 'Uploaded to this item', 'uslugi' ),
'items_list' => __( 'Items list', 'uslugi' ),
'items_list_navigation' => __( 'Items list navigation', 'uslugi' ),
'filter_items_list' => __( 'Filter items list', 'uslugi' ),
);
$args = array(
'label' => __( 'Услуга', 'uslugi' ),
'description' => __( 'Услуги салона', 'uslugi' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', ),
'taxonomies' => array( '' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-heart',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'uslugi', $args );
}
add_action( 'init', 'uslugi', 0 );
// Register Custom Taxonomy
function uslugicat() {
$labels = array(
'name' => _x( 'Рубрики услуг', 'Taxonomy General Name', 'uslugicat' ),
'singular_name' => _x( 'Рубрика услуг', 'Taxonomy Singular Name', 'uslugicat' ),
'menu_name' => __( 'Рубрики услуг', 'uslugicat' ),
'all_items' => __( 'Все рубрики услуг', 'uslugicat' ),
'parent_item' => __( 'Родительская рубрика услуг', 'uslugicat' ),
'parent_item_colon' => __( 'Родительская рубрика', 'uslugicat' ),
'new_item_name' => __( 'Новая рубрика услуг', 'uslugicat' ),
'add_new_item' => __( 'Добавить рубрику услуг', 'uslugicat' ),
'edit_item' => __( 'Редактировать рубрику', 'uslugicat' ),
'update_item' => __( 'Обновить рубрику', 'uslugicat' ),
'view_item' => __( 'Просмотр рубрики', 'uslugicat' ),
'separate_items_with_commas' => __( 'Разделить запятыми', 'uslugicat' ),
'add_or_remove_items' => __( 'Добавить или удалить рубрику', 'uslugicat' ),
'choose_from_most_used' => __( 'Выбрать из самых популярных', 'uslugicat' ),
'popular_items' => __( 'Популярные рубрики', 'uslugicat' ),
'search_items' => __( 'Поиск рубрики', 'uslugicat' ),
'not_found' => __( 'Не найдено', 'uslugicat' ),
'no_terms' => __( 'Нет рубрик', 'uslugicat' ),
'items_list' => __( 'Список рубрик', 'uslugicat' ),
'items_list_navigation' => __( 'Items list navigation', 'uslugicat' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'uslugicat', array( 'uslugi' ), $args );
}
add_action( 'init', 'uslugicat', 0 );
Notice: Undefined variable: multiline in /home/u723634896/websites/6gEsMhsqT/public_html/wp-content/themes/androloq/functions.php on line 31
Notice: Undefined variable: multiline in /home/u723634896/websites/6gEsMhsqT/public_html/wp-content/themes/androloq/functions.php on line 32
Notice: Undefined variable: multiline in /home/u723634896/websites/6gEsMhsqT/public_html/wp-content/themes/androloq/functions.php on line 33
Notice: Undefined variable: multiline in /home/u723634896/websites/6gEsMhsqT/public_html/wp-content/themes/androloq/functions.php on line 34
Notice: Undefined variable: multiline in /home/u723634896/websites/6gEsMhsqT/public_html/wp-content/themes/androloq/functions.php on line 35
Notice: Undefined variable: multiline in /home/u723634896/websites/6gEsMhsqT/public_html/wp-content/themes/androloq/functions.php on line 36
Notice: Undefined variable: multiline in /home/u723634896/websites/6gEsMhsqT/public_html/wp-content/themes/androloq/functions.php on line 37
Notice: Undefined variable: multiline in /home/u723634896/websites/6gEsMhsqT/public_html/wp-content/themes/androloq/functions.php on line 38
Notice: Undefined variable: multiline in /home/u723634896/websites/6gEsMhsqT/public_html/wp-content/themes/androloq/functions.php on line 39
Notice: Undefined variable: multiline in /home/u723634896/websites/6gEsMhsqT/public_html/wp-content/themes/androloq/functions.php on line 40
Notice: Undefined variable: multiline in /home/u723634896/websites/6gEsMhsqT/public_html/wp-content/themes/androloq/functions.php on line 41
Warning: Cannot modify header information - headers already sent by (output started at /home/u723634896/websites/6gEsMhsqT/public_html/wp-content/themes/androloq/inc/shortcode.php:1) in /opt/h5g/flavors/wp-6.8.3/wp-includes/pluggable.php on line 1450
Warning: Cannot modify header information - headers already sent by (output started at /home/u723634896/websites/6gEsMhsqT/public_html/wp-content/themes/androloq/inc/shortcode.php:1) in /opt/h5g/flavors/wp-6.8.3/wp-includes/pluggable.php on line 1453