mirror of https://github.com/BOINC/boinc.git
parent
841ce3c6cc
commit
b01962cafe
|
@ -218,6 +218,12 @@ function boinc_preprocess_page(&$vars, $hook) {
|
|||
function boinc_preprocess_node(&$vars, $hook) {
|
||||
|
||||
//$vars['sample_variable'] = t('Lorem ipsum.');
|
||||
|
||||
// Detach subscribe link from the Links list
|
||||
if (!empty($vars['node']->links['flag-subscriptions']['title'])) {
|
||||
$vars['subscribe_link'] = $vars['node']->links['flag-subscriptions']['title'];
|
||||
unset($vars['node']->links['flag-subscriptions']);
|
||||
}
|
||||
|
||||
// Optionally, run node-type-specific preprocess functions, like
|
||||
// boinc_preprocess_node_page() or boinc_preprocess_node_story().
|
||||
|
@ -257,10 +263,6 @@ function boinc_preprocess_node_forum(&$vars, $hook) {
|
|||
// Get the author of the node
|
||||
$account = user_load($vars['uid']);
|
||||
|
||||
// Detach subscribe link from the Links list
|
||||
$vars['subscribe_link'] = $vars['node']->links['flag-subscriptions']['title'];
|
||||
unset($vars['node']->links['flag-subscriptions']);
|
||||
|
||||
// Add topic moderator controls
|
||||
if (user_access('edit any forum topic')) {
|
||||
$vars['moderator_links'] = array();
|
||||
|
|
|
@ -73,6 +73,13 @@
|
|||
* @see zen_process()
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php if ($subscribe_link): ?>
|
||||
<div class="subscribe">
|
||||
<?php print $subscribe_link; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix">
|
||||
<?php print $user_picture; ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue