소스 검색

Do things like the forums would suggest

Andy Baugh 6 년 전
부모
커밋
3ad12aa02a
1개의 변경된 파일11개의 추가작업 그리고 6개의 파일을 삭제
  1. 11 6
      notification-center/notification-center.tt

+ 11 - 6
notification-center/notification-center.tt

@@ -1,18 +1,23 @@
 [%
     USE Whostmgr;
+	USE JSON;
 
-    SET PAGE_BASE = '/cgi/addon_notification-center.cgi';
-    SET PAGE_PATH = cp_security_token _ PAGE_BASE _ '/';
-    SET BASE_URL = (Whostmgr.ENV.HTTPS == 'on' ? 'https://' : 'http://') _ Whostmgr.ENV.HTTP_HOST _ ':' _ Whostmgr.ENV.SERVER_PORT _ PAGE_PATH;
+	IF locale.get_html_dir_attr() == 'rtl';
+	SET rtl_bootstrap = Whostmgr.find_file_url('/3rdparty/bootstrap-rtl/optimized/dist/css/bootstrap-rtl.min.css');
+	END;
+
+	SET styleSheets = [
+	   rtl_bootstrap,
+	   '/libraries/fontawesome/css/font-awesome.min.css'
+	];
 
     WRAPPER 'master_templates/master.tmpl'
         app_key = 'Notification Center'
         header = locale.maketext('Notification Center')
         icon = '/addon_plugins/nfcenter.png'
-        breadcrumburl = PAGE_BASE
-        base = BASE_URL
+        breadcrumburl = '/cgi/addon_notification-center.cgi'
         theme = "bootstrap"
-        CJT2_EXCLUSIVE = 0
+		stylesheets = styleSheets
 %]
 
 <table id="notificationsTable" class="table table-striped responsive-table" border="1" cellspacing="0" cellpadding="2" >