Changeset 232
- Timestamp:
- 09/09/08 09:28:58 (15 years ago)
- Location:
- plugins/gallery
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/gallery/_prepend.php
r217 r232 31 31 $core->url->register('browse','browse','^browser$',array('urlGallery','browse')); 32 32 */ 33 $core->setPostType('gal','plugin.php?p=gallery& m=gal&id=%d',$core->url->getBase('gal').'/%s');34 $core->setPostType('galitem','plugin.php?p=gallery& m=item&id=%d',$core->url->getBase('galitem').'/%s');33 $core->setPostType('gal','plugin.php?p=gallery&m=gal&id=%d',$core->url->getBase('gal').'/%s'); 34 $core->setPostType('galitem','plugin.php?p=gallery&m=item&id=%d',$core->url->getBase('galitem').'/%s'); 35 35 } 36 36 ?> -
plugins/gallery/class.dc.gallerylists.php
r217 r232 102 102 '<td class="nowrap">'. 103 103 form::checkbox(array('entries[]'),$this->rs->post_id,'','','',!$this->rs->isEditable()).'</td>'. 104 '<td class="maximal"><a href="plugin.php?p=gallery& m=gal&id='.$this->rs->post_id.'">'.104 '<td class="maximal"><a href="plugin.php?p=gallery&m=gal&id='.$this->rs->post_id.'">'. 105 105 html::escapeHTML($this->rs->post_title).'</a></td>'. 106 106 '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->post_dt).'</td>'. … … 210 210 form::checkbox(array('entries[]'),$this->rs->post_id,'','','',!$this->rs->isEditable()).'</td>'. 211 211 '<td class="nowrap"><img class="img-hideable" src="'.$media->media_icon.'" alt="'.$media->media_title.'" /></td>'. 212 '<td class="maximal"><a href="plugin.php?p=gallery& m=item&id='.$this->rs->post_id.'">'.212 '<td class="maximal"><a href="plugin.php?p=gallery&m=item&id='.$this->rs->post_id.'">'. 213 213 html::escapeHTML($this->rs->post_title).'</a></td>'. 214 214 '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->post_dt).'</td>'. -
plugins/gallery/gal.php
r217 r232 52 52 $next_link = $prev_link = $next_headlink = $prev_headlink = null; 53 53 54 $gal_headlink = '<link rel="%s" title="%s" href="plugin.php?p=gallery& m=gal&id=%s" />';55 $gal_link = '<a href="plugin.php?p=gallery& m=gal&id=%s" title="%s">%s</a>';54 $gal_headlink = '<link rel="%s" title="%s" href="plugin.php?p=gallery&m=gal&id=%s" />'; 55 $gal_link = '<a href="plugin.php?p=gallery&m=gal&id=%s" title="%s">%s</a>'; 56 56 57 57 … … 317 317 $core->gallery->refreshGallery($post_id); 318 318 319 http::redirect('plugin.php?p=gallery& m=gal&id='.$post_id.'&upd=1');319 http::redirect('plugin.php?p=gallery&m=gal&id='.$post_id.'&upd=1'); 320 320 } 321 321 catch (Exception $e) … … 352 352 $core->gallery->refreshGallery($return_id); 353 353 354 http::redirect('plugin.php?p=gallery& m=gal&id='.$return_id.'&crea=1');354 http::redirect('plugin.php?p=gallery&m=gal&id='.$return_id.'&crea=1'); 355 355 } 356 356 catch (Exception $e) … … 443 443 '<div class="col">'. 444 444 "<h3>".__('Presentation thumbnail')."</h3>"; 445 $change_thumb_url='plugin.php?p=gallery& m=galthumb&gal_id='.$post_id;445 $change_thumb_url='plugin.php?p=gallery&m=galthumb&gal_id='.$post_id; 446 446 if ($c_media_dir) 447 $change_thumb_url .= '& d='.$f_media_dir;447 $change_thumb_url .= '&d='.$f_media_dir; 448 448 449 449 if ($has_thumb) { … … 454 454 echo '<li>'.$gal_thumb->media_dtstr.' - '. files::size($gal_thumb->size).' - '. 455 455 '<a href="'.$change_thumb_url.'">'.__('Change').'</a>'.'</li></ul>'; 456 echo '<li class="media-action"><form action="plugin.php?p=gallery& m=galthumb" method="post">'.456 echo '<li class="media-action"><form action="plugin.php?p=gallery&m=galthumb" method="post">'. 457 457 '<input type="image" src="images/minus.png" alt="'.__('Remove').'" '. 458 458 'title="'.__('Remove').'" /> '. … … 481 481 { 482 482 483 echo '<form action="plugin.php?p=gallery& m=gal" method="post" id="entry-form">';483 echo '<form action="plugin.php?p=gallery&m=gal" method="post" id="entry-form">'; 484 484 echo '<div id="entry-sidebar">'; 485 485 … … 583 583 echo '</fieldset></div>'; // End #entry-content 584 584 echo '</form>'; 585 echo '</div>';585 //echo '</div>'; 586 586 587 587 /*if ($post_id && $post->post_status == 1) { -
plugins/gallery/gals.php
r217 r232 240 240 echo '<div class="multi-part" id="gal_list" title="'.__('Galleries').'">'; 241 241 242 echo '<p><a class="button" href="plugin.php?p=gallery& m=gal">'.__('New gallery').'</a></p>';242 echo '<p><a class="button" href="plugin.php?p=gallery&m=gal">'.__('New gallery').'</a></p>'; 243 243 if (!$show_filters) { 244 244 echo '<p><a id="filter-control" class="form-control" href="#">'. … … 248 248 echo 249 249 '<form action="plugin.php" method="get" id="filters-form">'. 250 '<input type="hidden" name="p" value="gallery" />'.251 250 '<fieldset><legend>'.__('Filters').'</legend>'. 252 251 '<div class="three-cols">'. … … 285 284 '<p><label class="classic">'. form::field('nb',3,3,$nb_per_page).' '. 286 285 __('Entries per page').'</label></p>'. 287 '<p><input type="submit" value="'.__('filter').'" /></p>'. 286 '<p><input type="hidden" name="p" value="gallery" />'. 287 '<input type="submit" value="'.__('filter').'" /></p>'. 288 288 '</div>'. 289 289 '</div>'. … … 306 306 # Show posts 307 307 $gal_list->display($page,30, 308 '<form action="plugin.php?p=gallery& m=galsactions" method="post" id="form-entries">'.308 '<form action="plugin.php?p=gallery&m=galsactions" method="post" id="form-entries">'. 309 309 '%s'. 310 310 '<div class="two-cols">'. -
plugins/gallery/gals_actions.php
r217 r232 32 32 { 33 33 $redir = 'plugin.php?p=gallery'. 34 '& page='.$_POST['page'];34 '&page='.$_POST['page']; 35 35 } 36 36 … … 186 186 187 187 echo 188 '<form action="plugin.php?p=gallery& m=galsactions" method="post">'.188 '<form action="plugin.php?p=gallery&m=galsactions" method="post">'. 189 189 '<p><label class="classic">'.__('Category:').' '. 190 190 form::combo('new_cat_id',$categories_combo,''). … … 203 203 204 204 echo 205 '<form action="plugin.php?p=gallery& m=galsactions" method="post">'.205 '<form action="plugin.php?p=gallery&m=galsactions" method="post">'. 206 206 '<p><label class="classic">'.__('Author ID:').' '. 207 207 form::field('new_auth_id',20,255). -
plugins/gallery/galthumbnail.php
r217 r232 20 20 $media_id = !empty($_REQUEST['media_id']) ? (integer) $_REQUEST['media_id'] : null; 21 21 $display_page=true; 22 $redir = "plugin.php?p=gallery& m=gal&id=".$core->con->escape($gal_id);22 $redir = "plugin.php?p=gallery&m=gal&id=".$core->con->escape($gal_id); 23 23 if ($gal_id) { 24 24 $gal = $core->gallery->getGalleries(array('post_id'=>$gal_id)); … … 60 60 $type = !empty($_GET['type']) ? $_GET['type'] : ''; 61 61 62 $page_url = 'plugin.php?p=gallery& m=galthumb&gal_id='.$gal_id;62 $page_url = 'plugin.php?p=gallery&m=galthumb&gal_id='.$gal_id; 63 63 64 64 try { … … 81 81 <?php 82 82 83 echo '<h2><a href="'.html::escapeURL($page_url.'& d=').'">'.__('Media manager').'</a>'.83 echo '<h2><a href="'.html::escapeURL($page_url.'&d=').'">'.__('Media manager').'</a>'. 84 84 ' / '.$core->media->breadCrumb(html::escapeURL($page_url).'&d=%s').'</h2>'; 85 85 86 86 if ($gal_id) { 87 87 echo '<p><strong>'.sprintf(__('Choose a media to attach to gallery %s by clicking on %s.'), 88 '<a href="plugin.php?p=gallery& m=gal&id='.$gal_id.'">'.$post_title.'</a>',88 '<a href="plugin.php?p=gallery&m=gal&id='.$gal_id.'">'.$post_title.'</a>', 89 89 '<img src="images/plus.png" alt="'.__('Attach this file to entry').'" />').'</strong></p>'; 90 90 } … … 162 162 163 163 if ($gal_id && !$f->d) { 164 $res .= '<form action="plugin.php?p=gallery& m=galthumb" method="post">'.164 $res .= '<form action="plugin.php?p=gallery&m=galthumb" method="post">'. 165 165 '<input type="image" src="images/plus.png" alt="'.__('Attach this file to entry').'" '. 166 166 'title="'.__('Attach this file to entry').'" /> '. -
plugins/gallery/item.php
r217 r232 52 52 $next_link = $prev_link = $next_headlink = $prev_headlink = null; 53 53 54 $item_headlink = '<link rel="%s" title="%s" href="plugin.php?p=gallery& m=item&id=%s" />';55 $item_link = '<a href="plugin.php?p=gallery& m=item&id=%s" title="%s">%s</a>';54 $item_headlink = '<link rel="%s" title="%s" href="plugin.php?p=gallery&m=item&id=%s" />'; 55 $item_link = '<a href="plugin.php?p=gallery&m=item&id=%s" title="%s">%s</a>'; 56 56 57 57 … … 220 220 /*$core->meta->delPostMeta($post_id,"galmediadir"); 221 221 $core->meta->setPostMeta($post_id,"galmediadir",$gal_directory);*/ 222 http::redirect('plugin.php?p=gallery& m=item&id='.$post_id.'&upd=1');222 http::redirect('plugin.php?p=gallery&m=item&id='.$post_id.'&upd=1'); 223 223 } 224 224 catch (Exception $e) … … 238 238 $core->meta->setPostMeta($return_id,"galmediadir",$gal_directory); 239 239 240 http::redirect('plugin.php?p=gallery& m=gal&id='.$return_id.'&crea=1');240 http::redirect('plugin.php?p=gallery&m=gal&id='.$return_id.'&crea=1'); 241 241 } 242 242 catch (Exception $e) … … 328 328 '<div class="col">'. 329 329 '<h3>'.__('Media').'</h3>'. 330 '<p><a href="media_item.php?id='.$media->media_id.'& popup=0">'.__('View associated media').'</a></p>';330 '<p><a href="media_item.php?id='.$media->media_id.'&popup=0">'.__('View associated media').'</a></p>'; 331 331 332 332 $img_gals_txt = ($img_gals->count() > 1)?__('This image belongs to %d galleries'):__('This image belongs to %d gallery'); … … 339 339 echo '<ul>'; 340 340 while ($img_gals->fetch()) { 341 echo '<li><a href="plugin.php?p=gallery& m=gal&id='.$img_gals->post_id.'" alt="'.$img_gals->post_title.'">'.$img_gals->post_title.'</a></li>';341 echo '<li><a href="plugin.php?p=gallery&m=gal&id='.$img_gals->post_id.'" alt="'.$img_gals->post_title.'">'.$img_gals->post_title.'</a></li>'; 342 342 } 343 343 echo '</ul>'; … … 354 354 ?> 355 355 <?php 356 echo '<form action="plugin.php?p=gallery& m=item" method="post" id="entry-form">';356 echo '<form action="plugin.php?p=gallery&m=item" method="post" id="entry-form">'; 357 357 echo '<div id="entry-sidebar">'. 358 358 -
plugins/gallery/items.php
r217 r232 284 284 echo 285 285 '<form action="plugin.php" method="get" id="filters-form">'. 286 '<input type="hidden" name="p" value="gallery" />'.287 '<input type="hidden" name="m" value="items" />'.288 286 '<fieldset><legend>'.__('Filters').'</legend>'. 289 287 '<div class="three-cols">'. … … 328 326 '<p><label class="classic">'. form::field('nb',3,3,$nb_per_page).' '. 329 327 __('Entries per page').'</label></p>'. 330 '<p><input type="submit" value="'.__('filter').'" /></p>'. 328 '<p><input type="hidden" name="p" value="gallery" />'. 329 '<input type="hidden" name="m" value="items" />'. 330 '<input type="submit" value="'.__('filter').'" /></p>'. 331 331 '</div>'. 332 332 '</div>'. … … 362 362 echo '</legend>'. 363 363 '<h3>'.__('Gallery').' : '.$gal_title[$gal_id]. 364 ' [<a href="plugin.php?p=gallery& m=gal&id='.$gal_id.'">'.__('edit').'</a>]</h3>'.364 ' [<a href="plugin.php?p=gallery&m=gal&id='.$gal_id.'">'.__('edit').'</a>]</h3>'. 365 365 '</fieldset>'; 366 366 } … … 368 368 # Show posts 369 369 $gal_list->display($page,$nb_per_page, 370 '<form action="plugin.php?p=gallery& m=itemsactions" method="post" id="form-entries">'.370 '<form action="plugin.php?p=gallery&m=itemsactions" method="post" id="form-entries">'. 371 371 '<p class="col checkboxes-helpers"></p>'. 372 372 '%s'. -
plugins/gallery/items_actions.php
r217 r232 28 28 { 29 29 $redir = 30 'plugin.php?p=gallery& m=items&user_id='.$_POST['user_id'].31 '& cat_id='.$_POST['cat_id'].32 '& status='.$_POST['status'].33 '& selected='.$_POST['selected'].34 '& month='.$_POST['month'].35 '& lang='.$_POST['lang'].36 '& sortby='.$_POST['sortby'].37 '& order='.$_POST['order'].38 '& gal_id='.$_POST['gal_id'].39 '& media_dir='.$_POST['media_dir'].40 '& tag='.$_POST['tag'].41 '& page='.$_POST['page'].42 '& nb='.$_POST['nb'];30 'plugin.php?p=gallery&m=items&user_id='.$_POST['user_id']. 31 '&cat_id='.$_POST['cat_id']. 32 '&status='.$_POST['status']. 33 '&selected='.$_POST['selected']. 34 '&month='.$_POST['month']. 35 '&lang='.$_POST['lang']. 36 '&sortby='.$_POST['sortby']. 37 '&order='.$_POST['order']. 38 '&gal_id='.$_POST['gal_id']. 39 '&media_dir='.$_POST['media_dir']. 40 '&tag='.$_POST['tag']. 41 '&page='.$_POST['page']. 42 '&nb='.$_POST['nb']; 43 43 } 44 44 … … 225 225 226 226 echo 227 '<form action="plugin.php?p=gallery& m=itemsactions" method="post">'.227 '<form action="plugin.php?p=gallery&m=itemsactions" method="post">'. 228 228 '<p><label class="classic">'.__('Category:').' '. 229 229 form::combo('new_cat_id',$categories_combo,''). … … 242 242 243 243 echo 244 '<form action="plugin.php?p=gallery& m=itemsactions" method="post">'.244 '<form action="plugin.php?p=gallery&m=itemsactions" method="post">'. 245 245 '<p><label class="classic">'.__('Author ID:').' '. 246 246 form::field('new_auth_id',20,255). … … 258 258 echo 259 259 '<h2>'.__('Add tags to entries').'</h2>'. 260 '<form action="plugin.php?p=gallery& m=itemsactions" method="post">'.260 '<form action="plugin.php?p=gallery&m=itemsactions" method="post">'. 261 261 '<p><label class="area">'.__('Tags to add:').' '. 262 262 form::textarea('new_tags',60,3). -
plugins/gallery/newitems.php
r217 r232 71 71 echo '<div class="multi-part" id="new_items" title="'.__('Manage new items').'">'; 72 72 73 echo '<form action="#" method="post" id="actions-form" on Submit="return false;">'.73 echo '<form action="#" method="post" id="actions-form" onsubmit="return false;">'. 74 74 '<fieldset><legend>'.__('New Items').'</legend>'. 75 75 '<p><label class="classic">'.__('Media dir:'). … … 89 89 '<input type="button" id="proceed" value="'.__('proceed').'" />'. 90 90 '</fieldset></form>'; 91 echo '<form action="#" method="post" id="update-form" on Submit="return false;">'.91 echo '<form action="#" method="post" id="update-form" onsubmit="return false;">'. 92 92 '<fieldset><legend>'.__('Gallery mass update').'</legend>'. 93 93 '<p><input type="button" id="proceedgal" value="'.__('Update all galeries').'" /></p>'. -
plugins/gallery/options.php
r217 r232 48 48 $core->blog->settings->put('gallery_galleries_order',$gallery_galleries_order,'string','Galleries list sort order criteria'); 49 49 $core->blog->settings->put('gallery_galleries_orderbycat',$gallery_galleries_orderbycat,'boolean','Galleries list group by category'); 50 http::redirect('plugin.php?p=gallery& m=options&upd=1');50 http::redirect('plugin.php?p=gallery&m=options&upd=1'); 51 51 } 52 52 … … 77 77 $core->blog->settings->put('gallery_new_items_default',$gallery_new_items_default,'string','Default options for new items management'); 78 78 $defaults=$gallery_new_items_default; 79 http::redirect('plugin.php?p=gallery& m=options&upd=1');79 http::redirect('plugin.php?p=gallery&m=options&upd=1'); 80 80 } elseif (!empty($_POST['save_general'])) { 81 81 $c_sort = !empty($_POST['galleries_sort'])?$_POST['galleries_sort']:$c_sort; … … 91 91 $core->blog->settings->put('gallery_galleries_orderbycat',$c_orderbycat,'boolean','Galleries list group by category'); 92 92 $core->blog->triggerBlog(); 93 http::redirect('plugin.php?p=gallery& m=options&upd=1');93 http::redirect('plugin.php?p=gallery&m=options&upd=1'); 94 94 } elseif (!empty($_POST['save_advanced'])) { 95 95 $c_gals_prefix = !empty($_POST['galleries_prefix'])?$_POST['galleries_prefix']:$c_gals_prefix; … … 101 101 $core->blog->settings->put('gallery_image_url_prefix',$c_img_prefix,'string','Images URL prefix'); 102 102 $core->blog->triggerBlog(); 103 http::redirect('plugin.php?p=gallery& m=options&upd=1');103 http::redirect('plugin.php?p=gallery&m=options&upd=1'); 104 104 } 105 105
Note: See TracChangeset
for help on using the changeset viewer.