Skip to content

Instantly share code, notes, and snippets.

@geff21st
Created May 7, 2018 08:22
Show Gist options
  • Save geff21st/aa4ee371e77c6a07e4b4fac852571d41 to your computer and use it in GitHub Desktop.
Save geff21st/aa4ee371e77c6a07e4b4fac852571d41 to your computer and use it in GitHub Desktop.
<?php
// Выводит список доступных иконок для меню
$arr = [
'fav_menu_icon',
'iblock_menu_icon_iblocks',
'fileman_menu_icon',
'clouds_menu_icon',
'iblock_menu_icon_types',
'smile_menu_icon',
'rating_menu_icon',
'support_menu_icon',
'sonet_menu_icon',
'forum_menu_icon',
'bizproc_menu_icon',
'blog_menu_icon',
'mail_menu_icon',
'sale_menu_icon_orders',
'sale_menu_icon_crm',
'sale_menu_icon_statistic',
'sale_menu_icon_buyers',
'sale_menu_icon_store',
'sale_menu_icon_bigdata',
'update_menu_icon_partner',
'update_menu_icon',
'user_menu_icon',
'search_menu_icon',
'security_menu_icon',
'currency_menu_icon',
'ldap_menu_icon',
'translate_menu_icon',
'cluster_menu_icon',
'sys_menu_icon',
'util_menu_icon',
'perfmon_menu_icon',
'fileman_menu_icon_sections',
'main_menu_icon_folder',
'iblock_menu_icon_sections',
'workflow_menu_icon',
'highloadblock_menu_icon',
'iblock_menu_icon_settings',
'sale_menu_icon',
'sale_menu_icon_buyers_affiliate',
'sale_menu_icon_marketplace',
'update_marketplace',
'update_marketplace_modules',
'statistic_icon_online',
'statistic_icon_visitors',
'statistic_icon_searchers',
'default_menu_icon',
'statistic_icon_events',
'statistic_icon_traffic',
'statistic_icon_summary',
'statistic_icon_advert',
'statistic_icon_sites',
'fileman_sticker_icon',
'form_menu_icon',
'controller_menu_icon',
'vote_menu_icon',
'subscribe_menu_icon',
'advertising_menu_icon',
'xdimport_menu_icon',
'bitrixcloud_menu_icon',
'sale_menu_icon_catalog',
'xmpp_menu_icon',
'fav_menu_icon_yellow',
'extension_menu_icon',
'acct_customers_menu_icon',
'trade_catalog_menu_icon',
'learning_menu_icon',
'learning_icon_courses',
'learning_icon_lessons',
'learning_icon_chapters',
'learning_icon_certification',
'learning_icon_gradebook',
'learning_icon_attempts',
'learning_icon_export',
'learning_icon_question',
'learning_icon_tests',
'learning_icon_groups',
'seo_menu_icon',
'scale_menu_icon',
'sender_menu_icon',
'sender_trig_menu_icon',
'mobile_menu_icon',
'seo_adv_menu_icon',
'abtest_menu_icon',
'conversion_pulse_menu_icon',
'conversion_model_menu_icon',
'security_menu_ddos_icon',
'crm-cashbox-icon',
'promo_https_menu_icon',
];
$items = [];
foreach ($arr as $item) {
$items[] = array(
"text" => $item,
"icon" => $item,
"url" => "javascript:prompt('Скопируйте ID иконки', '{$item}');",
);
}
return array(
array(
"sort" => 10,
"section" => "Uplab",
"parent_menu" => "global_menu_content",
"icon" => "fav_menu_icon",
"page_icon" => "fav_menu_icon",
"text" => "Список иконок",
"url" => "javascript:void();",
"items_id" => "full_icons_list",
"items" => $items,
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment