Просмотр исходного кода

#159 studio launcher tour: translations, help button, highlighting + shading

Alex Trofimov 11 лет назад
Родитель
Сommit
e14dfbbfc5

+ 3 - 3
inc/utils.inc.php

@@ -689,10 +689,10 @@ function bx_js_string ($mixedInput, $iQuoteType = BX_ESCAPE_STR_AUTO)
         $aUnits['<script'] = '<scr" + "ipt';
         $aUnits['</script>'] = '</scr" + "ipt>';
     } else {
-        $aUnits['"'] = '&quote;';
+        $aUnits['"'] = '&quot;';
         $aUnits["'"] = '&apos;';
-        $aUnits["<"] = '&lt;';
-        $aUnits[">"] = '&gt;';
+        $aUnits["<script>"] = '&lt;script&gt;';
+        $aUnits["</script>"] = '&lt;/script&gt;';
     }
     return str_replace(array_keys($aUnits), array_values($aUnits), $mixedInput);
 }

+ 29 - 0
modules/boonex/english/data/langs/system/en.xml

@@ -1216,6 +1216,7 @@
 	<string name="_adm_tmi_cpt_favorite"><![CDATA[Show Favorite Only]]></string>
 	<string name="_adm_tmi_cpt_logout"><![CDATA[Sign out]]></string>
 	<string name="_adm_tmi_cpt_site"><![CDATA[Go To Site]]></string>
+	<string name="_adm_tmi_cpt_tour"><![CDATA[Tour]]></string>
 	<string name="_adm_txt_back_to_launcher"><![CDATA[Back to Launcher]]></string>
 	<string name="_adm_txt_confirm_cancel"><![CDATA[Cancel]]></string>
 	<string name="_adm_txt_confirm_ok"><![CDATA[OK]]></string>
@@ -1441,6 +1442,7 @@ If it is not enabled then please consider implement this optimization, since it
 	<string name="_sys_designbox_13"><![CDATA[Content + background + padding]]></string>
 	<string name="_sys_designbox_2"><![CDATA[Empty box]]></string>
 	<string name="_sys_designbox_3"><![CDATA[Content + background]]></string>
