Small tweak to the default template.
[elgg.git] / units / templates / default_template.php
blob54279922608a96c493c450b6b6a7b2f3fe90293b
1 <?php
2 global $CFG;
3 global $template;
4 global $template_definition;
5 $sitename = $CFG->sitename;
6 $url = url;
8 $template_definition[] = array(
9 'id' => 'css',
10 'name' => gettext("Stylesheet"),
11 'description' => gettext("The Cascading Style Sheet for the template."),
12 'glossary' => array(),
13 'display' => 1,
16 $template['css'] = <<< END
18 CSS for Elgg default
21 body{
22 padding: 0;
23 font-family: arial, verdana, helvetica, sans-serif;
24 color: #333;
25 background: #eee;
26 width:97%;
27 margin:auto;
28 font-size:80%;
31 a {
32 text-decoration: none;
33 color: #7289AF;
34 background: #fff;
35 font-family:verdana, arial, helvetica, sans-serif;
36 font-size:100%;
40 p {
41 font-size: 100%;
44 h1 {
45 margin:0px 0px 15px 0px;
46 padding:0px;
47 font-size:120%;
48 font-weight:900;
52 h2 {
53 margin:0px 0px 5px 0px;
54 padding:0px;
55 font-size:100%
59 h3 {
60 margin:0px 0px 5px 0px;
61 padding:0px;
62 font-size:100%
65 h4 {
66 margin:0px 0px 5px 0px;
67 padding:0px;
68 font-size:100%
71 h5 {
72 margin:0px 0px 5px 0px;
73 padding:0px;
74 color:#1181AA;
75 background:#fff;
76 font-size:100%
79 blockquote {
80 padding: 0 1pc 1pc 1pc;
81 border: 1px solid #ddd;
82 background-color: #F0F0F0;
83 color:#000;
84 background-image: url("{$CFG->wwwroot}_templates/double-quotes.png");
85 background-repeat: no-repeat;
86 background-position: -10px -7px;
89 /*---------------------------------------
90 Wraps the entire page
91 -----------------------------------------*/
93 #container {
94 margin: 0 auto;
95 text-align: center;
96 width: 100%;
97 min-width: 750px;
101 /*-----------------------------------------
102 TOP STATUS BAR
103 -------------------------------------------*/
105 #statusbar {
106 padding: 3px 0px 2px 0;
107 margin: 0px;
108 height:19px;
109 background:#eee;
110 color: #333;
111 font-size:85%;
114 #statusbar a {
115 color: #666;
116 background:#eee;
119 #welcome {
120 float: left;
123 #welcome p{
124 font-weight:bold;
125 font-size:110%;
126 padding:0 0 0 4px;
127 margin:0px;
130 #global_menuoptions {
131 text-align: right;
132 padding:0px;
133 margin:0px;
134 float:right;
137 #global_menuoptions ul {
138 margin: 0;
139 padding: 0;
142 #global_menuoptions li {
143 margin: 0;
144 padding: 0;
145 display: inline;
146 list-style-type: none;
147 border: none;
150 #global_menuoptions a {
151 text-decoration: none;
154 #global_menuoptions a:hover{
155 text-decoration:underline;
159 /*---------------------------------------------
160 HEADER
161 ------------------------------------------------*/
163 #header {
164 width: 100%;
165 background: #1181AA;
166 color:#fff;
167 border: 1px solid #ccc;
168 border-bottom: none;
169 padding: 0px;
170 margin: 0px;
171 text-align: left;
174 #header h1 {
175 padding: 0 0 4px 0;
176 margin: 7px 0 0 20px;
177 color: #FAC83D;
178 background: #1181AA;
179 text-align: left;
180 font-size:140%;
181 font-weight:normal;
184 #header h2 {
185 padding: 0 0 7px 0;
186 margin: 0 0 0 20px;
187 font-weight: normal;
188 color: #fff;
189 background: #1181AA;
190 border: none;
191 font-family: "Lucida Grande", arial, sans-serif;
192 font-size:120%;
195 /*--------------------------------------------
196 NAVIGATION
197 ----------------------------------------------*/
199 #navigation {
200 height: 19px;
201 margin: 0;
202 padding-left: 20px;
203 text-align:left;
206 #navigation li {
207 margin: 0;
208 padding: 0;
209 display: inline;
210 list-style-type: none;
211 border: none;
214 #navigation a:link, #navigation a:visited {
216 background: #eaeac7;
217 font-weight: normal;
218 padding: 4px 6px;
219 margin: 0 2px 0 0;
220 border: 0px solid #036;
221 text-decoration: none;
222 color: #333;
223 font-size:85%;
226 #navigation a:link.current, #navigation a:visited.current {
227 border-bottom: 1px solid #fff;
228 background: #fff;
229 color: #393;
230 font-weight: bold;
233 #navigation a:hover {
234 color: #000;
235 background: #ffc;
238 #navigation li a:hover{
239 background:#FCD63F;
240 color: #000;
244 /*-----------------------------------------------
245 SITE CONTENT WRAPPER
246 -------------------------------------------------*/
248 #content_holder {
249 margin: 0;
250 padding: 20px 0;
251 width: 100%;
252 text-align: left;
253 float: left;
254 border: 1px solid #ccc;
255 border-top: none;
256 background-color: #fff;
257 color:#000;
260 /*-------------------------------------------------
261 HOLDS THE MAIN CONTENT E.G. BLOG, PROFILE ETC
262 ----------------------------------------------------*/
264 #maincontent_container {
265 margin: 0;
266 padding: 5px;
267 text-align: left;
268 width: 65%;
269 float: left;
272 #maincontent_container h2 {
273 padding-bottom: 5px;
274 padding-top: 5px;
275 margin: 0;
276 /*color: #666;
277 background-color:#fff;*/
280 #maincontent_container h1 {
281 padding-bottom: 5px;
282 padding-top: 5px;
283 margin: 0;
284 color: #666;
285 background-color:#fff;
288 #maincontent_container h3 {
289 padding-bottom: 5px;
290 padding-top: 5px;
291 margin: 0;
292 /*color: #666;
293 background-color:#fff;*/
296 #Footer .performanceinfo {
297 color: #000;
300 /*-------------------------------------------------------------
301 THIS DISPLAYS THE ACTUAL CONTENT WITHIN maincontent_container
302 --------------------------------------------------------------*/
304 #maincontent_display {
305 margin: 0;
306 padding: 0 0 20px 20px;
307 width: 100%;
308 text-align: left;
309 float: left;
310 background-color: #fff;
311 color:#000;
314 #maincontent_display h1 {
315 padding-bottom: 2px;
316 border-bottom: 1px solid #666;
317 margin: 0;
318 font-size:130%;
319 color: #666;
320 background-color: #fff;
323 /*---- Sub Menu attributes ----*/
325 #maincontent_display #sub_menu {
326 font-family: verdana;
327 padding: 0px;
328 margin: 5px 0 20px 0;
329 color: #000;
330 background-color:#fff;
333 #maincontent_display #sub_menu a {
334 font-weight:bold;
335 margin:0px;
336 padding:0px;
339 #maincontent_display #sub_menu a:hover {
340 text-decoration: underline;
343 #maincontent_display #sub_menu p {
344 margin:0px;
345 padding:0px;
348 /*-----------------------------------------------------------------------
349 DIV's to help control look and feel - infoholder holds all the profile data
350 and is always located in within 'maincontentdisplay'
352 -------------------------------------------------------------------------*/
354 /*------ holds profile data -------*/
355 .infoholder {
356 border:1px;
357 border-color:#eee;
358 border-style:solid;
359 margin:0 0 5px 0;
362 .infoholder p {
363 padding:0 0 0 5px;
366 .infoholder .fieldname h2 {
367 border:0;
368 border-bottom:1px;
369 border-color:#eee;
370 border-style:solid;
371 padding:5px;
372 color:#666;
373 background:#fff;
376 .infoholder_twocolumn {
377 padding:4px;
378 border:1px;
379 border-color:#eee;
380 border-style:solid;
381 margin:0 0 10px 0;
384 .infoholder_twocolumn .fieldname h3{
385 color:#666;
386 background:#fff;
387 border:0px;
388 border-bottom:1px;
389 border-color:#eee;
390 border-style:solid;
393 /*----------- holds administration data---------*/
395 .admin_datatable {
396 border:1px;
397 border-color:#eee;
398 border-style:solid;
399 margin:0 0 5px 0;
402 .admin_datatable p {
403 padding:0px;
404 margin:0px;
407 .admin_datatable a {
412 .admin_datatable td {
413 text-align:left;
416 .admin_datatable h3{
417 color:#666;
418 background:#fff;
421 .admin_datatable h4 {
424 /*---- header plus one row of content ------*/
426 .databox_vertical {
427 background-color: #F9F9F9;
428 color:#000;
429 border:1px;
430 border-style:solid;
431 border-color:#DDD;
432 margin:0 0 5px 0;
433 padding:5px;
436 .databox_vertical p{
437 padding:0px;
438 margin:0px;
439 color:#1181AA;
440 background:#fff;
443 .databox_vertical .fieldname h3 {
444 padding:0px;
445 margin:0px;
446 color:#1181AA;
447 background:#fff;
450 /*------- holds file content ----*/
452 .filetable {
453 background-color: #F9F9F9;
454 color:#000;
455 border:1px;
456 border-style:solid;
457 border-color:#DDD;
458 margin:0 0 5px 0;
459 width:100%;
462 .filetable p{
463 padding:0px;
464 margin:0px;
465 color:#000; /*#1181AA;*/
466 background:#fff;
469 .filetable a{
474 .filetable table {
475 text-align:left;
478 #edit_files h4 {
483 /*------- holds fodler content ------*/
485 .foldertable {
486 background-color: #F9F9F9;
487 color:#000;
488 border:1px;
489 border-style:solid;
490 border-color:#DDD;
491 margin:0 0 5px 0;
492 width:100%;
495 .foldertable a{
499 .foldertable p{
500 padding:0px;
501 margin:0px;
502 color:#1181AA;
503 background:#fff;
506 .foldertable table {
507 text-align:left;
510 /*------- holds network data ------*/
512 .networktable {
517 /*-------------------------------------------
518 SIDEBAR CONTAINER
519 ---------------------------------------------*/
521 #sidebar_container {
522 margin: 0px;
523 text-align: left;
524 float: right;
525 width: 26%;
526 min-width: 100px;
527 border-left: 1px dotted #dcdcdc;
528 padding: 0 10px;
529 /*width:220px;*/
530 /*overflow: hidden;*/
533 /*-----------------------------------------
534 ACTUAL SIDEBAR CONTENT
535 -------------------------------------------*/
537 #sidebar {
538 min-width: 100px;
539 padding: 0 10px;
542 #sidebar ul {
543 margin: 0;
544 padding: 0;
545 list-style: none;
548 #sidebar ul li ul {
552 #sidebar ul li {
553 margin: 10px 0;
554 padding-left: 5px;
558 #sidebar h2 {
559 font-family: "Lucida Grande", arial, sans-serif;
560 font-weight: bold;
561 color: #333;
562 background:#fff;
563 margin: 20px 0 3px 0;
564 padding: 0;
565 border: none;
568 #sidebar h2 {
569 border-bottom: 1px solid #666;
572 /*-------------------------------------------
573 SIDEBAR DISPLAY COMPONENTS
574 ----------------------------------------------*/
576 #sidebar_user {
579 #recent_activity {
582 #community_owned {
585 #community_membership {
588 #sidebar_friends {
591 #search {
594 #me {
595 padding: 0 3px 3px 3px;
596 background-color:#FAC83D;
597 min-height: 71px;
600 #me a {
601 background-color:#FAC83D;
602 color: #7289AF;
605 #me #icon {
606 margin:3px 0 0 0;
607 float: left;
608 width: 70px;
611 #me #contents {
612 margin: 0 0 0 75px;
613 text-align: left;
617 /*--- extra div's when looking at someone else's page ---*/
619 #sidebar_weblog {
622 #sidebar_files {
627 /*------------------------------------------
628 FOOTER
629 ------------------------------------------*/
631 #footer {
632 margin: 10px 0 20px 20px;
633 text-align: center;
634 padding:5px;
637 #footer a:link, #footer a:visited {
638 text-align:right;
642 /*-------------------------------------------
643 INDIVIDUAL BLOG POSTS
644 -------------------------------------------*/
647 /*------ wraps all blog components ------*/
649 .weblog_posts {
652 .weblog_posts .entry h3 {
653 color:#1181AA;
654 background:#fff;
655 padding: 0 0 10px 110px;
658 .user {
659 float: left;
660 margin: 0px;
661 padding:0 0 5px 0;
662 width: 105px;
663 text-align: left;
666 .user a {
670 .post {
671 margin: 0 0 10px 0;
672 padding: 0 0 20px 110px;
673 font-family: arial;
676 .post p {
677 padding: 0;
678 margin: 3px 0 10px 0;
679 line-height: 16px;
682 .post ol, .post ul {
683 margin: 3px 0 10px 0;
684 padding: 0;
687 .post li {
688 margin: 0 0 0 30px;
689 line-height: 16px;
692 .post ul li {
693 list-style-type: square;
696 .post .blog_edit_functions p {
700 .post .blog_edit_functions a {
704 .post .weblog_keywords p {
708 .post .weblog_keywords a {
712 .info p {
713 padding: 0px;
714 margin: 0 0 5px 0;
715 color: #666;
716 background:#fff;
717 font-family: verdana;
718 font-weight: normal;
719 line-height: 14px;
720 text-align: left;
723 .info p a {
724 color: #666;
725 background:#fff;
726 text-decoration: none;
727 border-bottom: 1px dotted #666;
728 padding-bottom: 0;
731 #comments ol, #comments ul {
732 margin: 3px 0 10px 0;
733 padding: 0;
736 #comments li {
737 margin: 0 0 0 30px;
738 line-height: 16px;
741 #comments ul li {
742 list-style-type: square;
745 #comments h4 {
746 color:#1181AA;
749 .weblog_dateheader {
750 padding: 0px;
751 margin: 0 0 5px 0;
752 color: #333;
753 background:#fff;
754 font-weight: normal;
755 font-style: italic;
756 line-height: 12px;
757 border:0px;
758 border-bottom: 1px solid #ccc;
761 .clearing{clear:both;}
763 /*---------------------------------------------
764 Your Resources
765 -----------------------------------------------*/
767 .feeds {
768 border-bottom: 1px dotted #aaaaaa;
769 background: transparent url("{$CFG->wwwroot}_templates/sunflower.jpg") bottom right no-repeat;
772 .feed_content a {
773 color:black;
774 border:0px;
775 border-bottom:1px;
776 border-style:dotted;
777 border-color:#eee;
780 .feed_content a:hover{
781 background:#fff;
784 .feed_content img {
785 border: 1px solid #666666;
786 padding:5px;
789 .feed_content h3 {
790 padding:0 0 4px 0;
791 margin:0px;
794 .feed_content h3 a{
795 color:black;
796 border:0px;
797 border-bottom:1px;
798 border-style:dotted;
799 border-color:#eee;
802 .feed_content h3 a:hover{
803 background:#FCD63F;
804 color:#000;
807 .feed_date h2 {
808 font-size:13px;
809 line-height: 21px;
810 font-weight: bold;
811 padding: 5px 10px 5px 5px;
812 background: #D0DEDF;
813 color:#000;
814 text-decoration:none;
817 .via a {
818 font-size:80%;
819 color:#1181AA;
820 background:#fff;
821 border:0px;
822 border-bottom:1px;
823 border-style:dashed;
824 border-color:#ebebeb;
827 .via a:hover {
828 background:#ffc;
829 color:#1181AA;
833 /*---------------------------------------
834 SYSTEM MESSAGES
835 ---------------------------------------*/
837 #system_message{
838 border:1px solid #D3322A;
839 background:#F7DAD8;
840 color:#000;
841 padding:3px 50px;
842 margin:0 0 0 20px;
845 #system_message p{
846 padding:0px;
847 margin:2px;
851 /* ------------- help files -------------*/
853 .helpfiles ul {
854 font-family: arial, helvetica, Tahoma;
855 color: #000000;
856 background:#fff;
859 .helpfiles h4 {
863 /*------ site news for home.php ---------*/
865 .sitenews {
866 background:#ebebeb;
867 color:#000;
870 .sitenews h2 {
871 background:#1181AA;
872 color:#FAC83D;
873 padding:0 0 5px 0;
876 /*-------------------------------------
877 Input forms
878 --------------------------------------*/
880 .textarea {
881 border: 1px solid #7F9DB9;
882 color:#71717B;
883 width: 95%;
884 height:200px;
885 padding:3px;
888 .medium_textarea {
889 width:95%;
890 height:100px;
893 .small_textarea {
894 width:95%;
897 .keywords_textarea {
898 width:95%;
899 height:100px;
903 /*--------------------------------------
904 MISC
905 --------------------------------------*/
907 .clearall {
908 padding: 0px;
909 clear: both;
910 font-size: 0px;
913 .flagcontent {
914 background:#eee;
915 color:#000;
916 border:1px;
917 border-color:#000;
918 border-style:solid;
919 padding:3px;
922 .flagcontent h5 {
923 background:#eee;
924 color:#1181AA;
927 END;
929 $template_definition[] = array(
930 'id' => 'pageshell',
931 'name' => gettext("Page Shell"),
932 'description' => gettext("The main page shell, including headers and footers."),
933 'display' => 1,
934 'glossary' => array(
935 '{{metatags}}' => gettext("Page metatags (mandatory) - must be in the 'head' portion of the page"),
936 '{{title}}' => gettext("Page title"),
937 '{{menu}}' => gettext("Menu"),
938 '{{topmenu}}' => gettext("Status menu"),
939 '{{mainbody}}' => gettext("Main body"),
940 '{{sidebar}}' => gettext("Sidebar")
944 $welcome = gettext("Welcome"); // gettext variable
946 $template['pageshell'] = <<< END
948 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
949 <html xmlns="http://www.w3.org/1999/xhtml">
950 <head>
951 <title>{{title}}</title>
952 {{metatags}}
953 </head>
954 <body>
955 <!-- elgg banner and logo -->
956 <div id="container"><!-- start container -->
957 <div id="statusbar"><!-- start statusbar -->
958 <div id="welcome"><!-- start welcome -->
959 <p>$welcome {{userfullname}}</p>
960 </div><!-- end welcome -->
961 {{topmenu}}
962 </div><!-- end statusbar -->
963 <div id="header"><!-- start header -->
964 <h1>$sitename</h1>
965 <h2>Personal Learning Landscape</h2>
966 <ul id="navigation">
967 {{menu}}
968 </ul>
969 </div><!-- end header -->
970 <div id="content_holder"><!-- start contentholder -->
971 <div id="maincontent_container"><!-- start main content -->
972 {{messageshell}}
973 {{mainbody}}
974 </div><!-- end main content -->
975 <div id="sidebar_container">
976 <div id="sidebar"><!-- start sidebar -->
977 <ul><!-- open sidebar lists -->
978 {{sidebar}}
979 </ul>
980 </div><!-- end sidebar -->
981 </div><!-- end sidebar_container -->
982 </div><!-- end contentholder -->
983 <div class="clearall" />
984 <div id="footer"><!-- start footer -->
985 <a href="http://elgg.net"><img src="{$url}_templates/elgg_powered.png" alt="Powered by Elgg" title="Powered by Elgg" border="0" /></a>
986 </div><!-- end footer -->
987 </div><!-- end container -->
988 </body>
989 </html>
991 END;
993 $template_definition[] = array(
994 'id' => 'contentholder',
995 'name' => gettext("Content holder"),
996 'description' => gettext("Contains the main content for a page (as opposed to the sidebar or the title)."),
997 'glossary' => array(
998 '{{title}}' => gettext("The title"),
999 '{{submenu}}' => gettext("The page submenu"),
1000 '{{body}}' => gettext("The body of the page")
1004 $template['contentholder'] = <<< END
1006 <div id="maincontent_display">
1008 <h1>{{title}}</h1>
1009 {{submenu}}
1010 {{body}}
1011 </div>
1013 END;
1015 $template_definition[] = array(
1016 'id' => 'sidebarholder',
1017 'name' => gettext("Sidebar section holder"),
1018 'description' => gettext("Contains the sidebar section titles"),
1019 'glossary' => array(
1020 '{{title}}' => gettext("The header"),
1021 '{{body}}' => gettext("The body of the page")
1026 $template['sidebarholder'] = <<< END
1028 <h2>{{title}}</h2>
1029 {{body}}
1031 END;
1033 $template_definition[] = array(
1034 'id' => 'ownerbox',
1035 'name' => gettext("Owner box"),
1036 'description' => gettext("A box containing a description of the owner of the current profile."),
1037 'glossary' => array(
1038 '{{name}}' => gettext("The user's name"),
1039 '{{profileurl}}' => gettext("The URL of the user's profile page, including terminating slash"),
1040 '{{usericon}}' => gettext("The user's icon, if it exists"),
1041 '{{tagline}}' => gettext("A short blurb about the user"),
1042 '{{usermenu}}' => gettext("Links to friend / unfriend a user"),
1043 '{{lmshosts}}' => gettext("Links to any lms hosts the user is attached to"),
1048 $tags = gettext("Tags");
1049 $resources = gettext("Resources");
1050 $template['ownerbox'] = <<< END
1052 <div id="me">
1053 <div id="icon"><a href="{{profileurl}}">{{usericon}}</a></div>
1054 <div id="contents" ><p>
1055 <span class="userdetails">{{name}}<br /><a href="{{profileurl}}rss/">RSS</a> | <a href="{{profileurl}}tags/">$tags</a> | <a href="{{profileurl}}newsclient/">$resources</a></span></p>
1056 <p>{{tagline}}</p>
1057 <p>{{lmshosts}}</p>
1058 <p class="usermenu">{{usermenu}}</p>
1059 </div>
1060 </div>
1062 END;
1064 $template_definition[] = array(
1065 'id' => 'messageshell',
1066 'name' => gettext("System message shell"),
1067 'description' => gettext("A list of system messages will be placed within the message shell."),
1068 'glossary' => array(
1069 '{{messages}}' => gettext("The messages")
1073 $template['messageshell'] = <<< END
1075 <div id="system_message">{{messages}}</div><br />
1077 END;
1079 $template_definition[] = array(
1080 'id' => 'messages',
1081 'name' => gettext("Individual system messages"),
1082 'description' => gettext("Each individual system message."),
1083 'glossary' => array(
1084 '{{message}}' => gettext("The system message")
1088 $template['messages'] = <<< END
1091 {{message}}
1092 </p>
1094 END;
1097 $template_definition[] = array(
1098 'id' => 'menu',
1099 'name' => gettext("Main menu shell"),
1100 'description' => gettext("A list of main menu items will be placed within the menubar shell."),
1101 'glossary' => array(
1102 '{{menuitems}}' => gettext("The menu items")
1106 $template['menu'] = <<< END
1108 {{menuitems}}
1109 END;
1111 $template_definition[] = array(
1112 'id' => 'menuitem',
1113 'name' => gettext("Individual main menu item"),
1114 'description' => gettext("This is the template for each individual main menu item. A series of these is placed within the menubar shell template."),
1115 'glossary' => array(
1116 '{{location}}' => gettext("The URL of the menu item"),
1117 '{{name}}' => gettext("The menu item's name")
1121 $template['menuitem'] = <<< END
1123 <li><a href="{{location}}">{{name}}</a></li>
1125 END;
1127 $template_definition[] = array(
1128 'id' => 'selectedmenuitem',
1129 'name' => gettext("Selected individual main menu item"),
1130 'description' => gettext("This is the template for an individual main menu item if it is selected."),
1131 'glossary' => array(
1132 '{{location}}' => gettext("The URL of the menu item"),
1133 '{{name}}' => gettext("The menu item's name")
1137 $template['selectedmenuitem'] = <<< END
1139 <li><a class="current" href="{{location}}">{{name}}</a></li>
1141 END;
1143 $template_definition[] = array(
1144 'id' => 'submenu',
1145 'name' => gettext("Sub-menubar shell"),
1146 'description' => gettext("A list of sub-menu items will be placed within the menubar shell."),
1147 'glossary' => array(
1148 '{{submenuitems}}' => gettext("The menu items")
1152 $template['submenu'] = <<< END
1154 <div id="sub_menu">
1156 {{submenuitems}}
1157 </p>
1158 </div>
1159 END;
1161 $template_definition[] = array(
1162 'id' => 'submenuitem',
1163 'name' => gettext("Individual sub-menu item"),
1164 'description' => gettext("This is the template for each individual sub-menu item. A series of these is placed within the sub-menubar shell template."),
1165 'glossary' => array(
1166 '{{location}}' => gettext("The URL of the menu item"),
1167 '{{menu}}' => gettext("The menu item's name")
1171 $template['submenuitem'] = <<< END
1173 <a href="{{location}}">{{name}}</a>&nbsp;|
1175 END;
1177 $template_definition[] = array(
1178 'id' => 'topmenu',
1179 'name' => gettext("Status menubar shell"),
1180 'description' => gettext("A list of statusbar menu items will be placed within the status menubar shell."),
1181 'glossary' => array(
1182 '{{topmenuitems}}' => gettext("The menu items")
1186 $template['topmenu'] = <<< END
1188 <ul id="global_menuoptions">
1189 {{topmenuitems}}
1190 </ul>
1192 END;
1194 $template_definition[] = array(
1195 'id' => 'topmenuitem',
1196 'name' => gettext("Individual statusbar menu item"),
1197 'description' => gettext("This is the template for each individual statusbar menu item. A series of these is placed within the status menubar shell template."),
1198 'glossary' => array(
1199 '{{location}}' => gettext("The URL of the menu item"),
1200 '{{menu}}' => gettext("The menu item's name")
1204 $template['topmenuitem'] = <<< END
1206 <li><a href="{{location}}">[{{name}}]</a></li>
1208 END;
1210 $template_definition[] = array(
1211 'id' => 'databox',
1212 'name' => gettext("Data input box (two columns)"),
1213 'description' => gettext("This is mostly used whenever some input is taken from the user. For example, each of the fields in the profile edit screen is a data input box."),
1214 'glossary' => array(
1215 '{{name}}' => gettext("The name for the data we're inputting"),
1216 '{{column1}}' => gettext("The first item of data"),
1217 '{{column2}}' => gettext("The second item of data")
1221 $template['databox'] = <<< END
1223 <div class="infoholder_twocolumn">
1224 <div class="fieldname">
1225 <h3>{{name}}</h3>
1226 </div>
1227 <p>{{column1}}</p>
1228 <p>{{column2}}</p>
1229 </div>
1231 END;
1233 $template_definition[] = array(
1234 'id' => 'databox1',
1235 'name' => gettext("Data input box (one column)"),
1236 'description' => gettext("A single-column version of the data box."),
1237 'glossary' => array(
1238 '{{name}}' => gettext("The name of the data we're inputting"),
1239 '{{column1}}' => gettext("The data itself")
1243 $template['databox1'] = <<< END
1245 <div class="infoholder">
1246 <div class="fieldname">
1247 <h2>{{name}}</h2>
1248 </div>
1249 <p>{{column1}}</p>
1250 </div>
1252 END;
1254 $template_definition[] = array(
1255 'id' => 'adminTable',
1256 'name' => gettext("adminTable"),
1257 'description' => gettext("This table is used to house stats and administration details until a good CSS solution can be applied."),
1258 'glossary' => array(
1259 '{{name}}' => gettext("Column One"),
1260 '{{column1}}' => gettext("Column Two"),
1261 '{{column2}}' => gettext("Column Three")
1265 $template['adminTable'] = <<< END
1267 <div class="admin_datatable">
1268 <table width="80%">
1269 <tr>
1270 <td width="25%" valign="top">
1271 {{name}}
1272 </td>
1273 <td width="45%" valign="top">
1274 {{column1}}
1275 </td>
1276 <td width="30%" valign="top">
1277 {{column2}}
1278 </td>
1279 </tr>
1280 </table>
1281 </div>
1283 END;
1285 $template_definition[] = array(
1286 'id' => 'flagContent',
1287 'name' => gettext("flagContent"),
1288 'description' => gettext("This hold the flag content function throughout Elgg"),
1289 'glossary' => array(
1290 '{{name}}' => gettext("Column One"),
1291 '{{column1}}' => gettext("Column Two"),
1292 '{{column2}}' => gettext("Column Three")
1296 $template['flagContent'] = <<< END
1298 <div class="flagcontent">
1299 {{name}}
1300 {{column1}}
1301 {{column2}}
1302 </div>
1304 END;
1306 $template_definition[] = array(
1307 'id' => 'databoxvertical',
1308 'name' => gettext("Data input box (vertical)"),
1309 'description' => gettext("A slightly different version of the data box, used on this edit page amongst other places."),
1310 'glossary' => array(
1311 '{{name}}' => gettext("Name of the data we\'re inputting"),
1312 '{{contents}}' => gettext("The data itself")
1316 $template['databoxvertical'] = <<< END
1317 <div class="databox_vertical">
1318 <div class="fieldname">
1319 <h3>{{name}}</h3>
1320 </div>
1321 <p>{{contents}}</p>
1322 </div>
1324 END;