403Webshell
Server IP : 104.171.130.249  /  Your IP : 216.73.216.146
Web Server : nginx/1.25.5
System : Linux 0dac65491b7e 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/themes/matreshka/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/matreshka/inc/product-extra-fields.php
<?php
// Дополнительная информация для товаров (ACF поля)

if ( function_exists( 'acf_add_local_field_group' ) ) {
    acf_add_local_field_group( array(
        'key' => 'group_matreshka_product_extra',
        'title' => 'Дополнительная информация',
        'fields' => array(
            array(
                'key' => 'field_proteins',
                'label' => 'Белки (г)',
                'name' => 'proteins',
                'type' => 'text',
            ),
            array(
                'key' => 'field_fats',
                'label' => 'Жиры (г)',
                'name' => 'fats',
                'type' => 'text',
            ),
            array(
                'key' => 'field_carbs',
                'label' => 'Углеводы (г)',
                'name' => 'carbs',
                'type' => 'text',
            ),
            array(
                'key' => 'field_calories',
                'label' => 'Ккал',
                'name' => 'calories',
                'type' => 'text',
            ),
            array(
                'key' => 'field_weight',
                'label' => 'Вес',
                'name' => 'weight',
                'type' => 'text',
                'instructions' => 'Например: 1.0 кг',
            ),
            array(
                'key' => 'field_storage_life',
                'label' => 'Срок хранения',
                'name' => 'storage_life',
                'type' => 'text',
            ),
            array(
                'key' => 'field_storage',
                'label' => 'Условия хранения',
                'name' => 'storage',
                'type' => 'text',
            ),
            array(
                'key' => 'field_country',
                'label' => 'Страна производства',
                'name' => 'country',
                'type' => 'text',
            ),
            array(
                'key' => 'field_proteins_label',
                'label' => 'Белки (лейбл)',
                'name' => 'proteins_label',
                'type' => 'text',
                'default_value' => 'Белки',
            ),
            array(
                'key' => 'field_fats_label',
                'label' => 'Жиры (лейбл)',
                'name' => 'fats_label',
                'type' => 'text',
                'default_value' => 'Жиры',
            ),
            array(
                'key' => 'field_carbs_label',
                'label' => 'Углеводы (лейбл)',
                'name' => 'carbs_label',
                'type' => 'text',
                'default_value' => 'Углеводы',
            ),
            array(
                'key' => 'field_calories_label',
                'label' => 'Ккал (лейбл)',
                'name' => 'calories_label',
                'type' => 'text',
                'default_value' => 'Ккал',
            ),
        ),
        'location' => array(
            array(
                array(
                    'param' => 'post_type',
                    'operator' => '==',
                    'value' => 'product',
                ),
            ),
        ),
    ) );
}

Youez - 2016 - github.com/yon3zu
LinuXploit