+	<string name="_sys_done"><![CDATA[Done]]></string>    
 	<string name="_sys_et_txt_about_us"><![CDATA[About us]]></string>
 	<string name="_sys_et_txt_body_admin_email"><![CDATA[<bx_include_auto:_email_header.html />
 <p>Hello,</p>
@@ -1994,6 +1996,33 @@ If it is not enabled then please consider implement this optimization, since it
 	<string name="_sys_storage_restriction_size"><![CDATA[Maximum file size limit is {0}]]></string>
 	<string name="_sys_switch_profile"><![CDATA[Switch profile]]></string>
 	<string name="_sys_submit"><![CDATA[Submit]]></string>
+
+	<string name="_sys_tour_launcher_welcome_title"><![CDATA[Welcome to Trident Studio!]]></string>
+	<string name="_sys_tour_launcher_welcome_txt"><![CDATA[Studio is where you customise your site; add and manage apps; control languages and design; set membership levels and permissions; build pages and navigation, and a lot more. You are now in Studio Launcher.]]></string>
+	<string name="_sys_tour_launcher_apps_title"><![CDATA[Add and manage Apps]]></string>
+	<string name="_sys_tour_launcher_apps_txt"><![CDATA[Apps are modules, languages, tools, templates - all the bits and pieces that make your site unique. You can download and install Apps and they will appear in Studio Launcher. Apps add and change functionality of your site.]]></string>
+	<string name="_sys_tour_launcher_designer_title"><![CDATA[Start making your site special]]></string>
+	<string name="_sys_tour_launcher_designer_txt"><![CDATA[Designer is the best place to start customisation. Change the site logo, choose design template and manage the “Cover Page”. Your site now shows Cover Page to all guest visitors. You can either customise it to turn it off to display a full homepage with content of your choice.]]></string>
+	<string name="_sys_tour_launcher_dashboard_title"><![CDATA[One look and you know it]]></string>
+	<string name="_sys_tour_launcher_dashboard_txt"><![CDATA[Dashboard gives a quick overview of the site status. Trident version, space usage, hosting tools and cache.  Different Apps will add their blocks to Dashboard.]]></string>
+	<string name="_sys_tour_launcher_builder_page_title"><![CDATA[Build your site the way you want it]]></string>
+	<string name="_sys_tour_launcher_builder_page_txt"><![CDATA[Pages allow you to edit the site by rearranging, adding and removing blocks on site pages. You can even create new custom pages of different types. You can also control visibility settings, SEO data, cacheing and page layouts.]]></string>
+	<string name="_sys_tour_launcher_builder_permissions_title"><![CDATA[Define who can do what]]></string>
+	<string name="_sys_tour_launcher_builder_permissions_txt"><![CDATA[Create and edit Membership Levels and associated Actions permissions.]]></string>
+	<string name="_sys_tour_launcher_builder_forms_title"><![CDATA[Form and re-form your forms]]></string>
+	<string name="_sys_tour_launcher_builder_forms_txt"><![CDATA[Forms builder is powerful tool that allows deep customisation of site database and forms. You can create and mange data lists, form fields and even display types (like Add/Edit/Delete). Your Forms will define the structure and theme of the site.]]></string>
+	<string name="_sys_tour_launcher_builder_menus_title"><![CDATA[Show them around]]></string>
+	<string name="_sys_tour_launcher_builder_menus_txt"><![CDATA[Add and manage site navigation menus. You can edit links, re-order them, add new ones, change icons and control visibility according to membership permissions.]]></string>
+	<string name="_sys_tour_launcher_polyglot_title"><![CDATA[Speak their language]]></string>
+	<string name="_sys_tour_launcher_polyglot_txt"><![CDATA["If you talk to a man in a language he understands, that goes to his head. If you talk to him in his language, that goes to his heart." Polyglot allows you to set site language and data format, edit site texts in all installed languages and even translate email templates.]]></string>
+	<string name="_sys_tour_launcher_reorganize_title"><![CDATA[Move the Apps around]]></string>
+	<string name="_sys_tour_launcher_reorganize_txt"><![CDATA[Activate reorganisation mode to rearrange Apps in Launcher or delete inactive ones altogether.]]></string>
+	<string name="_sys_tour_launcher_favourites_title"><![CDATA[Choose wisely]]></string>
+	<string name="_sys_tour_launcher_favourites_txt"><![CDATA[Your Studio may have hundreds of installed Apps. Choose the ones you access most often and use the Star to bring them up.]]></string>
+	<string name="_sys_tour_launcher_add_apps_title"><![CDATA[Now DO add new Apps!]]></string>
+	<string name="_sys_tour_launcher_add_apps_txt"><![CDATA[Trident comes with only a handful of core Apps. Choose, download and install Apps to add profiles types, modules, system tools, plugins, languages and design templates. You can activate and deactivate installed Apps. Trident is super-modular and incredibly flexible, letting you choose your own combination of functionality, settings and database structure to make the social site of your dreams real. Even without changing anything you will have the perfectly functioning social site!]]></string>
+
+
 	<string name="_sys_txt_access_denied"><![CDATA[Access denied]]></string>
 	<string name="_sys_txt_account_pending"><![CDATA[Your account is pending approval, please wait until it is activated.]]></string>
 	<string name="_sys_txt_account_profile_context_change_suggestion"><![CDATA[This is your profile, you can <a href="{0}">change your current profile</a> to this profile]]></string>

+ 35 - 6
modules/boonex/russian/data/langs/system/ru.xml

@@ -839,7 +839,7 @@
 	<string name="_adm_mod_err_process_operation_failed"><![CDATA[Невозможно {0} модуль из "{1}" директории]]></string>
 	<string name="_adm_mod_msg_process_operation_scheduled"><![CDATA[Операция добавлена в очередь и будет выполнена через несколько минут. Пожалуйста, подождите.]]></string>
 	<string name="_adm_msg_modules_success_added_to_cart"><![CDATA[Товар был успешно добавлен в корзину.]]></string>
-	<string name="_adm_msg_modules_success_checkouted"><![CDATA[Оплата успешно принята и будет автоматически обработана через несколько минут. Затем приобретённые товары будут доступны в меню Расширения -> Покупки. Если по какой-то причине этого не произошло, пожалуйста свяжитесь с продавцом товара, предоставив ему детали транзакции.]]></string>
+	<string name="_adm_msg_modules_success_checkouted"><![CDATA[Оплата успешно принята и будет автоматически обработана через несколько минут. Затем приобретённые товары будут доступны в меню Приложения -> Покупки. Если по какой-то причине этого не произошло, пожалуйста свяжитесь с продавцом товара, предоставив ему детали транзакции.]]></string>
 	<string name="_adm_msg_modules_success_delete"><![CDATA[Пакет удачно удалён]]></string>
 	<string name="_adm_msg_modules_success_disable"><![CDATA[Пакет удачно отключён]]></string>
 	<string name="_adm_msg_modules_success_enable"><![CDATA[Пакет удачно подключён]]></string>
@@ -969,7 +969,7 @@
 	<string name="_adm_page_cpt_login"><![CDATA[Войти]]></string>
 	<string name="_adm_page_cpt_polyglot"><![CDATA[Полиглот]]></string>
 	<string name="_adm_page_cpt_settings"><![CDATA[Настройки]]></string>
-	<string name="_adm_page_cpt_store"><![CDATA[Расширения]]></string>
+	<string name="_adm_page_cpt_store"><![CDATA[Приложения]]></string>
 	<string name="_adm_pgt_btn_add_new_key"><![CDATA[Создать Новый Ключ]]></string>
 	<string name="_adm_pgt_btn_delete"><![CDATA[Удалить]]></string>
 	<string name="_adm_pgt_btn_delete_title"><![CDATA[Удалить ключ]]></string>
@@ -1186,9 +1186,9 @@
 	<string name="_adm_str_err_no_product_info"><![CDATA[Невозможно загрузить информацию о товаре. Попробуйте позднее.]]></string>
 	<string name="_adm_str_err_wrong_package_format"><![CDATA[Неверный формат пакета.]]></string>
 	<string name="_adm_str_err_zip_not_available"><![CDATA[ZIP-библиотека не доступна.]]></string>
-	<string name="_adm_str_msg_download_scheduled"><![CDATA[Закачка добавлена в очередь. Через несколько минут закачанный пакет будет доступен в  Расширения -> Скачанные.]]></string>
+	<string name="_adm_str_msg_download_scheduled"><![CDATA[Закачка добавлена в очередь. Через несколько минут закачанный пакет будет доступен в  Приложения -> Скачанные.]]></string>
 	<string name="_adm_str_msg_download_and_install_scheduled"><![CDATA[Закачка и последующая установка добавлены в очередь. Это может занять несколько минут.]]></string>
-	<string name="_adm_str_msg_download_successfully"><![CDATA[Закачка удачно завершена. Вы можете установить модуль через Расширения -> Скачанные.]]></string>
+	<string name="_adm_str_msg_download_successfully"><![CDATA[Закачка удачно завершена. Вы можете установить модуль через Приложения -> Скачанные.]]></string>
 	<string name="_adm_str_msg_download_and_install_successfully"><![CDATA[Закачка и последующая установка удачно завершены.]]></string>
 	<string name="_adm_str_txt_discount_csign"><![CDATA[({0}{1} для Премиум)]]></string>
 	<string name="_adm_str_txt_items_by"><![CDATA[элементов от]]></string>
@@ -1212,10 +1212,11 @@
 	<string name="_adm_str_txt_pv_version_mask"><![CDATA[{0} ({1} доступно)]]></string>
 	<string name="_adm_str_txt_update_from_to"><![CDATA[{0} - {1}]]></string>
 	<string name="_adm_tmi_cpt_edit"><![CDATA[Управление Загрузчиком]]></string>
-	<string name="_adm_tmi_cpt_extensions"><![CDATA[Добавить Расширения]]></string>
+	<string name="_adm_tmi_cpt_extensions"><![CDATA[Добавить Приложения]]></string>
 	<string name="_adm_tmi_cpt_favorite"><![CDATA[Показывать только Любимые]]></string>
 	<string name="_adm_tmi_cpt_logout"><![CDATA[Выйти]]></string>
 	<string name="_adm_tmi_cpt_site"><![CDATA[Перейти на сайт]]></string>
+	<string name="_adm_tmi_cpt_tour"><![CDATA[Инструкции]]></string>
 	<string name="_adm_txt_back_to_launcher"><![CDATA[Назад к Загрузчику]]></string>
 	<string name="_adm_txt_confirm_cancel"><![CDATA[Отменить]]></string>
 	<string name="_adm_txt_confirm_ok"><![CDATA[OK]]></string>
@@ -1287,7 +1288,7 @@
 	<string name="_adm_wgt_cpt_designer"><![CDATA[Дизайнер]]></string>
 	<string name="_adm_wgt_cpt_polyglot"><![CDATA[Полиглот]]></string>
 	<string name="_adm_wgt_cpt_settings"><![CDATA[Настройки]]></string>
-	<string name="_adm_wgt_cpt_store"><![CDATA[Расширения]]></string>
+	<string name="_adm_wgt_cpt_store"><![CDATA[Приложения]]></string>
 	<string name="_are you sure?"><![CDATA[Вы уверены?]]></string>
 	<string name="_cmt_block_comments_title"><![CDATA[Комментарии ({0})]]></string>
 	<string name="_cmt_browse_all"><![CDATA[Все]]></string>
@@ -1441,6 +1442,7 @@
 	<string name="_sys_designbox_13"><![CDATA[Содержимое + фон + отступ]]></string>
 	<string name="_sys_designbox_2"><![CDATA[Пустой квадратик]]></string>
 	<string name="_sys_designbox_3"><![CDATA[Содержимое + фон]]></string>
+	<string name="_sys_done"><![CDATA[Готово]]></string>
 	<string name="_sys_et_txt_about_us"><![CDATA[О нас]]></string>
 	<string name="_sys_et_txt_body_admin_email"><![CDATA[<bx_include_auto:_email_header.html />
 <p>Привет,</p>
@@ -1994,6 +1996,33 @@
 	<string name="_sys_storage_restriction_size"><![CDATA[Максимальный разрешённый размер файла {0}]]></string>
 	<string name="_sys_switch_profile"><![CDATA[Переключить профиль]]></string>
 	<string name="_sys_submit"><![CDATA[Выполнить]]></string>
+
+
+	<string name="_sys_tour_launcher_welcome_title"><![CDATA[Добро пожаловать в Trident Студию!]]></string>
+	<string name="_sys_tour_launcher_welcome_txt"><![CDATA[Студия это место, где можно настроить свой сайт: добавлять приложения и управлять ими; управлять языками и изменять дизайн; контролировать уровни доступа для пользователей; настраивать страницы и навигацию, а также многое другое. Текущая страница - стартовый экран Студии.]]></string>
+	<string name="_sys_tour_launcher_apps_title"><![CDATA[Добавь новые приложения]]></string>
+	<string name="_sys_tour_launcher_apps_txt"><![CDATA[Приложения это модули, языковые переводы, инструменты, различные дизайны сайта - кирпичики из которых складывается твой уникальный сайт. После скачивания и установки проложения, оно появляется на этой страничке. Приложения дополняют и изменяют функциональность сайта.]]></string>
+	<string name="_sys_tour_launcher_designer_title"><![CDATA[Сделай сайт особенным]]></string>
+	<string name="_sys_tour_launcher_designer_txt"><![CDATA[Дизайнер - это лучшее место, чтобы начать изменять свой сайт. Поменяйте логотоп сайта, выберете дизайн и отредактируйте "Обложку сайта". Сайт сейчас показывает "Обложку" для всех гостей сайта. Можно отредактировать её, или просто отключить, тогда гостям будет показываться полноценная главная страница, как для зарегестрированных пользователей.]]></string>
+	<string name="_sys_tour_launcher_dashboard_title"><![CDATA[Основная информация под рукой]]></string>
+	<string name="_sys_tour_launcher_dashboard_txt"><![CDATA["Приборная панель" показывает основную информацию о сайте: версию Trident, использование места, инструменты хостинга и кэш. Различные проложения могут добавлять свои блоки на эту страничку.]]></string>
+	<string name="_sys_tour_launcher_builder_page_title"><![CDATA[Перестрой свой сайт под себя]]></string>
+	<string name="_sys_tour_launcher_builder_page_txt"><![CDATA[Построитель страниц позволяет редактировать страницы перемещая, удаляя и добавляя секции на конкретной странице. Можно даже создавать новые страницы различного вида. Также можно контролировать доступ к странице, поисковую оптимизацию, кэш и дизайн страницы.]]></string>
+    <string name="_sys_tour_launcher_builder_permissions_title"><![CDATA[Определи уровни доступа пользователей]]></string>
+    <string name="_sys_tour_launcher_builder_permissions_txt"><![CDATA[Возможно редактировать уровни доступа для членств и создавать новые членства.]]></string>
+	<string name="_sys_tour_launcher_builder_forms_title"><![CDATA[Формируй и переформируй формы]]></string>
+	<string name="_sys_tour_launcher_builder_forms_txt"><![CDATA[Построитель форм это мощный инструмент, который позволяет менять формы сайта и базы данных. Возможно создавать списки, новые поля для форм и различные представления одной и той-же формы (такие как добавление, редактирование и др.). Формы определяют структуру и тему Вашего сайта.]]></string>
+	<string name="_sys_tour_launcher_builder_menus_title"><![CDATA[Показывай что угодно]]></string>
+	<string name="_sys_tour_launcher_builder_menus_txt"><![CDATA[Добавляй новые пункты в навигационное меню и меняй существующие. Возможно редактировать ссылки, передвигать их, менять иконки, а также контролировать видимость пунктов в зависимости от членства пользователя.]]></string>
+	<string name="_sys_tour_launcher_polyglot_title"><![CDATA[Говори на их языке]]></string>
+	<string name="_sys_tour_launcher_polyglot_txt"><![CDATA["Величайшее богатство народа — его язык". Полиглот позволяет поменять язык сайта, формат даты и времени, редактировать слова и фразы для всех языков и даже редактировать шаблоны писем.]]></string>
+	<string name="_sys_tour_launcher_reorganize_title"><![CDATA[<i class="sys-icon move"></i> Реорганизуй приложения]]></string>
+	<string name="_sys_tour_launcher_reorganize_txt"><![CDATA[Активируй этот режим, чтобы передвигать приложения и удалять неактивные.]]></string>
+	<string name="_sys_tour_launcher_favourites_title"><![CDATA[<i class="sys-icon star"></i> Выбери лучшие]]></string>
+	<string name="_sys_tour_launcher_favourites_txt"><![CDATA[В Студии может быть сотни приложений, выбери те, которыми пользуешся чаще всего. Их можно отфильтровать нажав на иконку звезды.]]></string>
+	<string name="_sys_tour_launcher_add_apps_title"><![CDATA[<i class="sys-icon plus"></i> А сейчас, добавь новые приложения!]]></string>
+	<string name="_sys_tour_launcher_add_apps_txt"><![CDATA[В Trident уже входят самые необходимые приложения. Выбери нужные, скачай и затем проинсталлируй приложения, чтобы добавить разные виды профайлов, модулей, системных утилит, языков и дизайнов. Проинсталлированные приложения можно активировать и деактивировать. Trident очень гибкий и имеет модульную архитектуру, тем самым позволяя создать сайт мечты выбрав нужную функциональность, настройки и структуру базы данных. Но даже не меняя ничего вы получите прекрасно фунционирующий сайт!]]></string>
+
 	<string name="_sys_txt_access_denied"><![CDATA[Доступ запрещён]]></string>
 	<string name="_sys_txt_account_pending"><![CDATA[Ваш аккаунт ожидает одобрения, пожалуйста, дождитесь его активации.]]></string>
 	<string name="_sys_txt_account_profile_context_change_suggestion"><![CDATA[Это Ваш профиль, Вы можете <a href="{0}">изменить свой текущий профиль</a> на этот]]></string>

+ 7 - 0
studio/classes/BxDolStudioMenuTop.php

@@ -55,6 +55,13 @@ class BxDolStudioMenuTop extends BxDol
         $this->aItems[BX_DOL_STUDIO_MT_CENTER] = $iResult ? $aMatch[2] : '';
 
         $this->aItems[BX_DOL_STUDIO_MT_RIGHT] = array(
+            'tour' => array(
+                'name' => 'tour',
+                'icon' => 'question',
+                'link' => 'javascript:void(0);',
+                'onclick' => 'glTour.start()',
+                'title' => '_adm_tmi_cpt_tour'
+            ),
             'site' => array(
                 'name' => 'site',
                 'icon' => 'home',

+ 14 - 0
studio/template/css/launcher.css

@@ -257,3 +257,17 @@ div.bx-std-widget-caption a {
 html .shepherd-step.shepherd-theme-default .shepherd-content footer .shepherd-buttons li .shepherd-button {
     background: #55a892; 
 }
+
+body.shepherd-active #bx-std-menu-top-center,
+body.shepherd-active .bx-menu-toolbar li,
+body.shepherd-active .bx-std-widget-cont {
+    -moz-opacity: 0.3;
+    -khtml-opacity: 0.3;
+    opacity: 0.3;
+}
+body.shepherd-active .bx-menu-toolbar li.shepherd-enabled,
+body.shepherd-active .bx-std-widget-cont.shepherd-enabled {
+    -moz-opacity: 1;
+    -khtml-opacity: 1;
+    opacity: 1;
+}

+ 1 - 1
studio/template/launcher.html

@@ -8,4 +8,4 @@ var __js_object__ = new BxDolStudioLauncher({
 __includes__
 <div class="bx-std-launcher">__items__</div>
 <div class="bx-std-cb"></div>
-<bx_include_auto:tour_launcher.html />
+<bx_include_auto:launcher_tour.html />

+ 110 - 0
studio/template/launcher_tour.html

@@ -0,0 +1,110 @@
+<script defer type="text/javascript">
+<!--    
+    var a = [{
+            id: 'tour-welcome',
+            title: '<bx_text_js:_sys_tour_launcher_welcome_title />',
+            text: '<bx_text_js:_sys_tour_launcher_welcome_txt />',
+            sel: null
+        },{
+            id: 'tour-apps',
+            title: '<bx_text_js:_sys_tour_launcher_apps_title />',
+            text: '<bx_text_js:_sys_tour_launcher_apps_txt />',
+            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=store])').get(0), on:'bottom'}
+        },{
+            id: 'tour-designer',
+            title: '<bx_text_js:_sys_tour_launcher_designer_title />',
+            text: '<bx_text_js:_sys_tour_launcher_designer_txt />',
+            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=designer])').get(0), on:'bottom'}
+        },{
+            id: 'tour-dashboard',
+            title: '<bx_text_js:_sys_tour_launcher_dashboard_title />',
+            text: '<bx_text_js:_sys_tour_launcher_dashboard_txt />',
+            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=dashboard])').get(0), on:'bottom'}
+        },{
+            id: 'tour-builder_page',
+            title: '<bx_text_js:_sys_tour_launcher_builder_page_title />',
+            text: '<bx_text_js:_sys_tour_launcher_builder_page_txt />',
+            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=builder_page])').get(0), on:'bottom'}
+        },{
+            id: 'tour-builder_permission',
+            title: '<bx_text_js:_sys_tour_launcher_builder_permissions_title />',
+            text: '<bx_text_js:_sys_tour_launcher_builder_permissions_txt />',
+            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=builder_permission])').get(0), on:'bottom'}
+        },{
+            id: 'tour-builder_forms',
+            title: '<bx_text_js:_sys_tour_launcher_builder_forms_title />',
+            text: '<bx_text_js:_sys_tour_launcher_builder_forms_txt />',
+            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=builder_forms])').get(0), on:'bottom'}
+        },{
+            id: 'tour-builder_menu',
+            title: '<bx_text_js:_sys_tour_launcher_builder_menus_title />',
+            text: '<bx_text_js:_sys_tour_launcher_builder_menus_txt />',
+            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=builder_menu])').get(0), on:'bottom'}
+        },{
+            id: 'tour-polyglot',
+            title: '<bx_text_js:_sys_tour_launcher_polyglot_title />',
+            text: '<bx_text_js:_sys_tour_launcher_polyglot_txt />',
+            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=polyglot])').get(0), on:'bottom'}
+        },/*{
+            id: 'tour-bx_accounts',
+            title: 'You are more than Admin',
+            text: 'Trident content and profiles are controlled by Admins and Moderators right on the site front-end, so you don’t have to worry about that in Studio. You do need to appoint your Admins and Moderators, though. And this is where you do it. If you also want to be the site Admin, just create your profile use “Set Membership” to upgrade it.',
+            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=bx_accounts])').get(0), on:'bottom'}
+        },*/{
+            id: 'tour-reorganize',
+            title: '<bx_text_js:_sys_tour_launcher_reorganize_title />',
+            text: '<bx_text_js:_sys_tour_launcher_reorganize_txt />',
+            sel: '.bx-menu-tab-edit right'
+        },{
+            id: 'tour-favourites',
+            title: '<bx_text_js:_sys_tour_launcher_favourites_title />',
+            text: '<bx_text_js:_sys_tour_launcher_favourites_txt />',
+            sel: '.bx-menu-tab-favorite right'
+        },{
+            id: 'tour-add-apps',
+            title: '<bx_text_js:_sys_tour_launcher_add_apps_title />',
+            text: '<bx_text_js:_sys_tour_launcher_add_apps_txt />',
+            sel: '.bx-menu-tab-extensions right'
+        }
+    ];
+
+    glTour = new Shepherd.Tour({
+        defaults: {
+            classes: 'shepherd-theme-__tour_theme__ bx-def-z-index-modal',
+            showCancelLink: true,
+            scrollTo: true
+        }
+    });
+
+    Shepherd.on('cancel', function () {
+        $.cookie('launcher-tour-hidden', 1, {expires: 9999});
+    });
+
+    for (var i=0 ; i<a.length ; i++) {
+        var aBtns = []
+        if (0 == i || i == (a.length - 1))
+            aBtns.push({
+                text: 0 == i ? '<bx_text_js:_sys_exit />' : '<bx_text_js:_sys_done />',
+                action: glTour.cancel,
+                classes: 0 == i ? 'shepherd-button-secondary' : 'shepherd-button-example-primary'
+            });
+
+        if (i != (a.length - 1))
+            aBtns.push({
+                text: '<bx_text_js:_sys_next />',
+                action: glTour.next,
+                classes: 'shepherd-button-example-primary'
+            });
+
+        glTour.addStep(a[i].id, {
+            title: a[i].title,
+            text: a[i].text,
+            attachTo: a[i].sel,
+            buttons: aBtns
+        });
+    }
+
+    if (!$.cookie('launcher-tour-hidden'))
+        glTour.start();
+-->
+</script>

