Changeset 21439
- Timestamp:
- Mar 10, 2013, 4:46:59 PM (11 years ago)
- Location:
- extensions/Subscribe_to_comments
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Subscribe_to_comments/include/subscribe_to_comments.inc.php
r21340 r21439 184 184 if (pwg_db_num_rows($result)) 185 185 { 186 list($stc_id) = pwg_db_fetch_row($result); 186 187 $template->assign(array( 187 'SUBSCRIBED _ALL_IMAGES' => true,188 ' MANAGE_LINK' => make_stc_url('manage', $user['email']),188 'SUBSCRIBED' => 'all-images', 189 'UNSUB_LINK' => add_url_params($picture['current']['url'], array('stc_unsubscribe'=>$stc_id)), 189 190 )); 190 191 $subscribed = true; … … 210 211 list($stc_id) = pwg_db_fetch_row($result); 211 212 $template->assign(array( 212 'SUBSCRIBED _ALBUM_IMAGES' => true,213 'SUBSCRIBED' => 'album-images', 213 214 'UNSUB_LINK' => add_url_params($picture['current']['url'], array('stc_unsubscribe'=>$stc_id)), 214 215 )); … … 235 236 list($stc_id) = pwg_db_fetch_row($result); 236 237 $template->assign(array( 237 'SUBSCRIBED _IMAGE' => true,238 'SUBSCRIBED' => 'image', 238 239 'UNSUB_LINK' => add_url_params($picture['current']['url'], array('stc_unsubscribe'=>$stc_id)), 239 240 )); … … 298 299 if ( !is_a_guest() and !empty($user['email']) ) 299 300 { 301 $element_url = make_index_url(array( 302 'section' => 'categories', 303 'category' => $page['category'], 304 )); 305 300 306 $subscribed = false; 301 307 … … 315 321 if (pwg_db_num_rows($result)) 316 322 { 323 list($stc_id) = pwg_db_fetch_row($result); 317 324 $template->assign(array( 318 'SUBSCRIBED _ALL_ALBUMS' => true,319 ' MANAGE_LINK' => make_stc_url('manage', $user['email']),325 'SUBSCRIBED' => 'all-albums', 326 'UNSUB_LINK' => add_url_params($element_url, array('stc_unsubscribe'=>$stc_id)), 320 327 )); 321 328 $subscribed = true; … … 340 347 { 341 348 list($stc_id) = pwg_db_fetch_row($result); 342 $element_url = make_index_url(array(343 'section' => 'categories',344 'category' => $page['category'],345 ));346 347 349 $template->assign(array( 348 'SUBSCRIBED _ALBUM' => true,350 'SUBSCRIBED' => 'album', 349 351 'UNSUB_LINK' => add_url_params($element_url, array('stc_unsubscribe'=>$stc_id)), 350 352 )); -
extensions/Subscribe_to_comments/include/subscribtions_page.inc.php
r21340 r21439 34 34 35 35 // bulk action 36 else if (isset($_POST['apply_bulk']) )36 else if (isset($_POST['apply_bulk']) and !empty($_POST['selected'])) 37 37 { 38 38 foreach ($_POST['selected'] as $id) -
extensions/Subscribe_to_comments/template/form_comment.tpl
r21340 r21439 1 {if !$SUBSCRIBED _ALL_IMAGES && !$SUBSCRIBED_ALL_ALBUMS && !$SUBSCRIBED_ALBUM && !$SUBSCRIBED_ALBUM_IMAGES && !$SUBSCRIBED_IMAGE}1 {if !$SUBSCRIBED} 2 2 3 3 <p> -
extensions/Subscribe_to_comments/template/form_standalone.tpl
r21340 r21439 14 14 <form method="post" action="{$comment_add.F_ACTION}" id="stc_standalone"> 15 15 <fieldset>{strip} 16 {if $SUBSCRIBED_ALL_IMAGES} 17 {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all pictures of the gallery'|@translate} 18 <a href="{$MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a> 16 {if $SUBSCRIBED} 17 {if $SUBSCRIBED=='all-images'} 18 {assign var=str value='all pictures of the gallery'|@translate} 19 {elseif $SUBSCRIBED=='album-images'} 20 {assign var=str value='all pictures of this album'|@translate} 21 {elseif $SUBSCRIBED=='image'} 22 {assign var=str value='this picture'|@translate} 23 {elseif $SUBSCRIBED=='all-albums'} 24 {assign var=str value='all albums of the gallery'|@translate} 25 {elseif $SUBSCRIBED=='album'} 26 {assign var=str value='this album'|@translate} 27 {/if} 19 28 20 {elseif $SUBSCRIBED_ALBUM_IMAGES} 21 {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all pictures of this album'|@translate} 29 {'You are currently subscribed to comments on %s.'|@translate|sprintf:$str} 22 30 <a href="{$UNSUB_LINK}">{'Unsubscribe'|@translate}</a> 23 24 {elseif $SUBSCRIBED_IMAGE}25 {'You are currently subscribed to comments on %s.'|@translate|sprintf:'this picture'|@translate}26 <a href="{$UNSUB_LINK}">{'Unsubscribe'|@translate}</a>27 28 {elseif $SUBSCRIBED_ALL_ALBUMS}29 {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all albums of the gallery'|@translate}30 <a href="{$MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a>31 32 {elseif $SUBSCRIBED_ALBUM}33 {'You are currently subscribed to comments on %s.'|@translate|sprintf:'this album'|@translate}34 <a href="{$UNSUB_LINK}">{'Unsubscribe'|@translate}</a>35 36 31 {else} 37 32 <legend>{'Subscribe to mail notifications'|@translate}</legend> -
extensions/Subscribe_to_comments/template/subscribtions_page.tpl
r21340 r21439 31 31 <td> 32 32 {if $sub.type == 'all-images'} 33 <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/image.png"> {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all pictures of the gallery'|@translate} 33 {assign var=str value='all pictures of the gallery'|@translate} 34 <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/image.png"> 34 35 {else $sub.type == 'all-albums'} 35 <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album.png"> {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all albums of the gallery'|@translate} 36 {assign var=str value='all albums of the gallery'|@translate} 37 <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album.png"> 36 38 {/if} 39 {'You are currently subscribed to comments on %s.'|@translate|sprintf:$str} 37 40 </td> 38 41 <td style="white-space:nowrap;">
Note: See TracChangeset
for help on using the changeset viewer.