26 require_once dirname(__FILE__).
'/../../../../core/include/init.inc';
27 if (empty($GLOBALS[
'SQ_SYSTEM']->user) || !($GLOBALS[
'SQ_SYSTEM']->user->canAccessBackend() || $GLOBALS[
'SQ_SYSTEM']->user->type() ==
'simple_edit_user')){
32 <html style=
"width: 740px; height: 500px;">
34 <title>Global Snippet Keyword Information</title>
36 h1 {font:bold 14pt
"Lucida Grande", Tahoma; background: #402F48; color: #FFFFFF; height:30px; text-align:center}
37 div.tip {font:bold 10pt
"Lucida Grande", Tahoma; background: #FFFFCC; color:#003366; border:solid 1px #003366; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:5px; text-align:justify; margin-top:.5cm; margin-bottom:.5cm}
38 td {font:10pt
"Lucida Grande", Tahoma; color:#000000; background:#FFFFFF;}
39 th {font:bold 10pt
"Lucida Grande", Tahoma; color:#000000; background:#C0C0C0;}
40 table.visible {border:solid 1px #000000;border-collapse:collapse; width:100%}
41 table.visible td {border:solid 1px #000000;border-collapse:collapse; height: 40px; text-align:justify}
42 table.visible th {border:solid 1px #000000;border-collapse:collapse; height: 30px; text-align:center}
43 table.visible td.icon {text-align:center}
48 <h1>Global Snippet Keyword Information</h1>
49 <div style=
"padding: 0 10px;">
51 TIP: The format of a snippet keyword is %globals_snippet_<
id>_<name>%. <br />
52 Note: The
"name" part is optional.
55 $snippets = $GLOBALS[
'SQ_SYSTEM']->am->getSnippetKeywords(TRUE);
57 <table
class=
"visible" cellpadding=
"5" cellspacing=
"0">
60 <th>Snippet Name and Keyword</th>
66 foreach ($snippets as $id => $info) {
67 $desc = (isset($info[
'attr'][
'desc'])) ? $info[
'attr'][
'desc'] :
' ';
71 <strong><?php echo $info[
'name']; ?></strong><br />
72 %globals_snippet_<?php echo $id.
'_'.$info[
'safe_name']; ?>%