+ 0 - 105
studio/template/tour_launcher.html

@@ -1,105 +0,0 @@
-<script defer type="text/javascript">
-<!--    
-    var a = [{
-            id: 'tour-welcome',
-            title: 'Welcome to Trident Studio!',
-            text: 'Studio is where you customise your site; add and manage apps; control languages and design; set membership levels and permissions; build pages and navigation, and a lot more. You are now in Studio Launcher.',
-            sel: null
-        },{
-            id: 'tour-apps',
-            title: '<bx_text_js:_adm_wgt_cpt_store />',
-            text: '<b>Add and manage Apps</b><br />Apps are modules, languages, tools, templates - all the bits and pieces that make your site unique. You can download and install Apps and they will appear in Studio Launcher. Apps add and change functionality of your site.',
-            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=store])').get(0), on:'bottom'}
-        },{
-            id: 'tour-designer',
-            title: '<bx_text_js:_adm_wgt_cpt_designer />',
-            text: '<b>Start making your site special</b><br />Designer is the best place to start customisation. Change the site logo, choose design template and manage the “Cover Page”. Your site now shows Cover Page to all guest visitors. You can either customise it to turn it off to display a full homepage with content of your choice.',
-            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=designer])').get(0), on:'bottom'}
-        },{
-            id: 'tour-dashboard',
-            title: '<bx_text_js:_adm_wgt_cpt_dashboard />',
-            text: '<b>One look and you know it</b><br />Dashboard gives a quick overview of the site status. Trident version, space usage, hosting tools and cache.  Different Apps will add their blocks to Dashboard.',
-            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=dashboard])').get(0), on:'bottom'}
-        },{
-            id: 'tour-builder_page',
-            title: '<bx_text_js:_adm_wgt_cpt_builder_pages />',
-            text: '<b>Build your site the way you want it</b><br />Pages allow you to edit the site by rearranging, adding and removing blocks on site pages. You can even create new custom pages of different types. You can also control visibility settings, SEO data, cacheing and page layouts.',
-            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=builder_page])').get(0), on:'bottom'}
-        },{
-            id: 'tour-builder_permission',
-            title: '<bx_text_js:_adm_wgt_cpt_builder_permissions />',
-            text: '<b>Define who can do what</b><br />Create and edit Membership Levels and associated Actions permissions.',
-            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=builder_permission])').get(0), on:'bottom'}
-        },{
-            id: 'tour-builder_forms',
-            title: '<bx_text_js:_adm_wgt_cpt_builder_forms />',
-            text: '<b>Form and re-form your forms</b><br />Forms builder is powerful tool that allows deep customisation of site database and forms. You can create and mange data lists, form fields and even display types (like Add/Edit/Delete). Your Forms will define the structure and theme of the site.',
-            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=builder_forms])').get(0), on:'bottom'}
-        },{
-            id: 'tour-builder_menu',
-            title: '<bx_text_js:_adm_wgt_cpt_builder_menus />',
-            text: '<b>Show them around</b><br />Add and manage site navigation menus. You can edit links, re-order them, add new ones, change icons and control visibility according to membership permissions.',
-            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=builder_menu])').get(0), on:'bottom'}
-        },{
-            id: 'tour-polyglot',
-            title: '<bx_text_js:_adm_wgt_cpt_polyglot />',
-            text: '<b>Speak their language</b><br />"If you talk to a man in a language he understands, that goes to his head. If you talk to him in his language, that goes to his heart." Polyglot allow you to set site language and data format, edit site texts in all installed languages and even translate email templates.',
-            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=polyglot])').get(0), on:'bottom'}
-        },{
-            id: 'tour-bx_accounts',
-            title: '<bx_text_js:_bx_accnt />',
-            text: '<b>You are more than Admin</b><br />Trident content and profiles are controlled by Admins and Moderators right on the site front-end, so you don’t have to worry about that in Studio. You do need to appoint your Admins and Moderators, though. And this is where you do it. If you also want to be the site Admin, just create your profile use “Set Membership” to upgrade it.',
-            sel: {element:$('.bx-std-widget-cont:has(.bx-std-widget-link[href*=bx_accounts])').get(0), on:'bottom'}
-        },{
-            id: 'tour-reorganize',
-            title: '<i class="sys-icon move"></i> Move the Apps around',
-            text: 'Activate reorganisation mode to rearrange Apps in Launcher or delete inactive ones altogether.',
-            sel: '.bx-menu-tab-edit right'
-        },{
-            id: 'tour-favourites',
-            title: '<i class="sys-icon star"></i> Choose wisely',
-            text: 'Your Studio may have hundreds of installed Apps. Choose the ones your access most often and use the Star to bring them up.',
-            sel: '.bx-menu-tab-favorite right'
-        },{
-            id: 'tour-add-apps',
-            title: '<i class="sys-icon plus"></i> Now DO add new Apps!',
-            text: 'Trident comes with only a handful of core Apps. Choose, download and install Apps to add profiles types, modules, system tools, plugins, languages and design templates. You can activate and deactivate installed Apps. Trident is super-modular and incredibly flexible, letting you choose your own combination of functionality, settings and database structure to make the social site of your dreams real.',
-            sel: '.bx-menu-tab-extensions right'
-        }
-    ];
-
-    var oTour = new Shepherd.Tour({
-        defaults: {
-            classes: 'shepherd-theme-__tour_theme__ bx-def-z-index-modal',
-            showCancelLink: true,
-            scrollTo: true
-        }
-    });
-
-    for (var i=0 ; i<a.length ; i++) {
-        var aBtns = []
-        if (0 == i || i == (a.length - 1))
-            aBtns.push({
-                text: '<bx_text_js:_sys_exit />',
-                action: oTour.cancel,
-                classes: 0 == i ? 'shepherd-button-secondary' : 'shepherd-button-example-primary'
-            });
-
-        if (i != (a.length - 1))
-            aBtns.push({
-                text: '<bx_text_js:_sys_next />',
-                action: oTour.next,
-                classes: 'shepherd-button-example-primary'
-            });
-
-        oTour.addStep(a[i].id, {
-            title: a[i].title,
-            text: a[i].text,
-            attachTo: a[i].sel,
-            buttons: aBtns
-        });
-    }
-
-    oTour.start();
--->
-</script>