Доступ к настройкам сайта

Доступ к настройкам сайта осуществляется через класс site_options

$options = site_options::getInstance();

Получить настройки

$options->get([$section = null[, $option = null]]); Где:
$section
Название блока настроек (например news - новости)
$option
Значение

Пара примеров:

$options = site_options::getInstance();
var_dump($options->get()); array(9) { ["market_notifications"]=> array(2) { ["admin_notifications"]=> array(5) { ["force_client_info"]=> string(0) "" ["from_email"]=> string(0) "" ["send_emails"]=> string(0) "" ["send_name"]=> string(0) "" ["subject"]=> string(0) "" } ["user_notifications"]=> array(4) { ["notification"]=> string(1) "1" ["from_name"]=> string(0) "" ["from_email"]=> string(0) "" ["subject"]=> string(0) "" } } ["catalog"]=> array(2) { ["round_area"]=> string(1) "0" ["round_price"]=> string(1) "0" } ["clients"]=> array(5) { ["asc_confirmation"]=> string(0) "" ["email_to_login"]=> string(1) "1" ["send_mail"]=> string(0) "" ["calc_discount"]=> string(0) "" ["required_fields"]=> array(7) { ["email"]=> string(1) "1" ["address"]=> string(1) "1" ["city"]=> string(1) "1" ["name"]=> string(1) "1" ["country"]=> string(1) "1" ["phone"]=> string(1) "1" ["surname"]=> string(1) "1" } } ["market_meta_tags"]=> array(3) { ["description"]=> array(7) { ["in_cats"]=> string(1) "0" ["in_mans"]=> string(1) "0" ["in_goods"]=> string(1) "0" ["text"]=> string(0) "" ["cat2description"]=> string(4) "full" ["man2description"]=> string(1) "1" ["good2description"]=> string(4) "full" } ["keywords"]=> array(4) { ["in_cats"]=> string(4) "none" ["in_mans"]=> string(4) "none" ["in_goods"]=> string(4) "none" ["text"]=> string(0) "" } ["title"]=> array(4) { ["in_cats"]=> string(4) "none" ["in_mans"]=> string(4) "none" ["in_goods"]=> string(4) "none" ["text"]=> string(0) "" } } ["news"]=> array(6) { ["distribution"]=> array(3) { ["from_name"]=> string(0) "" ["from_email"]=> string(0) "" ["subject"]=> string(0) "" } ["items_on_master_page"]=> string(1) "5" ["items_per_page"]=> string(2) "10" ["split"]=> string(2) "50" ["preview_size"]=> string(2) "96" ["date_format"]=> string(17) "%d.%m.%Y в %H:%i" } ["general"]=> array(1) { ["redirect"]=> string(0) "" } ["market"]=> array(10) { ["auto_residue"]=> string(0) "" ["force_listing"]=> string(10) "categories" ["split_description"]=> string(1) "0" ["market_cats_pagination"]=> array(5) { ["cat_fill_lvl"]=> string(2) "-1" ["categories_per_page"]=> string(2) "10" ["lastStep"]=> string(0) "" ["showAll"]=> string(0) "" ["stepLimit"]=> string(2) "10" } ["market_currency"]=> array(3) { ["currency_not_set"]=> string(19) "по запросу" ["show_previous"]=> string(6) "always" ["money_format"]=> string(46) "decimals=0 dec_point = '.' thousands_sep = ' '" } ["market_goods_pagination"]=> array(5) { ["goods_per_page"]=> string(2) "10" ["lastStep"]=> string(0) "" ["sortable"]=> string(0) "" ["showAll"]=> string(0) "" ["stepLimit"]=> string(2) "10" } ["market_menu"]=> array(5) { ["mark_active"]=> string(1) "1" ["grouping"]=> string(4) "%c%g" ["menu_class"]=> string(9) "menu_list" ["menu_item_class"]=> string(15) "menu_item_class" ["menu_max_level"]=> string(1) "1" } ["market_search_form"]=> array(3) { ["show_categories"]=> string(8) "checkbox" ["show_manufacturers"]=> string(8) "checkbox" ["show_series"]=> string(8) "checkbox" } ["order_required"]=> array(12) { ["email"]=> string(1) "1" ["address"]=> string(1) "1" ["city"]=> string(1) "1" ["house"]=> string(1) "1" ["name"]=> string(1) "1" ["apartment"]=> string(1) "1" ["build"]=> string(1) "1" ["fathername"]=> string(1) "1" ["index"]=> string(1) "1" ["phone"]=> string(1) "1" ["street"]=> string(1) "1" ["surname"]=> string(1) "1" } ["ya_market"]=> array(5) { ["url"]=> string(0) "" ["name"]=> string(0) "" ["company"]=> string(0) "" ["residue"]=> string(1) "0" ["publish"]=> string(1) "1" } } ["market_pictures"]=> array(3) { ["default_picture"]=> string(0) "" ["default_in_gallery"]=> string(1) "0" ["watermark"]=> array(11) { ["watermark"]=> string(0) "" ["height"]=> string(0) "" ["angle"]=> string(1) "0" ["opacity"]=> string(3) "100" ["pos_x"]=> string(2) "10" ["pos_y"]=> string(2) "10" ["position"]=> string(6) "center" ["set_category"]=> string(1) "1" ["set_manufacturers"]=> string(1) "0" ["set_goods"]=> string(1) "1" ["width"]=> string(0) "" } } ["payments"]=> array(1) { ["robokassa"]=> array(3) { ["login"]=> string(0) "" ["password_1"]=> string(0) "" ["password_2"]=> string(0) "" } } } var_dump($options->get('news')); array(6) { ["distribution"]=> array(3) { ["from_name"]=> string(0) "" ["from_email"]=> string(0) "" ["subject"]=> string(0) "" } ["items_on_master_page"]=> string(1) "5" ["items_per_page"]=> string(2) "10" ["split"]=> string(2) "50" ["preview_size"]=> string(2) "96" ["date_format"]=> string(17) "%d.%m.%Y в %H:%i" } var_dump($options->get('news', 'items_per_page')); string(2) "10"