Содержание
SPL
SPL support | enabled |
---|---|
Interfaces | Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject |
Classes | AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException |
Phar
Phar: PHP Archive support | enabled |
---|---|
Phar EXT version | 2.0.2 |
Phar API version | 1.1.1 |
SVN revision | $Id: e117ab0dc068703c55b505e78a0d3b3752e9c0b7 $ |
Phar-based phar archives | enabled |
Tar-based phar archives | enabled |
ZIP-based phar archives | enabled |
gzip compression | enabled |
bzip2 compression | disabled (install pecl/bz2) |
Native OpenSSL support | enabled |
Phar based on pear/PHP_Archive, original concept by Davey Shafik.Phar fully realized by Gregory Beaver and Marcus Boerger.Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle. |
Directive | Local Value | Master Value |
---|---|---|
phar.cache_list | no value | no value |
phar.readonly | On | On |
phar.require_hash | On | On |
memcached
memcached support | enabled |
---|---|
Version | 3.1.4 |
libmemcached version | 1.0.18 |
SASL support | yes |
Session support | yes |
igbinary support | yes |
json support | yes |
msgpack support | yes |
Directive | Local Value | Master Value |
---|---|---|
memcached.compression_factor | 1.3 | 1.3 |
memcached.compression_threshold | 2000 | 2000 |
memcached.compression_type | fastlz | fastlz |
memcached.default_binary_protocol | Off | Off |
memcached.default_connect_timeout | ||
memcached.default_consistent_hash | Off | Off |
memcached.serializer | php | php |
memcached.sess_binary_protocol | On | On |
memcached.sess_connect_timeout | ||
memcached.sess_consistent_hash | On | On |
memcached.sess_consistent_hash_type | ketama | ketama |
memcached.sess_lock_expire | ||
memcached.sess_lock_max_wait | not set | not set |
memcached.sess_lock_retries | 5 | 5 |
memcached.sess_lock_wait | not set | not set |
memcached.sess_lock_wait_max | 150 | 150 |
memcached.sess_lock_wait_min | 150 | 150 |
memcached.sess_locking | On | On |
memcached.sess_number_of_replicas | ||
memcached.sess_persistent | Off | Off |
memcached.sess_prefix | memc.sess.key. | memc.sess.key. |
memcached.sess_randomize_replica_read | Off | Off |
memcached.sess_remove_failed_servers | Off | Off |
memcached.sess_sasl_password | no value | no value |
memcached.sess_sasl_username | no value | no value |
memcached.sess_server_failure_limit | ||
memcached.store_retry_count | 2 | 2 |
Перевод «customize» на русский язык: «настроить»
customize: | настраивать адаптировать переделывать |
You can customize everything. | Можно все выбрать. источник пожаловаться Corpus name: OpenSubtitles2018. License: not specified. References: http://opus.nlpl.eu/OpenSubtitles2018.php, http://stp.lingfil.uu.se/~joerg/paper/opensubs2016.pdf |
First, let’s customize your avatar. | В начале пути следует настроить ваш аватар. источник пожаловаться Corpus name: OpenSubtitles2018. License: not specified. References: http://opus.nlpl.eu/OpenSubtitles2018.php, http://stp.lingfil.uu.se/~joerg/paper/opensubs2016.pdf |
Customize your just like him. | Мне надо в туалет. источник пожаловаться Corpus name: OpenSubtitles2016. License: not specified. References: http://opus.lingfil.uu.se/OpenSubtitles2016.php, http://stp.lingfil.uu.se/~joerg/published/ranlp-V.pdf |
Y… customize your space. | Устраивайся, как хочешь. источник пожаловаться Corpus name: OpenSubtitles2018. License: not specified. References: http://opus.nlpl.eu/OpenSubtitles2018.php, http://stp.lingfil.uu.se/~joerg/paper/opensubs2016.pdf |
I can customize it here, right? | Это ведь можно сделать здесь? источник пожаловаться Corpus name: OpenSubtitles2016. License: not specified. References: http://opus.lingfil.uu.se/OpenSubtitles2016.php, http://stp.lingfil.uu.se/~joerg/published/ranlp-V.pdf |
Oh, we can customize it with anything you want. | Да, мы можем настроить ее с все, что угодно. источник пожаловаться Corpus name: OpenSubtitles2016. License: not specified. References: http://opus.lingfil.uu.se/OpenSubtitles2016.php, http://stp.lingfil.uu.se/~joerg/published/ranlp-V.pdf |
You can customize everything, they got all different heads and … parts. | Можно все выбрать. Тут есть всякие разные головы и другие части тела. источник пожаловаться Corpus name: OpenSubtitles2016. License: not specified. References: http://opus.lingfil.uu.se/OpenSubtitles2016.php, http://stp.lingfil.uu.se/~joerg/published/ranlp-V.pdf |
Oh yeah and my legs are long so I need to customize it. | А да, у меня длинные ноги, и придётся подгонять. источник пожаловаться Corpus name: OpenSubtitles2016. License: not specified. References: http://opus.lingfil.uu.se/OpenSubtitles2016.php, http://stp.lingfil.uu.se/~joerg/published/ranlp-V.pdf |
Here, however, one is more free to customize the service. | Мы сможем подобрать вам церемонию по вкусу. источник пожаловаться Corpus name: OpenSubtitles2016. License: not specified. References: http://opus.lingfil.uu.se/OpenSubtitles2016.php, http://stp.lingfil.uu.se/~joerg/published/ranlp-V.pdf |
they pull up a character creation menu and have you customize your player character. | выбрасывают меню по созданию персонажа и просят настроить его. источник пожаловаться Langcrowd.com |
Time to go beyond the goods and the services, and use, in that same heuristic, what happens when you customize a service? | Время идти дальше от концепции товаров и услуг, и пользования, в эвристическом значении, что происходит при кастомизации услуги? источник пожаловаться Corpus name: TED2013. License: not specified. References: http://opus.nlpl.eu/TED2013.php, http://www.lrec-conf.org/proceedings/lrec2012/pdf/463_Paper.pdf |
Medi-peel customize whitening toning essence
Перевод «customize» на Немецкий, Итальянский, Французский, Испанский, Португальский, Турецкий, Польский, Арабский, Иврит, Японский, Голландский, Румынский, Латынь, Индонезийский, Хинди, Корейский, Персидский, Вьетнамский, Азербайджанский, Армянский, Грузинский, Казахский, Киргизский, Украинский, Узбекский, Греческий, Болгарский, Чешский, Датский, Эстонский, Финский, Венгерский, Литовский, Латышский, Норвежский, Словацкий, Словенский, Шведский, Тайский, Африкаанс, Боснийский, Каталанский, Баскский, Галисийский, Хорватский, Малайский, Сербский, Урду, Тамильский, Бенгальский
Объекты кастомайзера
Существует четыре типа объектов кастомайзера:
- Панели (panel) — Панели объединяют секции. Секция может существовать вне панели, то есть создание панели делается по желанию и выгодно, когда секций много и их нужно собраться в панель.
- Секции (sections) — Секции объединяют элементы управления (текстовое поле, радиокнопки, выпадающие списки и так далее).
- Элементы управления (controls) — Элементы управления не могут существовать вне секции.
- Настройки (settings) — Настройки кастомайзера связывают элементы пользовательского интерфейса (controls) с настройками, хранящимися в базе данных.
К примеру, структура кастомайзера темы Twenty Seventeen такова:
- Свойства сайта (секция), внутри 6 элементов управления
- Выбор логотипа (выбор изображения)
- Название сайта (текстовое поле)
- Краткое описание (текстовое поле)
- Отображать название и описание (флажок)
- Иконка сайта (выбор изображения)
- Цвета (секция), внутри 2 элемента управления
- Цветовая схема (радиокнопки и ползунок)
- Цвет текста заголовка (выбор цвета с помощью пипетки)
- Медиафайл заголовка (секция)
- Видео заголовка (выбор видео и поле для ссылки)
- Изображение заголовка (выбор изображения)
- Меню (панель), внутри секции в виде названий ваших меню, пусть их три
- Верхнее меню (секция), внутри пункты меню являются элементами управления
- Пункт меню 1
- Пункт меню 2
- Пункт меню 3
- Меню продавца (секция)
- Пункт меню 1
- Пункт меню 2
- Нижнее меню (секция)
- Пункт меню 1
- Пункт меню 2
- Пункт меню 3
- Пункт меню 4
- Создать меню (секция)
- Название меню (текстовое поле)
- Области для меню (флажки)
- Аккордеон (выбор типа) и списки с выбором пунктов меню
- Верхнее меню (секция), внутри пункты меню являются элементами управления
- Виджеты (панель), внутри секции в виде названий областей меню, пусть их две
- Боковая панель блога (секция), внутри виджеты (секции), внутри элементы управления виджетом
- Виджет 1
- Виджет 2
- Подвал (секция)
- Виджет 1
- Виджет 2
- Виджет 3
- Боковая панель блога (секция), внутри виджеты (секции), внутри элементы управления виджетом
- Настройки главной страницы (секция)
- Дополнительные стили (секция)
Используя методы объекта WP_Customize_Manager, можно добавлять/удалять/изменять объекты кастомайзера (панели, секции, элемент управления …).
Основная работа проводится на хуке customize_register, в функцию которого передаётся объект :
add_action( 'customize_register', 'my_theme_customize_register' ); function my_theme_customize_register( WP_Customize_Manager $wp_customize ) { // Здесь делаем что-либо с $wp_customize - объектом класса WP_Customize_Manager, например // Действия с панелями $wp_customize->add_panel(); // добавить панель $wp_customize->get_panel(); // получить панель $wp_customize->remove_panel(); // удалить панель // Действия с секциями $wp_customize->add_section(); // добавить секцию $wp_customize->get_section(); // получить секцию $wp_customize->remove_section(); // удалить секцию // Действия с настройками $wp_customize->add_setting(); // добавить настройку $wp_customize->get_setting(); // получить настройку $wp_customize->remove_setting(); // удалить настройку // Действия с элементами управления $wp_customize->add_control(); // добавить элемент управления $wp_customize->get_control(); // получить элемент управления $wp_customize->remove_control(); // удалить элемент управления }
customise
Past participle: Gerund: ImperativePresentPreteritePresent ContinuousPresent PerfectPast ContinuousPast PerfectFutureFuture PerfectFuture ContinuousPresent Perfect ContinuousFuture Perfect ContinuousPast Perfect ContinuousConditionalPast Conditional
Imperative |
---|
customise |
customise |
Present |
---|
I customise |
you customise |
he/she/it customises |
we customise |
you customise |
they customise |
Preterite |
---|
I customised |
you customised |
he/she/it customised |
we customised |
you customised |
they customised |
Present Continuous |
---|
I am customising |
you are customising |
he/she/it is customising |
we are customising |
you are customising |
they are customising |
Present Perfect |
---|
I have customised |
you have customised |
he/she/it has customised |
we have customised |
you have customised |
they have customised |
Past Continuous |
---|
I was customising |
you were customising |
he/she/it was customising |
we were customising |
you were customising |
they were customising |
Past Perfect |
---|
I had customised |
you had customised |
he/she/it had customised |
we had customised |
you had customised |
they had customised |
Future |
---|
I will customise |
you will customise |
he/she/it will customise |
we will customise |
you will customise |
they will customise |
Future Perfect |
---|
I will have customised |
you will have customised |
he/she/it will have customised |
we will have customised |
you will have customised |
they will have customised |
Future Continuous |
---|
I will be customising |
you will be customising |
he/she/it will be customising |
we will be customising |
you will be customising |
they will be customising |
Present Perfect Continuous |
---|
I have been customising |
you have been customising |
he/she/it has been customising |
we have been customising |
you have been customising |
they have been customising |
Future Perfect Continuous |
---|
I will have been customising |
you will have been customising |
he/she/it will have been customising |
we will have been customising |
you will have been customising |
they will have been customising |
Past Perfect Continuous |
---|
I had been customising |
you had been customising |
he/she/it had been customising |
we had been customising |
you had been customising |
they had been customising |
Conditional |
---|
I would customise |
you would customise |
he/she/it would customise |
we would customise |
you would customise |
they would customise |
Past Conditional |
---|
I would have customised |
you would have customised |
he/she/it would have customised |
we would have customised |
you would have customised |
they would have customised |
pgsql
PostgreSQL Support | enabled |
---|---|
PostgreSQL(libpq) Version | 10.12 (Ubuntu 10.12-0ubuntu0.18.04.1) |
PostgreSQL(libpq) | PostgreSQL 10.12 (Ubuntu 10.12-0ubuntu0.18.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0, 64-bit |
Multibyte character support | enabled |
SSL support | enabled |
Active Persistent Links | |
Active Links |
Directive | Local Value | Master Value |
---|---|---|
pgsql.allow_persistent | On | On |
pgsql.auto_reset_persistent | Off | Off |
pgsql.ignore_notice | Off | Off |
pgsql.log_notice | Off | Off |
pgsql.max_links | Unlimited | Unlimited |
pgsql.max_persistent | Unlimited | Unlimited |
Usage
This hook gives you access to the $wp_customize object, which is an instance of the WP_Customize_Manager class. It is this class object that controls the Theme Customizer screen.
Generally, there are only 4 methods of the $wp_customize object that you will need to interact with inside the customize_register hook.
- WP_Customize_Manager->add_setting()
- This adds a new setting to the database.
- WP_Customize_Manager->add_section()
- This adds a new section (i.e. category/group) to the Theme Customizer page.
- WP_Customize_Manager->add_control()
- This creates an HTML control that admins can use to change settings. This is also where you choose a section for the control to appear in.
- WP_Customize_Manager->get_setting()
- This can be used to fetch any existing setting, in the event you need to modify something (like one of WordPress’s default settings).
Методы
Методы для добавления настроек/секций.
Добавляет панель.
Добавляет секцию.
Добавляет новую настройку/опцию. В основе работы метода лежит класс WP_Customize_Setting().
- $id(строка) (обязательный)
- Название опции.
- $args(массив)
-
Параметры настройки. Возможные ключи массива, все свойства класса :
-
$type(строка) Type of the setting.По умолчанию: ‘theme_mod’
-
$capability(строка) Capability required for the setting.По умолчанию: ‘edit_theme_options’
-
$theme_supports(строка/массив) Theme features required to support the panel.По умолчанию: none
-
$default(строка) Default value for the setting.По умолчанию: »
-
$transport(строка) Параметры отображения предварительного просмотра изменений в Настройщике тем. Может быть:refresh — применяет изменения перезагрузкой фрейма (можно полностью отказаться от JavaScript).postMessage — применяет изменения через JavaScript.По умолчанию: ‘refresh’
-
$validate_callback(callable) Server-side validation callback for the setting’s value. Функция получит параметры $validity, $value, $this, смотрите хук customize_validate_(id)По умолчанию: »
-
$sanitize_callback(callable) Callback to filter a Customize setting value in un-slashed form. Функция получит параметры $value, $this, смотрите хук customize_sanitize_(id)По умолчанию: »
-
$sanitize_js_callback(callable) Callback to convert a Customize PHP setting value to a value that is JSON serializable. Функция получит параметры $value, $this, смотрите хук customize_sanitize_js_(id)По умолчанию: »
- $dirty(true/false) Whether or not the setting is initially dirty when created.По умолчанию: false
По умолчанию: предустановки
-
Добавляет элемент управления.
- $id(WP_Customize_Control/строка) (обязательный)
-
Объект Customize Control или ID.
Объекты, которые можно использовать в качестве параметра .
Разные:
- WP_Customize_Color_Control
- WP_Customize_Background_Position_Control
- WP_Customize_Code_Editor_Control
- WP_Customize_Date_Time_Control
- WP_Customize_Theme_Control
Image:
- WP_Customize_Image_Control
- WP_Customize_Background_Image_Control
- WP_Customize_Cropped_Image_Control
- WP_Customize_Header_Image_Control
- WP_Customize_Media_Control
- WP_Customize_Upload_Control
Nav_Menu:
- WP_Customize_Nav_Menu_Control
- WP_Customize_Nav_Menu_Item_Control
- WP_Customize_Nav_Menu_Location_Control
- WP_Customize_Nav_Menu_Locations_Control
- WP_Customize_Nav_Menu_Name_Control
- WP_Customize_New_Menu_Control
- WP_Customize_Nav_Menu_Auto_Add_Control
Widget:
- WP_Widget_Area_Customize_Control
- WP_Widget_Form_Customize_Control
- $args(массив)
-
Массив свойств для нового объекта управления.
Параметр нужно указывать, только когда в $id указывается строка, если в $id указывается объект, то параметры передаются в создаваемый объект.
-
$settings(массив) All settings tied to the control. If undefined. IDs in the array correspond to the ID of a registered WP_Customize_Setting.По умолчанию: $setting
-
$setting(строка) The primary setting for the control (if there is one).По умолчанию: ‘default’
-
$capability(строка) Capability required to use this control. Normally derived from $settings.
-
$priority(число) Order priority to load the control.По умолчанию: 10
-
$section(строка) The section this control belongs to.По умолчанию: »
-
$label(строка) Label for the control.По умолчанию: »
-
$description(строка) Description for the control.По умолчанию: »
-
$choices(массив) List of choices for ‘radio’ or ‘select’ type controls, where values are the keys, and labels are the values.По умолчанию: array()
-
$input_attrs(массив) List of custom input attributes for control output, where attribute names are the keys and values are the values.По умолчанию: array()
-
$allow_addition(true/false) Show UI for adding new content, currently only used for the dropdown-pages control.По умолчанию: false
-
$type(строка) The type of the control.По умолчанию: ‘text’
- $active_callback(callback) Active callback.
По умолчанию: array()
-
- $wp_customize->selective_refresh->add_partial( $id, $args )
- Adds a partial.
—
Zend OPcache
Opcode Caching | Up and Running |
Optimization | Enabled |
SHM Cache | Enabled |
File Cache | Disabled |
Startup | OK |
Shared memory model | mmap |
Cache hits | 95776128 |
Cache misses | 4016 |
Used memory | 131401312 |
Free memory | 1446336 |
Wasted memory | 1370080 |
Interned Strings Used memory | 6526592 |
Interned Strings Free memory | 1862016 |
Cached scripts | 3974 |
Cached keys | 5257 |
Max keys | 16229 |
OOM restarts | 1 |
Hash keys restarts | |
Manual restarts |
Directive | Local Value | Master Value |
---|---|---|
opcache.blacklist_filename | no value | no value |
opcache.consistency_checks | ||
opcache.dups_fix | Off | Off |
opcache.enable | On | On |
opcache.enable_cli | Off | Off |
opcache.enable_file_override | Off | Off |
opcache.error_log | no value | no value |
opcache.fast_shutdown | ||
opcache.file_cache | no value | no value |
opcache.file_cache_consistency_checks | 1 | 1 |
opcache.file_cache_only | ||
opcache.file_update_protection | 2 | 2 |
opcache.force_restart_timeout | 180 | 180 |
opcache.huge_code_pages | Off | Off |
opcache.inherited_hack | On | On |
opcache.interned_strings_buffer | 8 | 8 |
opcache.lockfile_path | /tmp | /tmp |
opcache.log_verbosity_level | 1 | 1 |
opcache.max_accelerated_files | 10000 | 10000 |
opcache.max_file_size | ||
opcache.max_wasted_percentage | 5 | 5 |
opcache.memory_consumption | 128 | 128 |
opcache.opt_debug_level | ||
opcache.optimization_level | 0x7FFFBFFF | 0x7FFFBFFF |
opcache.preferred_memory_model | no value | no value |
opcache.protect_memory | ||
opcache.restrict_api | no value | no value |
opcache.revalidate_freq | 2 | 2 |
opcache.revalidate_path | Off | Off |
opcache.save_comments | 1 | 1 |
opcache.use_cwd | On | On |
opcache.validate_permission | Off | Off |
opcache.validate_root | Off | Off |
opcache.validate_timestamps | On | On |
Пожалуйста, помогите c переводом:
(8) 4 ÷ 2 are divided into 5 steps
(a) Correct quotient
(b) Over-quotient by once
(c) Over-quotient by twice or more
(d) Same first digits (2 scenarios)
(e) Both first digits are 1 over-quotient (129, 348, 567, 786, 95)
(f) Line to help memorize returning : minus 1 time, skip a space and add back Mr. Cat Английский-Русский
1. The ENIAC (1943-1946) The first all-electronic computer, the Electronic Numerical Integrator and Calculator (ENIAC) was developed at the Moore School of Electrical Engineering of the University of Pennsylvania. It was developed as a result of a military need. J.Presper Eckert and John Mauchly proposed the machine to solve the problem of calculating firing tables for new weapons. The ENIAC weigh Английский-Русский
Giving a definition of the term “comedy”, one may face some difficulties as it’s one of the most complex categories of aesthetics. Comedy is historically volatile, it depends on the context and has a social nature. The laughter is not always a sight of comedy, and comedy is not always defined by laughter. It is circumstances, sharpening the contradictions and helping to reveal its social nature Английский-Русский
Measuring the positive side of the work–family interface: Development and validation of a work–family enrichment scale Английский-Русский
session
Session Support | enabled |
Registered save handlers | files user redis rediscluster memcached |
Registered serializer handlers | php_serialize php php_binary igbinary msgpack wddx |
Directive | Local Value | Master Value |
---|---|---|
session.auto_start | Off | Off |
session.cache_expire | 180 | 180 |
session.cache_limiter | nocache | nocache |
session.cookie_domain | no value | no value |
session.cookie_httponly | Off | Off |
session.cookie_lifetime | ||
session.cookie_path | ||
session.cookie_secure | Off | Off |
session.gc_divisor | 1000 | 1000 |
session.gc_maxlifetime | 1440 | 1440 |
session.gc_probability | ||
session.lazy_write | On | On |
session.name | PHPSESSID | PHPSESSID |
session.referer_check | no value | no value |
session.save_handler | files | files |
session.save_path | /var/lib/php/sessions | /var/lib/php/sessions |
session.serialize_handler | php | php |
session.sid_bits_per_character | 5 | 5 |
session.sid_length | 26 | 26 |
session.upload_progress.cleanup | On | On |
session.upload_progress.enabled | On | On |
session.upload_progress.freq | 1% | 1% |
session.upload_progress.min_freq | 1 | 1 |
session.upload_progress.name | PHP_SESSION_UPLOAD_PROGRESS | PHP_SESSION_UPLOAD_PROGRESS |
session.upload_progress.prefix | upload_progress_ | upload_progress_ |
session.use_cookies | On | On |
session.use_only_cookies | On | On |
session.use_strict_mode | Off | Off |
session.use_trans_sid |
mysqli
MysqlI Support | enabled |
---|---|
Client API library version | mysqlnd 5.0.12-dev — 20150407 — $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $ |
Active Persistent Links | |
Inactive Persistent Links | |
Active Links |
Directive | Local Value | Master Value |
---|---|---|
mysqli.allow_local_infile | On | On |
mysqli.allow_persistent | On | On |
mysqli.default_host | no value | no value |
mysqli.default_port | 3306 | 3306 |
mysqli.default_pw | no value | no value |
mysqli.default_socket | no value | no value |
mysqli.default_user | no value | no value |
mysqli.max_links | Unlimited | Unlimited |
mysqli.max_persistent | Unlimited | Unlimited |
mysqli.reconnect | Off | Off |
mysqli.rollback_on_cached_plink | Off | Off |
mbstring
Multibyte Support | enabled |
Multibyte string engine | libmbfl |
HTTP input encoding translation | disabled |
libmbfl version | 1.3.2 |
oniguruma version | 5.9.6 |
mbstring extension makes use of «streamable kanji code filter and converter», which is distributed under the GNU Lesser General Public License version 2.1. |
---|
Multibyte (japanese) regex support | enabled |
Multibyte regex (oniguruma) backtrack check | On |
Multibyte regex (oniguruma) version | 5.9.6 |
Directive | Local Value | Master Value |
---|---|---|
mbstring.detect_order | no value | no value |
mbstring.encoding_translation | Off | Off |
mbstring.func_overload | ||
mbstring.http_input | no value | no value |
mbstring.http_output | no value | no value |
mbstring.http_output_conv_mimetypes | ^(text/|application/xhtml\+xml) | ^(text/|application/xhtml\+xml) |
mbstring.internal_encoding | no value | no value |
mbstring.language | neutral | neutral |
mbstring.strict_detection | Off | Off |
mbstring.substitute_character | no value | no value |
Настройки
Настройки обеспечивают предпросмотр внесенных изменений, их очистку и сохранение. Настройки «следят» за элементами управлениями. К примеру, внесли изменение (выбрали цвет фона сайта) — он изменился без перезагрузки страницы. Если всё устроило — публикуете изменения, чтобы все пользователи сайта их увидели. Перед сохранением данные очищаются.
При добавлении новой настройки доступны несколько параметров:
$wp_customize->add_setting( 'setting_id', array( 'type' => 'theme_mod', // Или 'option' 'capability' => 'edit_theme_options', // Права доступ к изменению настроек кастомайзера. 'theme_supports' => '', // Требуется редко. 'default' => '', // Значение по умолчанию. 'transport' => 'refresh', // Или 'postMessage'. 'sanitize_callback' => '', // Очистка данных на стороне PHP. 'sanitize_js_callback' => '', // Очистка данных на стороне JavaScript. В основном 'to_json'. ) );
Некоторые ID настроек заняты движком, это:
- widget_*
- sidebars_widgets
- nav_menu
- nav_menu_item
Поэтому пользуйтесь суффиксами при создании имен, например: homepage_widget.
Возможно два вида настроек, параметр type: option (опции) и theme_mod (модификации темы).
- Опции ()
-
Хранятся в таблице . Название опции в БД будет точно таким, какое вы указали в первом параметре (‘setting_id’).
Получать такие опции принято функцией get_option().
Такие опции могут быть использованы независимо от активной темы. К данному типу настроек подходят такие данные, как «Название сайта», которое не завит от того, какая тема установлена и на какую сменится в будущем.
- Модификации темы ()
-
Используются для темы и хранятся для каждой темы отдельно. Данные хранятся в виде сериализованного массива в таблице , в опции с названием theme_mods_THEME_NAME. Получать такие опции принято функцией get_theme_mod() или get_theme_mods().
К данному типу настроек подойдут например, цвет заголовка статей или фон сайта. Пусть у вас была «Тема А», вы её настроили. Потом решили попробовать «Тему Б», переключились и также настроили. Теперь при переключении тем, у каждой будут свои (разные) опции. Однако, если тут использовать тип настроек option, то установка настроек «Тема Б» переписала бы настройки «Темы А».
Во время изменения опций кастомайзера, но до их публикации (применения), WordPress сохраняет текущие измененные опции в таблицу , в виде записи типа customize_changeset со статусом auto-draft.
Идентифицировать конкретную сессию изменения опций кастомайзера можно по имени записи: в поле post_name записывается уникальный id: , который выглядит так: .
Таким образом, получить измененный опции (еще не опубликованные), можно получив контент записи с именем . В контенте, в виде JSON строки хранятся текущие измененные опции:
{ "my_show_per_page": { "value": "10", "type": "option", "user_id": 5, "date_modified_gmt": "2019-06-21 16:28:30" }, "my_main_swiper_effect": { "value": "flip", "type": "option", "user_id": 5, "date_modified_gmt": "2019-06-21 16:28:30" } }
hash
hash support | enabled |
Hashing Engines | md2 md4 md5 sha1 sha224 sha256 sha384 sha512/224 sha512/256 sha512 sha3-224 sha3-256 sha3-384 sha3-512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b fnv132 fnv1a32 fnv164 fnv1a64 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 |
MHASH support | Enabled |
MHASH API Version | Emulated Support |
redis
Redis Support | enabled |
---|---|
Redis Version | 5.2.1 |
Redis Sentinel Version | 0.1 |
Available serializers | php, json, igbinary |
Directive | Local Value | Master Value |
---|---|---|
redis.arrays.algorithm | no value | no value |
redis.arrays.auth | no value | no value |
redis.arrays.autorehash | ||
redis.arrays.connecttimeout | ||
redis.arrays.consistent | ||
redis.arrays.distributor | no value | no value |
redis.arrays.functions | no value | no value |
redis.arrays.hosts | no value | no value |
redis.arrays.index | ||
redis.arrays.lazyconnect | ||
redis.arrays.names | no value | no value |
redis.arrays.pconnect | ||
redis.arrays.previous | no value | no value |
redis.arrays.readtimeout | ||
redis.arrays.retryinterval | ||
redis.clusters.auth | no value | no value |
redis.clusters.cache_slots | ||
redis.clusters.persistent | ||
redis.clusters.read_timeout | ||
redis.clusters.seeds | no value | no value |
redis.clusters.timeout | ||
redis.pconnect.connection_limit | ||
redis.pconnect.pooling_enabled | 1 | 1 |
redis.session.lock_expire | ||
redis.session.lock_retries | 10 | 10 |
redis.session.lock_wait_time | 2000 | 2000 |
redis.session.locking_enabled |
Core
PHP Version | 7.1.33-14+ubuntu18.04.1+deb.sury.org+1 |
Directive | Local Value | Master Value |
---|---|---|
allow_url_fopen | On | On |
allow_url_include | Off | Off |
arg_separator.input | & | & |
arg_separator.output | & | & |
auto_append_file | no value | no value |
auto_globals_jit | On | On |
auto_prepend_file | no value | no value |
browscap | no value | no value |
default_charset | UTF-8 | UTF-8 |
default_mimetype | text/html | text/html |
disable_classes | no value | no value |
disable_functions | pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, | pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, |
display_errors | On | On |
display_startup_errors | Off | Off |
doc_root | no value | no value |
docref_ext | no value | no value |
docref_root | no value | no value |
enable_dl | Off | Off |
enable_post_data_reading | On | On |
error_append_string | no value | no value |
error_log | no value | no value |
error_prepend_string | no value | no value |
error_reporting | 32767 | 32767 |
expose_php | Off | Off |
extension_dir | /usr/lib/php/20160303 | /usr/lib/php/20160303 |
file_uploads | On | On |
hard_timeout | 2 | 2 |
highlight.comment | #FF8000 | #FF8000 |
highlight.default | #0000BB | #0000BB |
highlight.html | #000000 | #000000 |
highlight.keyword | #007700 | #007700 |
highlight.string | #DD0000 | #DD0000 |
html_errors | On | On |
ignore_repeated_errors | Off | Off |
ignore_repeated_source | Off | Off |
ignore_user_abort | Off | Off |
implicit_flush | Off | Off |
include_path | .:/usr/share/php | .:/usr/share/php |
input_encoding | no value | no value |
internal_encoding | no value | no value |
log_errors | On | On |
log_errors_max_len | 1024 | 1024 |
mail.add_x_header | Off | Off |
mail.force_extra_parameters | no value | no value |
mail.log | no value | no value |
max_execution_time | 30 | 30 |
max_file_uploads | 20 | 20 |
max_input_nesting_level | 64 | 64 |
max_input_time | 60 | 60 |
max_input_vars | 1000 | 1000 |
memory_limit | 512M | 512M |
open_basedir | no value | no value |
output_buffering | 4096 | 4096 |
output_encoding | no value | no value |
output_handler | no value | no value |
post_max_size | 20M | 20M |
precision | 14 | 14 |
realpath_cache_size | 4096K | 4096K |
realpath_cache_ttl | 120 | 120 |
register_argc_argv | Off | Off |
report_memleaks | On | On |
report_zend_debug | On | On |
request_order | GP | GP |
sendmail_from | no value | no value |
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i |
serialize_precision | -1 | -1 |
short_open_tag | Off | Off |
SMTP | localhost | localhost |
smtp_port | 25 | 25 |
sql.safe_mode | Off | Off |
sys_temp_dir | no value | no value |
track_errors | Off | Off |
unserialize_callback_func | no value | no value |
upload_max_filesize | 20M | 20M |
upload_tmp_dir | no value | no value |
user_dir | no value | no value |
user_ini.cache_ttl | 300 | 300 |
user_ini.filename | .user.ini | .user.ini |
variables_order | GPCS | GPCS |
xmlrpc_error_number | ||
xmlrpc_errors | Off | Off |
zend.assertions | -1 | -1 |
zend.detect_unicode | On | On |
zend.enable_gc | On | On |
zend.multibyte | Off | Off |
zend.script_encoding | no value | no value |
zend.signal_check | Off | Off |
С этим читают