Changeset 10757
- Timestamp:
- May 4, 2011, 5:14:41 PM (14 years ago)
- Location:
- extensions/Flash_Gallery
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Flash_Gallery/admin/template/add_module.tpl
r3663 r10757 1 1 {include file='include/autosize.inc.tpl'} 2 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"} 3 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"} 4 {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js"} 5 6 {html_head} 7 {$OTHERS_SCRIPT} 8 {/html_head} 9 10 <div class="titrePage"> 11 <h2>Flash Gallery - {$FLASHGAL_TITLE}</h2> 12 </div> 13 14 <form method="post" action="" class="properties" ENCTYPE="multipart/form-data"> 15 <p><input style="display:none" class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/></p> 16 17 <fieldset> 18 <legend>{'flashgal_module_config'|@translate}</legend> 19 <table> 20 21 <tr><td colspan="3"><br></td></tr> 22 23 <tr> 24 <td><b>{'flashgal_module_title'|@translate} </b></td> 25 <td colspan="2"><textarea cols="50" rows="2" name="module_name" id="module_name" class="description" style="height: 2em">{$MODULE_NAME}</textarea></td> 26 </tr> 27 28 <tr><td colspan="3"><br></td></tr> 29 30 <tr> 31 <td><b>{'flashgal_desc'|@translate} </b></td> 32 <td colspan="2"><input type="text" size="65" maxlength="255" value="{$DESC_VALUE}" name="module_desc"/></td> 33 </tr> 34 <tr> 35 <td></td> 36 <td colspan="2">{'flashgal_only_for_admin'|@translate}</td> 37 </tr> 38 39 <tr><td colspan="3"><br></td></tr> 40 <tr> 41 <td><b>{'flashgal_authorized_users'|@translate} </b></td> 42 <td colspan="2"> 43 <div id="users"> 44 <input type="checkbox" name="users[]" id="guest" value="guest" {$user_perm.GUEST}><label> {'user_status_guest'|@translate}</label> 45 <input type="checkbox" name="users[]" id="generic" value="generic" {$user_perm.GENERIC}><label> {'user_status_generic'|@translate}</label> 46 <input type="checkbox" name="users[]" id="normal" value="normal" {$user_perm.NORMAL}><label> {'user_status_normal'|@translate}</label> 47 <input type="checkbox" name="users[]" id="admin" value="admin" {$user_perm.ADMIN}><label> {'user_status_admin'|@translate}</label> 48 <input type="checkbox" name="users[]" id="webmaster" value="webmaster" {$user_perm.WEBMASTER}><label> {'user_status_webmaster'|@translate}</label> 49 </div> 50 </td> 51 </tr> 52 53 {if isset($group_perm)} 54 <tr><td colspan="3"><br></td></tr> 55 <tr> 56 <td><b>{'flashgal_authorized_group'|@translate} </b></td> 57 <td colspan="2">{$group_perm.GROUPSELECTION}</td> 58 </tr> 59 <tr> 60 <td></td> 61 <td colspan="2"><i>{'flashgal_public_module'|@translate}</i></td> 62 </tr> 63 {/if} 64 65 <tr><td colspan="3"><br></td></tr> 66 </table> 67 </fieldset> 68 69 <fieldset> 70 <legend>{'flashgal_visual_config'|@translate}</legend> 71 <div id="colorpickerA" style="float: right;"></div> 72 <table> 73 <tr><td colspan="3"><br></td></tr> 74 <tr> 75 <td colspan="3"><input type="checkbox" name="show_title" value="1" {$show_title_CHECKED}> {'flashgal_show_title'|@translate}</td> 76 </tr> 77 <tr><td colspan="3"> </td></tr> 78 79 <tr> 80 <td>{'flashgal_cfg_heigh'|@translate} </td> 81 <td colspan="2"><input type="text" size="3" maxlength="3" value="{$FLASHGAL_HEIGHT}" name="flashgal_height"> px</td> 82 </tr> 83 <tr><td colspan="3"> </td></tr> 84 <tr> 85 <td> </td> 86 <td colspan="2"> 87 - <input type="checkbox" name="flashgal_transparent" {$FLASHGAL_TRANSPARENT}/> {'flashgal_transparent'|@translate} 88 </td> 89 </tr> 90 <tr> 91 <td> {'flashgal_cfg_option'|@translate} </td> 92 <td colspan="2"> 93 - <input type="checkbox" name="flashgal_fullscreen" {$FLASHGAL_FULLSCREEN}/> {'flashgal_fullscreen'|@translate} 94 </td> 95 <tr> 96 <td> </td> 97 <td colspan="2"> 98 - {'flashgal_bgcolor'|@translate} <input type="text" size="7" maxlength="7" name="flashgal_bgcolor" class="colorwell" value="{$FLASHGAL_BGCOLOR}" /> 99 </td> 100 </tr> 101 <tr> 102 <td> </td> 103 <td colspan="2"> 104 - <input type="checkbox" name="flashgal_recurs_cats" {$FLASHGAL_RECURS_CATS}/> {'flashgal_recurs_cats'|@translate} 105 </td> 106 <tr><td colspan="3"> </td></tr> 107 <tr><td colspan="3"> </td></tr> 108 109 </table> 110 <table> 111 <tr> 112 <td></td> 113 <td><br><hr></td> 114 <td></td> 115 </tr> 116 <tr> 117 <td>{'flashgal_show_module_on'|@translate}</td> 118 <td> <input type="checkbox" name="on_home" value="1" {$on_home_CHECKED}> <i>{'flashgal_show_on_home'|@translate}</i> </td> 119 <td> <input type="radio" name="on_home_global" value="global" {$global_CHECKED}> {'flashgal_show_on_home_global'|@translate} 120 <br/> 121 <input type="radio" name="on_home_global" value="selective" {$selective_CHECKED}> {'flashgal_show_on_home_selective'|@translate}</td> 122 </tr> 123 <tr><td></td> 124 <td colspan="2"> <input type="checkbox" name="on_cats" value="1" {$on_cats_CHECKED}> <i>{'flashgal_show_on_cats'|@translate}</i></td> 125 </tr> 126 <tr><td colspan="3"><br></td></tr> 127 128 <tr> 129 <td>{'flashgal_cfg_replacenav'|@translate}</td> 130 <td colspan="2"> <input type="checkbox" name="replace_thumb" value="1" {$replace_thumb_CHECKED}> <i>{'flashgal_replace_thumb'|@translate}</i></td> 131 </tr> 132 <tr><td></td> 133 <td colspan="2"> <input type="checkbox" name="replace_cats" value="1" {$replace_cats_CHECKED}> <i>{'flashgal_replace_cats'|@translate}</i></td> 134 </tr> 135 136 <tr><td colspan="3"><br></td></tr> 137 <tr> 138 <td>{'flashgal_cfg_cat'|@translate} </td> 139 <td colspan="2"> 140 <select class="categoryList" name="categories[]" multiple="multiple" size="10"> 141 {html_options options=$categories selected=$categories_selected value=$categories_value} 142 </select> 143 </td> 144 </tr> 145 </table> 146 {literal} 147 <script type="text/javascript"> 148 jQuery().ready(function(){ 2 3 {footer_script require='jquery.ui.sortable'}{literal} 4 jQuery(document).ready(function(){ 149 5 // Resize possible for categories selection 150 6 jQuery('.categoryList').resizable({ … … 159 15 }); 160 16 }); 161 </script> 162 163 164 <script type="text/javascript" charset="utf-8"> 165 $(document).ready(function() { 166 var f = $.farbtastic('#colorpickerA'); 17 18 jQuery(document).ready(function() { 19 var f = jQuery.farbtastic('#colorpickerA'); 167 20 var selected; 168 $('.colorwell')21 jQuery('.colorwell') 169 22 .each(function () { f.linkTo(this); }) 170 23 .focus(function() { … … 173 26 }); 174 27 }); 175 </script> 176 177 178 {/literal} 28 {/literal}{/footer_script} 29 30 {html_head} 31 {$OTHERS_SCRIPT} 32 {/html_head} 33 34 <div class="titrePage"> 35 <h2>Flash Gallery - {$FLASHGAL_TITLE}</h2> 36 </div> 37 38 <form method="post" action="" class="properties" ENCTYPE="multipart/form-data"> 39 <p><input style="display:none" class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/></p> 40 41 <fieldset> 42 <legend>{'flashgal_module_config'|@translate}</legend> 43 <table> 44 45 <tr><td colspan="3"><br></td></tr> 46 47 <tr> 48 <td><b>{'flashgal_module_title'|@translate} </b></td> 49 <td colspan="2"><textarea cols="50" rows="2" name="module_name" id="module_name" class="description" style="height: 2em">{$MODULE_NAME}</textarea></td> 50 </tr> 51 52 <tr><td colspan="3"><br></td></tr> 53 54 <tr> 55 <td><b>{'flashgal_desc'|@translate} </b></td> 56 <td colspan="2"><input type="text" size="65" maxlength="255" value="{$DESC_VALUE}" name="module_desc"/></td> 57 </tr> 58 <tr> 59 <td></td> 60 <td colspan="2">{'flashgal_only_for_admin'|@translate}</td> 61 </tr> 62 63 <tr><td colspan="3"><br></td></tr> 64 <tr> 65 <td><b>{'flashgal_authorized_users'|@translate} </b></td> 66 <td colspan="2"> 67 <div id="users"> 68 <input type="checkbox" name="users[]" id="guest" value="guest" {$user_perm.GUEST}><label> {'user_status_guest'|@translate}</label> 69 <input type="checkbox" name="users[]" id="generic" value="generic" {$user_perm.GENERIC}><label> {'user_status_generic'|@translate}</label> 70 <input type="checkbox" name="users[]" id="normal" value="normal" {$user_perm.NORMAL}><label> {'user_status_normal'|@translate}</label> 71 <input type="checkbox" name="users[]" id="admin" value="admin" {$user_perm.ADMIN}><label> {'user_status_admin'|@translate}</label> 72 <input type="checkbox" name="users[]" id="webmaster" value="webmaster" {$user_perm.WEBMASTER}><label> {'user_status_webmaster'|@translate}</label> 73 </div> 74 </td> 75 </tr> 76 77 {if isset($group_perm)} 78 <tr><td colspan="3"><br></td></tr> 79 <tr> 80 <td><b>{'flashgal_authorized_group'|@translate} </b></td> 81 <td colspan="2">{$group_perm.GROUPSELECTION}</td> 82 </tr> 83 <tr> 84 <td></td> 85 <td colspan="2"><i>{'flashgal_public_module'|@translate}</i></td> 86 </tr> 87 {/if} 88 89 <tr><td colspan="3"><br></td></tr> 90 </table> 91 </fieldset> 92 93 <fieldset> 94 <legend>{'flashgal_visual_config'|@translate}</legend> 95 <div id="colorpickerA" style="float: right;"></div> 96 <table> 97 <tr><td colspan="3"><br></td></tr> 98 <tr> 99 <td colspan="3"><input type="checkbox" name="show_title" value="1" {$show_title_CHECKED}> {'flashgal_show_title'|@translate}</td> 100 </tr> 101 <tr><td colspan="3"> </td></tr> 102 103 <tr> 104 <td>{'flashgal_cfg_heigh'|@translate} </td> 105 <td colspan="2"><input type="text" size="3" maxlength="3" value="{$FLASHGAL_HEIGHT}" name="flashgal_height"> px</td> 106 </tr> 107 <tr><td colspan="3"> </td></tr> 108 <tr> 109 <td> </td> 110 <td colspan="2"> 111 - <input type="checkbox" name="flashgal_transparent" {$FLASHGAL_TRANSPARENT}/> {'flashgal_transparent'|@translate} 112 </td> 113 </tr> 114 <tr> 115 <td> {'flashgal_cfg_option'|@translate} </td> 116 <td colspan="2"> 117 - <input type="checkbox" name="flashgal_fullscreen" {$FLASHGAL_FULLSCREEN}/> {'flashgal_fullscreen'|@translate} 118 </td> 119 <tr> 120 <td> </td> 121 <td colspan="2"> 122 - {'flashgal_bgcolor'|@translate} <input type="text" size="7" maxlength="7" name="flashgal_bgcolor" class="colorwell" value="{$FLASHGAL_BGCOLOR}" /> 123 </td> 124 </tr> 125 <tr> 126 <td> </td> 127 <td colspan="2"> 128 - <input type="checkbox" name="flashgal_recurs_cats" {$FLASHGAL_RECURS_CATS}/> {'flashgal_recurs_cats'|@translate} 129 </td> 130 <tr><td colspan="3"> </td></tr> 131 <tr><td colspan="3"> </td></tr> 132 133 </table> 134 <table> 135 <tr> 136 <td></td> 137 <td><br><hr></td> 138 <td></td> 139 </tr> 140 <tr> 141 <td>{'flashgal_show_module_on'|@translate}</td> 142 <td> <input type="checkbox" name="on_home" value="1" {$on_home_CHECKED}> <i>{'flashgal_show_on_home'|@translate}</i> </td> 143 <td> <input type="radio" name="on_home_global" value="global" {$global_CHECKED}> {'flashgal_show_on_home_global'|@translate} 144 <br/> 145 <input type="radio" name="on_home_global" value="selective" {$selective_CHECKED}> {'flashgal_show_on_home_selective'|@translate}</td> 146 </tr> 147 <tr><td></td> 148 <td colspan="2"> <input type="checkbox" name="on_cats" value="1" {$on_cats_CHECKED}> <i>{'flashgal_show_on_cats'|@translate}</i></td> 149 </tr> 150 <tr><td colspan="3"><br></td></tr> 151 152 <tr> 153 <td>{'flashgal_cfg_replacenav'|@translate}</td> 154 <td colspan="2"> <input type="checkbox" name="replace_thumb" value="1" {$replace_thumb_CHECKED}> <i>{'flashgal_replace_thumb'|@translate}</i></td> 155 </tr> 156 <tr><td></td> 157 <td colspan="2"> <input type="checkbox" name="replace_cats" value="1" {$replace_cats_CHECKED}> <i>{'flashgal_replace_cats'|@translate}</i></td> 158 </tr> 159 160 <tr><td colspan="3"><br></td></tr> 161 <tr> 162 <td>{'flashgal_cfg_cat'|@translate} </td> 163 <td colspan="2"> 164 <select class="categoryList" name="categories[]" multiple="multiple" size="10"> 165 {html_options options=$categories selected=$categories_selected value=$categories_value} 166 </select> 167 </td> 168 </tr> 169 </table> 179 170 </fieldset> 180 171 -
extensions/Flash_Gallery/admin/template/manage.tpl
r3663 r10757 1 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"} 2 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js" } 3 {known_script id="jquery.ui.sortable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.sortable.packed.js" } 1 {footer_script require='jquery.ui.sortable'}{literal} 2 jQuery(document).ready(function(){ 3 jQuery(".catPos").hide(); 4 jQuery(".drag_button").show(); 5 jQuery(".categoryLi").css("cursor","move"); 6 jQuery(".categoryUl").sortable({ 7 axis: "y", 8 opacity: 0.8 9 }); 10 jQuery("#categoryOrdering").submit(function(){ 11 ar = jQuery('.categoryUl').sortable('toArray'); 12 for(i=0;i<ar.length;i++) { 13 module = ar[i].split('module_'); 14 document.getElementsByName('position[' + module[1] + ']')[0].value = i; 15 } 16 }); 17 }); 18 {/literal}{/footer_script} 4 19 5 20 {html_head} … … 7 22 {$SCRIPT} 8 23 {literal} 9 10 11 24 <style> 12 25 #screenshot{ … … 21 34 22 35 </style> 23 24 <style type="text/css">25 #categoryOrdering li {26 height: 60px;27 }28 #categoryOrdering p {29 margin-bottom: 0 !important;30 margin-top: 0.5em !important;31 }32 .flashgal_line {33 margin: 0 10px;34 }35 .MainBlock {36 color: #ff3363;37 }38 39 </style>40 36 {/literal} 41 37 42 38 {/html_head} 43 44 <script type="text/javascript">45 jQuery().ready(function(){ldelim}46 jQuery(".catPos").hide();47 jQuery(".drag_button").show();48 jQuery(".categoryLi").css("cursor","move");49 jQuery(".categoryUl").sortable({ldelim}50 axis: "y",51 opacity: 0.852 });53 jQuery("#categoryOrdering").submit(function(){ldelim}54 ar = jQuery('.categoryUl').sortable('toArray');55 for(i=0;i<ar.length;i++) {ldelim}56 module = ar[i].split('module_');57 document.getElementsByName('position[' + module[1] + ']')[0].value = i;58 }59 });60 });61 </script>62 39 63 40 -
extensions/Flash_Gallery/admin/template/new.tpl
r3531 r10757 1 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}2 3 1 {html_head} 4 2 {$SCRIPT} 5 3 {literal} 6 7 4 <style> 8 5 #screenshot{ … … 17 14 18 15 </style> 19 20 16 {/literal} 21 17 {/html_head} -
extensions/Flash_Gallery/include/class.inc.php
r3663 r10757 247 247 } 248 248 249 /* Return template for user template/theme*/ 250 function get_template($file, $modulename = null) 251 { 249 /* Return template for user template/theme */ 250 function get_template($file, $modulename = null) { 252 251 global $user, $template; 253 254 255 if (isset($modulename)) 252 253 if (isset($modulename)) 256 254 { 257 255 $dir = FLASHGAL_PATH . 'modules/'.$modulename .'/'; … … 260 258 else 261 259 { 262 $dir = FLASHGAL_PATH . 'template/'; 263 $theme_file = $dir.$user['template'].'/'.$user['theme'].'/'.$file; 264 $template_file = $dir.$user['template'].'/'.$file; 265 if (file_exists($theme_file)) 266 { 267 return $theme_file; 268 } 269 elseif (file_exists($template_file)) 270 { 271 return $template_file; 272 } 273 else 274 { 275 return $dir.$file; 260 $dir = FLASHGAL_PATH . 'themes/'; 261 $themes_file = FLASHGAL_PATH. 262 $user['theme'].'/'. 263 $file; 264 265 if (file_exists($themes_file)) 266 { 267 return $themes_file; 276 268 } 277 } 278 // echo "dir=".$dir.$file; 279 } 269 else 270 { 271 return $dir.$file; 272 } 273 } 274 } 275 280 276 } 281 277 -
extensions/Flash_Gallery/modules/AutoViewer/admin/config.tpl
r3531 r10757 1 {combine_css path="./plugins/Flash_Gallery/farbtastic/farbtastic.css"} 2 {combine_script id='jquery.farbtastic' require='jquery' path="./plugins/Flash_Gallery/farbtastic/farbtastic.js"} 3 4 {footer_script require='jquery.farbtastic,jquery.ui.resizable'}{literal} 5 jQuery(document).ready(function() { 6 var f = jQuery.farbtastic('#colorpicker'); 7 var selected; 8 jQuery('.colorwell') 9 .each(function () { f.linkTo(this); }) 10 .focus(function() { 11 f.linkTo(this); 12 }); 13 }); 14 {/literal}{/footer_script} 15 1 16 <br> 2 17 <div id="colorpicker" style="float: right;"></div> … … 38 53 39 54 </table> 40 41 {literal}42 43 <script type="text/javascript" charset="utf-8">44 $(document).ready(function() {45 var f = $.farbtastic('#colorpicker');46 var selected;47 $('.colorwell')48 .each(function () { f.linkTo(this); })49 .focus(function() {50 f.linkTo(this);51 52 });53 });54 </script>55 {/literal}56
Note: See TracChangeset
for help on using the changeset viewer.