Changeset 2243
- Timestamp:
- 03/02/08 19:56:05 (5 years ago)
- Location:
- trunk
- Files:
-
- 19 modified
-
admin/include/functions_plugins.inc.php (modified) (4 diffs)
-
admin/plugins.php (modified) (1 diff)
-
admin/plugins_list.php (modified) (2 diffs)
-
admin/plugins_new.php (modified) (3 diffs)
-
admin/plugins_update.php (modified) (4 diffs)
-
plugins/LocalFilesEditor/main.inc.php (modified) (1 diff)
-
plugins/add_index/main.inc.php (modified) (1 diff)
-
plugins/admin_advices/main.inc.php (modified) (1 diff)
-
plugins/admin_multi_view/main.inc.php (modified) (1 diff)
-
plugins/c13y_upgrade/main.inc.php (modified) (1 diff)
-
plugins/event_tracer/main.inc.php (modified) (1 diff)
-
plugins/extended_description/main.inc.php (modified) (1 diff)
-
plugins/hello_world/main.inc.php (modified) (1 diff)
-
plugins/language_switch/main.inc.php (modified) (1 diff)
-
template-common/default-layout.css (modified) (4 diffs)
-
template/yoga/admin/default-layout.css (modified) (1 diff)
-
template/yoga/admin/plugins_list.tpl (modified) (1 diff)
-
template/yoga/admin/plugins_new.tpl (modified) (1 diff)
-
template/yoga/admin/plugins_update.tpl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_plugins.inc.php
r2242 r2243 183 183 // we search main.inc.php in archive 184 184 if (basename($file['filename']) == 'main.inc.php' 185 and (!isset($main_filepath) or strlen($file['filename']) < strlen($main_filepath))) 185 and (!isset($main_filepath) 186 or strlen($file['filename']) < strlen($main_filepath))) 186 187 { 187 188 $main_filepath = $file['filename']; 188 189 } 189 190 } 190 191 191 if (isset($main_filepath)) 192 192 { 193 193 $root = dirname($main_filepath); // main.inc.php path in archive 194 if ($action == 'upgrade') $extract_path = PHPWG_PLUGINS_PATH . $dest; 195 else $extract_path = PHPWG_PLUGINS_PATH . ($root == '.' ? 'extension_' . $dest : basename($root)); 196 194 if ($action == 'upgrade') 195 { 196 $extract_path = PHPWG_PLUGINS_PATH.$dest; 197 } 198 else 199 { 200 $extract_path = PHPWG_PLUGINS_PATH 201 . ($root == '.' ? 'extension_' . $dest : basename($root)); 202 } 197 203 if($result = $zip->extract(PCLZIP_OPT_PATH, $extract_path, 198 204 PCLZIP_OPT_REMOVE_PATH, $root, … … 227 233 * @param string - path 228 234 */ 229 function pm_deltree($path)235 function deltree($path) 230 236 { 231 237 if (is_dir($path)) … … 237 243 { 238 244 $pathfile = $path . '/' . $file; 239 if (is_dir($pathfile)) pm_deltree($pathfile); 240 else @unlink($pathfile); 245 if (is_dir($pathfile)) 246 { 247 deltree($pathfile); 248 } 249 else 250 { 251 @unlink($pathfile); 252 } 241 253 } 242 254 } … … 251 263 * @param string - path 252 264 */ 253 function send_ pm_trash($path)265 function send_to_trash($path) 254 266 { 255 267 $trash_path = PHPWG_PLUGINS_PATH . 'trash'; -
trunk/admin/plugins.php
r2242 r2243 152 152 } 153 153 break; 154 154 155 155 case 'delete': 156 if (!pm_deltree(PHPWG_PLUGINS_PATH . $plugin_id))157 { 158 send_ pm_trash(PHPWG_PLUGINS_PATH . $plugin_id);156 if (!deltree(PHPWG_PLUGINS_PATH . $plugin_id)) 157 { 158 send_to_trash(PHPWG_PLUGINS_PATH . $plugin_id); 159 159 } 160 160 break; 161 161 } 162 162 if (empty($errors)) 163 {164 $my_base_url .= isset($_GET['upgrade']) ?163 { 164 $my_base_url .= isset($_GET['upgrade']) ? 165 165 '&plugin='.$plugin_id.'&upgrade='.$_GET['upgrade'].'&reactivate=true':''; 166 166 167 $my_base_url .= isset($_GET['upgradestatus']) ?167 $my_base_url .= isset($_GET['upgradestatus']) ? 168 168 '&plugin='.$plugin_id.'&upgradestatus='.$_GET['upgradestatus']:''; 169 169 170 redirect($my_base_url);170 redirect($my_base_url); 171 171 } 172 else173 {172 else 173 { 174 174 $page['errors'] = array_merge($page['errors'], $errors); 175 175 } -
trunk/admin/plugins_list.php
r2242 r2243 81 81 'DESCRIPTION' => $desc); 82 82 83 $action_url = htmlentities($my_base_url) . '&plugin=' . $plugin_id;83 $action_url = htmlentities($my_base_url) . '&plugin=' . $plugin_id; 84 84 85 85 if (isset($db_plugins_by_id[$plugin_id])) … … 110 110 'L_ACTION' => l10n('Install'), 111 111 'CONFIRM' => l10n('Are you sure?')); 112 $tpl_plugin['actions'][] =112 $tpl_plugin['actions'][] = 113 113 array('U_ACTION' => $action_url . '&action=delete', 114 114 'L_ACTION' => l10n('plugins_delete'), -
trunk/admin/plugins_new.php
r2242 r2243 35 35 if (isset($_GET['install']) and isset($_GET['extension']) and !is_adviser()) 36 36 { 37 include(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php');37 include(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php'); 38 38 39 $install_status = extract_plugin_files('install',40 $_GET['install'],41 $_GET['extension']);39 $install_status = extract_plugin_files('install', 40 $_GET['install'], 41 $_GET['extension']); 42 42 43 redirect($my_base_url . '&installstatus=' . $install_status);43 redirect($my_base_url . '&installstatus=' . $install_status); 44 44 } 45 45 … … 48 48 if (isset($_GET['installstatus'])) 49 49 { 50 switch ($_GET['installstatus'])51 {52 case 'ok':53 array_push($page['infos'], l10n('plugins_install_ok'), l10n('plugins_install_need_activate'));54 break;55 56 case 'temp_path_error':57 array_push($page['errors'], l10n('plugins_temp_path_error')); 58 break;59 60 case 'dl_archive_error':61 array_push($page['errors'], l10n('plugins_dl_archive_error')); 62 break;50 switch ($_GET['installstatus']) 51 { 52 case 'ok': 53 array_push($page['infos'], l10n('plugins_install_ok'), l10n('plugins_install_need_activate')); 54 break; 55 56 case 'temp_path_error': 57 array_push($page['errors'], l10n('plugins_temp_path_error')); 58 break; 59 60 case 'dl_archive_error': 61 array_push($page['errors'], l10n('plugins_dl_archive_error')); 62 break; 63 63 64 case 'archive_error':65 array_push($page['errors'], l10n('plugins_archive_error')); 66 break;64 case 'archive_error': 65 array_push($page['errors'], l10n('plugins_archive_error')); 66 break; 67 67 68 default:69 array_push($page['errors'], sprintf(l10n('plugins_extract_error'), $_GET['installstatus']), l10n('plugins_check_chmod')); 70 }68 default: 69 array_push($page['errors'], sprintf(l10n('plugins_extract_error'), $_GET['installstatus']), l10n('plugins_check_chmod')); 70 } 71 71 } 72 72 … … 89 89 if ($plugins_infos !== false) 90 90 { 91 if ($order == 'date') krsort($plugins_infos);92 else uasort($plugins_infos, 'extension_'.$order.'_compare');93 94 foreach($plugins_infos as $plugin)95 {96 $ext_desc = nl2br(htmlspecialchars(strip_tags(91 if ($order == 'date') krsort($plugins_infos); 92 else uasort($plugins_infos, 'extension_'.$order.'_compare'); 93 94 foreach($plugins_infos as $plugin) 95 { 96 $ext_desc = nl2br(htmlspecialchars(strip_tags( 97 97 utf8_encode($plugin['ext_description'])))); 98 99 $ver_desc = sprintf(l10n('plugins_description'),100 $plugin['version'],101 date('Y-m-d', $plugin['date']),102 nl2br(htmlspecialchars(strip_tags(98 99 $ver_desc = sprintf(l10n('plugins_description'), 100 $plugin['version'], 101 date('Y-m-d', $plugin['date']), 102 nl2br(htmlspecialchars(strip_tags( 103 103 utf8_encode($plugin['description']))))); 104 105 $url_auto_install = htmlentities($my_base_url)106 . '&extension=' . $plugin['id_extension']107 . '&install=%2Fupload%2Fextension-' . $plugin['id_extension']108 . '%2Frevision-' . $plugin['id_revision'] . '%2F'104 105 $url_auto_install = htmlentities($my_base_url) 106 . '&extension=' . $plugin['id_extension'] 107 . '&install=%2Fupload%2Fextension-' . $plugin['id_extension'] 108 . '%2Frevision-' . $plugin['id_revision'] . '%2F' 109 109 . str_replace(' ', '%20',$plugin['url']); 110 111 $url_download = PEM_URL .'/upload/extension-'.$plugin['id_extension']112 . '/revision-' . $plugin['id_revision']113 . '/' . $plugin['url'];114 115 $template->append('plugins',116 array('EXT_NAME' => $plugin['ext_name'],117 'EXT_URL' => PEM_URL.'/extension_view.php?eid='.$plugin['id_extension'],118 'EXT_DESC' => $ext_desc,119 'VERSION' => $plugin['version'],120 'VERSION_URL' => PEM_URL.'/revision_view.php?rid='.$plugin['id_revision'],121 'VER_DESC' => $ver_desc,122 'AUTHOR' => $plugin['author'],123 'URL_INSTALL' => $url_auto_install,124 'URL_DOWNLOAD' => $url_download));125 }110 111 $url_download = PEM_URL .'/upload/extension-'.$plugin['id_extension'] 112 . '/revision-' . $plugin['id_revision'] 113 . '/' . $plugin['url']; 114 115 $template->append('plugins', 116 array('EXT_NAME' => $plugin['ext_name'], 117 'EXT_URL' => PEM_URL.'/extension_view.php?eid='.$plugin['id_extension'], 118 'EXT_DESC' => $ext_desc, 119 'VERSION' => $plugin['version'], 120 'VERSION_URL' => PEM_URL.'/revision_view.php?rid='.$plugin['id_revision'], 121 'VER_DESC' => $ver_desc, 122 'AUTHOR' => $plugin['author'], 123 'URL_INSTALL' => $url_auto_install, 124 'URL_DOWNLOAD' => $url_download)); 125 } 126 126 } 127 127 else 128 128 { 129 array_push($page['errors'], l10n('plugins_server_error'));129 array_push($page['errors'], l10n('plugins_server_error')); 130 130 } 131 131 -
trunk/admin/plugins_update.php
r2242 r2243 35 35 if (isset($_GET['upgrade']) and isset($_GET['plugin']) and !is_adviser()) 36 36 { 37 include(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php');37 include(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php'); 38 38 39 $upgrade_status = extract_plugin_files('upgrade',40 $_GET['upgrade'],41 $_GET['plugin']);39 $upgrade_status = extract_plugin_files('upgrade', 40 $_GET['upgrade'], 41 $_GET['plugin']); 42 42 43 $my_base_url .= isset($_GET['reactivate']) ? '&action=activate' : '';43 $my_base_url .= isset($_GET['reactivate']) ? '&action=activate' : ''; 44 44 45 redirect($my_base_url.'&plugin='.$_GET['plugin'].'&upgradestatus='.$upgrade_status);45 redirect($my_base_url.'&plugin='.$_GET['plugin'].'&upgradestatus='.$upgrade_status); 46 46 } 47 47 … … 50 50 if (isset($_GET['upgradestatus']) and isset($_GET['plugin'])) 51 51 { 52 switch ($_GET['upgradestatus'])53 {54 case 'ok':55 array_push($page['infos'],52 switch ($_GET['upgradestatus']) 53 { 54 case 'ok': 55 array_push($page['infos'], 56 56 sprintf(l10n('plugins_upgrade_ok'), 57 57 $fs_plugins[$_GET['plugin']]['name'])); 58 break;58 break; 59 59 60 case 'temp_path_error':61 array_push($page['errors'], l10n('plugins_temp_path_error')); 62 break;63 64 case 'dl_archive_error':65 array_push($page['errors'], l10n('plugins_dl_archive_error')); 66 break;60 case 'temp_path_error': 61 array_push($page['errors'], l10n('plugins_temp_path_error')); 62 break; 63 64 case 'dl_archive_error': 65 array_push($page['errors'], l10n('plugins_dl_archive_error')); 66 break; 67 67 68 case 'archive_error':69 array_push($page['errors'], l10n('plugins_archive_error')); 70 break;68 case 'archive_error': 69 array_push($page['errors'], l10n('plugins_archive_error')); 70 break; 71 71 72 default:73 array_push($page['errors'],72 default: 73 array_push($page['errors'], 74 74 sprintf(l10n('plugins_extract_error'), 75 $_GET['upgradestatus'])); 76 }75 $_GET['upgradestatus'])); 76 } 77 77 } 78 78 … … 85 85 if ($plugins_infos !== false) 86 86 { 87 foreach($fs_plugins as $plugin_id => $fs_plugin)88 {89 if (isset($fs_plugin['extension'])87 foreach($fs_plugins as $plugin_id => $fs_plugin) 88 { 89 if (isset($fs_plugin['extension']) 90 90 and isset($plugins_infos[$fs_plugin['extension']])) 91 {92 $plugin_info = $plugins_infos[$fs_plugin['extension']];93 94 $ext_desc = nl2br(htmlspecialchars(strip_tags(91 { 92 $plugin_info = $plugins_infos[$fs_plugin['extension']]; 93 94 $ext_desc = nl2br(htmlspecialchars(strip_tags( 95 95 utf8_encode($plugin_info['ext_description'])))); 96 97 $ver_desc = sprintf(l10n('plugins_description'),98 $plugin_info['version'],99 date('Y-m-d', $plugin_info['date']),100 nl2br(htmlspecialchars(strip_tags(96 97 $ver_desc = sprintf(l10n('plugins_description'), 98 $plugin_info['version'], 99 date('Y-m-d', $plugin_info['date']), 100 nl2br(htmlspecialchars(strip_tags( 101 101 utf8_encode($plugin_info['description']))))); 102 103 if ($plugin_info['version'] == $fs_plugin['version'])104 {105 // Plugin is up to date106 $template->append('plugins_uptodate',107 array('URL' => $fs_plugin['uri'],108 'NAME' => $fs_plugin['name'],109 'EXT_DESC' => $ext_desc,110 'VERSION' => $fs_plugin['version'],111 'VER_DESC' => $ver_desc));112 }113 else114 {115 // Plugin need upgrade116 $url_auto_update = htmlentities($my_base_url)117 . '&plugin=' . $plugin_id118 . (102 103 if ($plugin_info['version'] == $fs_plugin['version']) 104 { 105 // Plugin is up to date 106 $template->append('plugins_uptodate', 107 array('URL' => $fs_plugin['uri'], 108 'NAME' => $fs_plugin['name'], 109 'EXT_DESC' => $ext_desc, 110 'VERSION' => $fs_plugin['version'], 111 'VER_DESC' => $ver_desc)); 112 } 113 else 114 { 115 // Plugin need upgrade 116 $url_auto_update = htmlentities($my_base_url) 117 . '&plugin=' . $plugin_id 118 . ( 119 119 (isset($db_plugins_by_id[$plugin_id]) 120 120 and $db_plugins_by_id[$plugin_id]['state'] == 'active' … … 122 122 '&action=deactivate' : '' 123 123 ) 124 . '&upgrade=%2Fupload%2Fextension-' . $fs_plugin['extension']125 . '%2Frevision-' . $plugin_info['id_revision']124 . '&upgrade=%2Fupload%2Fextension-' . $fs_plugin['extension'] 125 . '%2Frevision-' . $plugin_info['id_revision'] 126 126 . '%2F' . $plugin_info['url']; 127 128 $url_download = PEM_URL.'/upload/extension-'. $fs_plugin['extension']129 . '/revision-' . $plugin_info['id_revision']130 . '/' . $plugin_info['url'];131 132 $template->append('plugins_not_uptodate',133 array('EXT_NAME' => $fs_plugin['name'],134 'EXT_URL' => $fs_plugin['uri'],135 'EXT_DESC' => $ext_desc,136 'VERSION' => $fs_plugin['version'],137 'VERSION_URL' => PEM_URL.'/revision_view.php?rid='.$plugin_info['id_revision'],138 'NEW_VERSION' => $plugin_info['version'],139 'NEW_VER_DESC' => $ver_desc,140 'URL_UPDATE' => $url_auto_update,141 'URL_DOWNLOAD' => $url_download));142 }143 }144 else145 {146 // Can't check plugin147 $template->append('plugins_cant_check',148 array('NAME' => $fs_plugin['name'],149 'VERSION' => $fs_plugin['version']));150 }151 }127 128 $url_download = PEM_URL.'/upload/extension-'. $fs_plugin['extension'] 129 . '/revision-' . $plugin_info['id_revision'] 130 . '/' . $plugin_info['url']; 131 132 $template->append('plugins_not_uptodate', 133 array('EXT_NAME' => $fs_plugin['name'], 134 'EXT_URL' => $fs_plugin['uri'], 135 'EXT_DESC' => $ext_desc, 136 'VERSION' => $fs_plugin['version'], 137 'VERSION_URL' => PEM_URL.'/revision_view.php?rid='.$plugin_info['id_revision'], 138 'NEW_VERSION' => $plugin_info['version'], 139 'NEW_VER_DESC' => $ver_desc, 140 'URL_UPDATE' => $url_auto_update, 141 'URL_DOWNLOAD' => $url_download)); 142 } 143 } 144 else 145 { 146 // Can't check plugin 147 $template->append('plugins_cant_check', 148 array('NAME' => $fs_plugin['name'], 149 'VERSION' => $fs_plugin['version'])); 150 } 151 } 152 152 } 153 153 else 154 154 { 155 array_push($page['errors'], l10n('plugins_server_error'));155 array_push($page['errors'], l10n('plugins_server_error')); 156 156 } 157 157 -
trunk/plugins/LocalFilesEditor/main.inc.php
r2235 r2243 2 2 /* 3 3 Plugin Name: LocalFiles Editor 4 Version: 1. 05 Description: Edit local files from administration panel 6 Plugin URI: http:// www.phpwebgallery.net4 Version: 1.8 5 Description: Edit local files from administration panel / Editeur de fichiers locaux 6 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=144 7 7 Author: PhpWebGallery team 8 8 Author URI: http://www.phpwebgallery.net -
trunk/plugins/add_index/main.inc.php
r2141 r2243 1 1 <?php /* 2 2 Plugin Name: Add Index 3 Version: 1. 03 Version: 1.8 4 4 Description: Add file index.php file on all sub-directories of local galleries pictures. / Ajoute le fichier index.php sur les sous-répertoires de galeries d'images locales. 5 5 Plugin URI: http://www.phpwebgallery.net -
trunk/plugins/admin_advices/main.inc.php
r2240 r2243 1 1 <?php /* 2 2 Plugin Name: Admin Advices 3 Version: 1. 03 Version: 1.8 4 4 Description: Give you an advice on the administration page. 5 5 Plugin URI: http://www.phpwebgallery.net -
trunk/plugins/admin_multi_view/main.inc.php
r1912 r2243 1 1 <?php /* 2 2 Plugin Name: Multi view 3 Version: 1. 03 Version: 1.8 4 4 Description: Allows administrators to view gallery as guests and/or change the language and/or theme on the fly. Practical to debug changes ... 5 5 Plugin URI: http://www.phpwebgallery.net -
trunk/plugins/c13y_upgrade/main.inc.php
r2141 r2243 2 2 /* 3 3 Plugin Name: Check upgrades 4 Version: 4 Version: 1.8 5 5 Description: Check integrity of upgrades / Contrôle d'intégrité des mises à jour 6 6 Plugin URI: http://www.phpwebgallery.net -
trunk/plugins/event_tracer/main.inc.php
r1912 r2243 1 1 <?php /* 2 2 Plugin Name: Event tracer 3 Version: 1. 03 Version: 1.8 4 4 Description: For developers. Shows all calls to trigger_event. 5 5 Plugin URI: http://www.phpwebgallery.net -
trunk/plugins/extended_description/main.inc.php
r2160 r2243 2 2 /* 3 3 Plugin Name: Extended Description 4 Version: 1.8 .a4 Version: 1.8 5 5 Description: Allow multilanguage description / Permet d'avoir des descriptions mutilingues 6 6 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=175 -
trunk/plugins/hello_world/main.inc.php
r1900 r2243 1 1 <?php /* 2 2 Plugin Name: Hello World 3 Version: 1. 03 Version: 1.8 4 4 Description: This example plugin changes the page banner for the administration page. 5 5 Plugin URI: http://www.phpwebgallery.net -
trunk/plugins/language_switch/main.inc.php
r2162 r2243 1 1 <?php /* 2 2 Plugin Name: Language Switch 3 Version: 1. 03 Version: 1.8 4 4 Description: Switch to another language from flags on your gallery home page. 5 Plugin URI: http:// www.phpwebgallery.net5 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=123 6 6 Author: PhpWebGallery team 7 7 Author URI: http://www.phpwebgallery.net -
trunk/template-common/default-layout.css
r2242 r2243 6 6 } 7 7 #content { 8 margin-left: 20em; /* = #menubar width + 2em */8 margin-left: 20em; /* = #menubar width + 2em */ 9 9 } 10 10 /* Set minimum width of the page before getting a scrollbar */ 11 11 /* IE5 and IE6 don't get that */ 12 12 BODY { 13 min-width: 60em; /* ~ 3* #menubar width */13 min-width: 60em; /* ~ 3* #menubar width */ 14 14 } 15 15 BODY#thePopuphelpPage { … … 22 22 } 23 23 BODY#theAdminPage #content { 24 margin-left: 14.5em; /* = #menubar width + 2em */24 margin-left: 14.5em; /* = #menubar width + 2em */ 25 25 } 26 26 … … 30 30 #content UL.thumbnails LABEL, 31 31 #content DIV.thumbnailCategory DIV.illustration { 32 width: 140px; /* max thumbnail width + 2px */32 width: 140px; /* max thumbnail width + 2px */ 33 33 } 34 34 #content UL.thumbnails SPAN.wrap2, 35 35 #content DIV.thumbnailCategory DIV.description { 36 height: 140px; /* max thumbnail height + 2px */36 height: 140px; /* max thumbnail height + 2px */ 37 37 } 38 38 #content DIV.comment BLOCKQUOTE { 39 margin-left: 150px; /*maximum thumbnail width + ~10px */39 margin-left: 150px; /*maximum thumbnail width + ~10px */ 40 40 } 41 41 42 42 /* Category thumbnails on main page */ 43 43 #content UL.thumbnailCategories LI { 44 width: 49.7%; /* 49.7% for 2 per line, 33.2% for 3 per line*/44 width: 49.7%; /* 49.7% for 2 per line, 33.2% for 3 per line*/ 45 45 } 46 46 47 47 /* Set defaults for thumbnails legend */ 48 48 #content UL.thumbnails SPAN.thumbLegend { 49 display: block; /* display: none; if you don't want legend */50 height: 4em; /* legend height (don't set auto to be Gecko friendly)*/49 display: block; /* display: none; if you don't want legend */ 50 height: 4em; /* legend height (don't set auto to be Gecko friendly)*/ 51 51 } 52 52 … … 61 61 62 62 .tooltip:hover { 63 cursor: pointer;64 z-index: 500;63 cursor: pointer; 64 z-index: 500; 65 65 } 66 66 67 67 .tooltip:hover span { 68 display: inline;69 position: absolute;70 top: 30px;71 left: -50px;72 width: 400px;68 display: inline; 69 position: absolute; 70 top: 30px; 71 left: -50px; 72 width: 400px; 73 73 74 font-size: 11px;75 text-decoration: none;76 text-align: justify;77 background-color: #FFFFCC;78 color: #444444;79 80 padding: 10px;81 border: 1px solid Black;74 font-size: 11px; 75 text-decoration: none; 76 text-align: justify; 77 background-color: #FFFFCC; 78 color: #444444; 79 80 padding: 10px; 81 border: 1px solid Black; 82 82 } -
trunk/template/yoga/admin/default-layout.css
r2242 r2243 201 201 202 202 UL.tabsheet LI.selected_tab { 203 font-weight: bold;204 position: relative;205 top: 1px;206 padding-top: 4px;203 font-weight: bold; 204 position: relative; 205 top: 1px; 206 padding-top: 4px; 207 207 } 208 208 -
trunk/template/yoga/admin/plugins_list.tpl
r2242 r2243 12 12 <table class="table2"> 13 13 <thead> 14 <tr class="throw">15 <td>{'Name'|@translate}</td>16 <td>{'Version'|@translate}</td>17 <td>{'Description'|@translate}</td>18 <td>{'Actions'|@translate}</td>19 </tr>14 <tr class="throw"> 15 <td>{'Name'|@translate}</td> 16 <td>{'Version'|@translate}</td> 17 <td>{'Description'|@translate}</td> 18 <td>{'Actions'|@translate}</td> 19 </tr> 20 20 </thead> 21 21 {foreach from=$plugins item=plugin name=plugins_loop} 22 <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">23 <td>{$plugin.NAME}</td>24 <td>{$plugin.VERSION}</td>25 <td>{$plugin.DESCRIPTION}</td>26 <td>27 {foreach from=$plugin.actions item=action}28 <a href="{$action.U_ACTION}"29 {if isset($action.CONFIRM)}22 <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}"> 23 <td>{$plugin.NAME}</td> 24 <td>{$plugin.VERSION}</td> 25 <td>{$plugin.DESCRIPTION}</td> 26 <td> 27 {foreach from=$plugin.actions item=action} 28 <a href="{$action.U_ACTION}" 29 {if isset($action.CONFIRM)} 30 30 onclick="return confirm('{$action.CONFIRM|@escape:javascript}');" 31 31 {/if} 32 {$TAG_INPUT_ENABLED}>{$action.L_ACTION}</a>33 {/foreach}34 </td>35 </tr>32 {$TAG_INPUT_ENABLED}>{$action.L_ACTION}</a> 33 {/foreach} 34 </td> 35 </tr> 36 36 {/foreach} 37 37 </table> -
trunk/template/yoga/admin/plugins_new.tpl
r2242 r2243 13 13 <table class="table2"> 14 14 <thead> 15 <tr class="throw">16 <td>{'Name'|@translate}</td>17 <td>{'Version'|@translate}</td>18 <td>{'Author'|@translate}</td>19 <td>{'Actions'|@translate}</td>20 </tr>15 <tr class="throw"> 16 <td>{'Name'|@translate}</td> 17 <td>{'Version'|@translate}</td> 18 <td>{'Author'|@translate}</td> 19 <td>{'Actions'|@translate}</td> 20 </tr> 21 21 </thead> 22 22 {foreach from=$plugins item=plugin name=plugins_loop} 23 <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">24 <td><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.EXT_NAME}25 <span>{$plugin.EXT_DESC}</span></a></td>26 <td style="text-align:center;"><a href="{$plugin.VERSION_URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.VERSION}27 <span>{$plugin.VER_DESC}</span></a></td>28 <td>{$plugin.AUTHOR}</td>29 <td style="text-align:center;"><a href="{$plugin.URL_INSTALL}" onclick="return confirm('{'plugins_confirm_install'|@translate|@escape:javascript}');">{'plugins_auto_install'|@translate}</a>30 / <a href="{$plugin.URL_DOWNLOAD}">{'plugins_download'|@translate}</a>31 </td>32 </tr>23 <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}"> 24 <td><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.EXT_NAME} 25 <span>{$plugin.EXT_DESC}</span></a></td> 26 <td style="text-align:center;"><a href="{$plugin.VERSION_URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.VERSION} 27 <span>{$plugin.VER_DESC}</span></a></td> 28 <td>{$plugin.AUTHOR}</td> 29 <td style="text-align:center;"><a href="{$plugin.URL_INSTALL}" onclick="return confirm('{'plugins_confirm_install'|@translate|@escape:javascript}');">{'plugins_auto_install'|@translate}</a> 30 / <a href="{$plugin.URL_DOWNLOAD}">{'plugins_download'|@translate}</a> 31 </td> 32 </tr> 33 33 {/foreach} 34 34 </table> -
trunk/template/yoga/admin/plugins_update.tpl
r2242 r2243 9 9 <table class="table2"> 10 10 <thead> 11 <tr class="throw">12 <td>{'Name'|@translate}</td>13 <td>{'plugins_actual_version'|@translate}</td>14 <td>{'plugins_new_version'|@translate}</td>15 <td>{'plugins_action'|@translate}</td>16 </tr>11 <tr class="throw"> 12 <td>{'Name'|@translate}</td> 13 <td>{'plugins_actual_version'|@translate}</td> 14 <td>{'plugins_new_version'|@translate}</td> 15 <td>{'plugins_action'|@translate}</td> 16 </tr> 17 17 </thead> 18 18 {foreach from=$plugins_not_uptodate item=plugin name=plugins_loop} 19 <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">20 <td><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.EXT_NAME}19 <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}"> 20 <td><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.EXT_NAME} 21 21 <span>{$plugin.EXT_DESC}</span></a></td> 22 <td style="text-align:center;">{$plugin.VERSION}</td>23 <td style="text-align:center;"><a href="{$plugin.VERSION_URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.NEW_VERSION}22 <td style="text-align:center;">{$plugin.VERSION}</td> 23 <td style="text-align:center;"><a href="{$plugin.VERSION_URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.NEW_VERSION} 24 24 <span>{$plugin.NEW_VER_DESC}</span></a></td> 25 <td style="text-align:center;"><a href="{$plugin.URL_UPDATE}" onclick="return confirm('{'plugins_confirm_upgrade'|@translate|@escape:javascript}');">{'plugins_auto_update'|@translate}</a>26 / <a href="{$plugin.URL_DOWNLOAD}">{'plugins_download'|@translate}</a></td>27 </tr>25 <td style="text-align:center;"><a href="{$plugin.URL_UPDATE}" onclick="return confirm('{'plugins_confirm_upgrade'|@translate|@escape:javascript}');">{'plugins_auto_update'|@translate}</a> 26 / <a href="{$plugin.URL_DOWNLOAD}">{'plugins_download'|@translate}</a></td> 27 </tr> 28 28 {/foreach} 29 29 </table> … … 36 36 <table class="table2"> 37 37 <thead> 38 <tr class="throw">39 <td>{'Name'|@translate}</td>40 <td>{'Version'|@translate}</td>41 </tr>38 <tr class="throw"> 39 <td>{'Name'|@translate}</td> 40 <td>{'Version'|@translate}</td> 41 </tr> 42 42 </thead> 43 43 {foreach from=$plugins_uptodate item=plugin name=plugins_loop} 44 <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">45 <td><a href="{$plugin.URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.NAME}44 <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}"> 45 <td><a href="{$plugin.URL}" onclick="window.open(this.href); return false;" class="tooltip">{$plugin.NAME} 46 46 <span>{$plugin.EXT_DESC}</span></a></td> 47 <td style="text-align:center;"><span class="tooltip">{$plugin.VERSION}<span>{$plugin.VER_DESC}</span></span></td>48 </tr>47 <td style="text-align:center;"><span class="tooltip">{$plugin.VERSION}<span>{$plugin.VER_DESC}</span></span></td> 48 </tr> 49 49 {/foreach} 50 50 </table> … … 57 57 <table class="table2"> 58 58 <thead> 59 <tr class="throw">60 <td>{'Name'|@translate}</td>61 <td>{'Version'|@translate}</td>62 </tr>59 <tr class="throw"> 60 <td>{'Name'|@translate}</td> 61 <td>{'Version'|@translate}</td> 62 </tr> 63 63 </thead> 64 64 {foreach from=$plugins_cant_check item=plugin name=plugins_loop} 65 <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">66 <td> {$plugin.NAME} </td>67 <td style="text-align:center;">{$plugin.VERSION}</td>68 </tr>65 <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}"> 66 <td> {$plugin.NAME} </td> 67 <td style="text-align:center;">{$plugin.VERSION}</td> 68 </tr> 69 69 {/foreach} 70 70 </table>
![(please configure the [header_logo] section in trac.ini)](http://piwigo.org/screenshots/piwigo_logo_on_white.png)