コード例 #1
0
 *   - COMMENT_CONTROLS_BELOW
 *   - COMMENT_CONTROLS_ABOVE_BELOW
 *   - COMMENT_CONTROLS_HIDDEN
 *
 * Other variables:
 * - $classes_array: Array of html class attribute values. It is flattened
 *   into a string within the variable $classes.
 *
 * @see template_preprocess_comment_wrapper()
 */
?>
<div id="comments" class="<?php 
print $classes;
?>
">
  <?php 
if ($node->type != 'forum') {
    ?>
    <h2 class="title"><?php 
    print bts('Comments');
    ?>
</h2>
  <?php 
}
?>

  <?php 
print $content;
?>
</div>
コード例 #2
0
ファイル: spe.php プロジェクト: philum/cms
function icoart($k, $v, $c)
{
    if (is_numeric($k)) {
        $v = 'popup_popart___' . $k;
        $ic = apps_arts_thumb($k);
        $k = suj_of_id($k);
    } else {
        $ic = desk_icon($k, $v);
    }
    $ico = strpos($ic, '<') !== false ? btn('small', $ic) : mimes($k, $ic, 32);
    return lj('" title="' . $k, $v, divb($c, $ico . ' ' . bts('display:block', $k)));
}
コード例 #3
0
ファイル: comment.tpl.php プロジェクト: ChristianBeer/boinc
    <?php 
}
?>
    <div class="content">
      <?php 
print $content;
?>
      <?php 
if ($signature and $show_signatures) {
    ?>
        <div class="user-signature clearfix">
          <?php 
    print $signature;
    ?>
        </div>
      <?php 
}
?>
    </div>
  </div> <!-- /.comment-body -->
</div> <!-- /.comment -->

<?php 
if ($status == 'comment-preview') {
    ?>
  <h2 class="title"><?php 
    print bts('Revise or post comment');
    ?>
</h2>
<?php 
}
コード例 #4
0
ファイル: user-profile.tpl.php プロジェクト: CalvinZhu/boinc
            ?>
</span>
            <span class="value"><?php 
            print $background;
            ?>
</span>
          </div>
        <?php 
        }
        ?>
        <?php 
        if ($opinions) {
            ?>
          <div class="opinions">
            <span class="label"><?php 
            print bts('Opinion');
            ?>
</span>
            <span class="value"><?php 
            print $opinions;
            ?>
</span>
          </div>
        <?php 
        }
        ?>
      <?php 
    }
    ?>
    </div>
  <?php 
コード例 #5
0
ファイル: bubs.php プロジェクト: philum/cms
function rightarrow()
{
    return;
    bts('float:right;', '&#9658;');
}
コード例 #6
0
ファイル: node.tpl.php プロジェクト: CalvinZhu/boinc
}
?>

  <?php 
if ($display_submitted || $terms) {
    ?>
    <div class="meta">
      <?php 
    if ($display_submitted) {
        ?>
        <span class="submitted">
          <?php 
        if ($type == 'news') {
            print bts('Submitted on !datetime', array('!datetime' => date('j M Y H:i:s T', $node->created)));
        } else {
            print bts('Submitted by !username on !datetime', array('!username' => $name, '!datetime' => date('j M Y H:i:s T', $node->created)));
        }
        ?>
        </span>
      <?php 
    }
    ?>

      <?php 
    if ($terms) {
        ?>
        <div class="terms terms-inline"><?php 
        print $terms;
        ?>
</div>
      <?php 
コード例 #7
0
?>

  <?php 
if ($pager) {
    ?>
    <?php 
    print $pager;
    ?>
  <?php 
}
?>
  
  <ul class="links">
    <li class="forum first last">
      <?php 
print l(bts('Post new topic'), "node/add/team-forum/{$team_forum_id}");
?>
    </li>
  </ul>
  <div class="clearfix"></div>
  
  <?php 
if ($attachment_after) {
    ?>
    <div class="attachment attachment-after">
      <?php 
    print $attachment_after;
    ?>
    </div>
  <?php 
}
コード例 #8
0
ファイル: forum-list.tpl.php プロジェクト: gchilders/boinc
</td>
      </tr>
    <?php 
    }
    // Team forum
    ?>
  <?php 
}
// Team forums exist
?>
  </tbody>
</table>

<div class="fine-print">
  <p>
    <?php 
print bts('Please be responsible in what you write and do not create posts which are offensive or insulting. Offensive posts or threads may be deleted by forum moderators without warning or discussion. Do not respond to offensive postings. Click on the "report" button at the bottom of the post to call it to the attention of the moderators.');
?>
  </p>
  <p>
    <?php 
print bts('We also ask that you keep all discussion on the message boards related to @project or BOINC with the small exception of the Science message board where you are free to discuss anything relevant to the underlying science. Participants interested in broader discussions should post to unofficial forums for @project.', array('@project' => variable_get('site_name', bts('this project'))));
?>
  </p>
  <p>
    <?php 
print bts('These message boards now support BBCode tags only.');
?>
  </p>
</div>
コード例 #9
0
  <?php 
}
?>

  <?php 
if ($feed_icon) {
    ?>
    <div class="feed-icon">
      <?php 
    print $feed_icon;
    ?>
    </div>
  <?php 
}
?>

</div> <?php 
/* class view */
?>
  
  <?php 
// Inject the task list for this workunit
//$view = views_get_view('boinc_workunit_tasks_all');
// Get the results of the view in order to retrieve the fields.
$myres = $view->result[0];
print '<div class="separator"></div>';
if ($myres->app_workunit_target_nresults > 0 and !$myres->workunit_canonical_resultid and !$myres->workunit_error_mask and !$myres->dontsuppresspending) {
    print bts('Tasks are pending for this workunit.');
} else {
    print views_embed_view('boinc_workunit_tasks_all', $display_id = 'page_1', arg(1));
}
コード例 #10
0
ファイル: page.tpl.php プロジェクト: aggroskater/boinc
    if ($footer_message) {
        ?>
            <div id="footer-message"><?php 
        print $footer_message;
        ?>
</div>
          <?php 
    }
    ?>
          
          <?php 
    if (user_access('create page content') or user_access('create news content')) {
        ?>
            <div id="content-management-links">
              <?php 
        print l(bts('Create content'), 'node/add');
        ?>
            </div>
          <?php 
    }
    ?>
          
          <div class="clearfix"></div>

          <?php 
    print $footer;
    ?>
        </div>

      </div></div> <!-- /.section, /#footer -->
    <?php 
コード例 #11
0
<?php

/**
 * @file views-view-rss.tpl.php
 * Default template for feed displays that use the RSS style.
 *
 * @ingroup views_templates
 */
// Set the feed description. Note that the title is set in the News view...
// that works there, this works here. Setting title here does not set the
// title in the RSS auto discovery link on the front page, and setting the
// description in the view does not allow the site_name variable.
$site_name = variable_get('site_name', 'BOINC');
$description = bts('The latest news from the @site_name project', array('@site_name' => $site_name));
print "<?xml";
?>
 version="1.0" encoding="utf-8" <?php 
print "?>";
?>
<rss version="2.0" xml:base="<?php 
print $link;
?>
"<?php 
print $namespaces;
?>
>
  <channel>
    <title><?php 
print $title;
?>
</title>
コード例 #12
0
ファイル: ajxf.php プロジェクト: philum/cms
function mbd_color($cnn)
{
    $klr = msql_read('system', 'edition_colors', '', 1);
    $sty = 'padding:0 5px; background-color:#';
    foreach ($klr as $k => $v) {
        $ret .= ljb($k, 'jumpvalue', 'cnp_' . $k, bts($sty . $v, '.')) . ' ';
    }
    return $ret . br() . br() . assistant('cnn', 'embed_css', $cnn, '', '');
}
コード例 #13
0
ファイル: lib.php プロジェクト: philum/cms
function make_divtable($r, $h = '')
{
    $cr = 'display:table-row;';
    $cc = $cs . 'display:table-cell; vertical-align:middle; padding:2px; ';
    if (is_array($r)) {
        foreach ($r as $k => $v) {
            $td = '';
            $i++;
            if ($h) {
                $cs = $i == 1 ? 'background:rgba(255,255,255,0.4);' : '';
            }
            if (is_array($v)) {
                foreach ($v as $ka => $va) {
                    $td .= bts($cc . $cs, $va);
                }
            }
            if ($td) {
                $ret .= bts($cr, $td);
            }
        }
    }
    return $ret;
}
コード例 #14
0
     if ($topic->sticky and $topic->comment_mode == COMMENT_NODE_READ_ONLY) {
         ?>
       <?php 
         print bts('Featured') . ' / ' . bts('Locked');
         ?>
     <?php 
     } elseif ($topic->sticky) {
         ?>
       <?php 
         print bts('Featured');
         ?>
     <?php 
     } elseif ($topic->comment_mode == COMMENT_NODE_READ_ONLY) {
         ?>
       <?php 
         print bts('Locked');
         ?>
     <?php 
     } else {
         ?>
       <?php 
         print $topic->last_reply;
         ?>
     <?php 
     }
     ?>
   </td>
 <?php 
 }
 ?>
 </tr>
コード例 #15
0
ファイル: pop.php プロジェクト: philum/cms
function pub_html($d)
{
    list($p, $o) = split_right('§', $d);
    $r = explode_k($o, ' ', '=');
    $ra = array('css' => 'class', 'font' => 'font-family', 'size' => 'font-size');
    $rb = colors();
    foreach ($r as $k => $v) {
        if ($k == 'color') {
            $v = $rb[$v] ? $rb[$v] : '#' . $v;
        }
        $atb .= ($ra[$k] ? $ra[$k] : $k) . ':' . $v . '; ';
    }
    return bts($atb, $p);
}
コード例 #16
0
    <div class="details">
      <div class="user-stats">
        <div class="join-date"><?php 
        print bts('Joined') . ': ' . date('j M y', $account->created);
        ?>
</div>
        <div class="post-count"><?php 
        print bts('Posts') . ': ' . $account->post_count;
        ?>
</div>
        <div class="credit"><?php 
        print bts('Credit') . ': ' . $account->boincuser_total_credit;
        ?>
</div>
        <div class="rac"><?php 
        print bts('RAC') . ': ' . $account->boincuser_expavg_credit;
        ?>
</div>
      </div>
    </div>
    <?php 
        if ($snippet) {
            ?>
      <p class="search-snippet"><?php 
            print $snippet;
            ?>
</p>
    <?php 
        }
        ?>
  </div>
コード例 #17
0
/**
 * @file forum-submitted.tpl.php
 * Default theme implementation to format a simple string indicated when and
 * by whom a topic was submitted.
 *
 * Available variables:
 *
 * - $author: The author of the post.
 * - $time: How long ago the post was created.
 * - $topic: An object with the raw data of the post. Unsafe, be sure
 *   to clean this data before printing.
 *
 * @see template_preprocess_forum_submitted()
 * @see theme_forum_submitted()
 */
if ($time) {
    ?>
  <?php 
    print bts('@time ago', array('@time' => $time));
    ?>
  <?php 
    /* print bts(
      '@time ago <br />by !author', array(
        '@time' => $time,
        '!author' => $author,
        )); */
} else {
    ?>
  <?php 
    print bts('n/a');
}
host/<?php 
    print $row['id'];
    ?>
">
      <td><?php 
    print l($row['domain_name'], "host/{$row['id']}");
    ?>
      <td class="numeric"><?php 
    print $row['expavg_credit'];
    ?>
      <td class="numeric"><?php 
    print $row['total_credit'];
    ?>
    </tr>
  <?php 
}
?>
</tbody>
</table>
<ul class="more-link tab-list">
  <li class="first tab">
    <?php 
print l(bts('More'), 'account/computers');
?>
  </li>
  <li class="first alt tab">
    <?php 
print l(bts('Tasks'), 'account/tasks/active');
?>
  </li>
</ul>
コード例 #19
0
      <div class="topic-id">
        Topic <?php 
    print $node->nid;
    ?>
      </div>
      <div class="standard-links">
        <?php 
    print $links;
    ?>
      </div>
      <?php 
    if ($moderator_links) {
        ?>
        <div class="moderator-links">
          <span class="label">(<?php 
        print bts('moderation');
        ?>
:</span>
          <?php 
        print $moderator_links;
        ?>
          <span class="label">)</span>
        </div>
      <?php 
    }
    ?>
      
      <div class="content">
        <?php 
    print $content;
    ?>
コード例 #20
0
}
?>

      <?php 
if ($site_name || $site_slogan) {
    ?>
        <div id="name-and-slogan">
          <?php 
    if ($site_name) {
        ?>
            <div id="site-name"><strong>
              <a href="<?php 
        print $base_path;
        ?>
" title="<?php 
        print bts('Home');
        ?>
" rel="home">
              <?php 
        print $site_name;
        ?>
              </a>
            </strong></div>
          <?php 
    }
    ?>
          <?php 
    if ($site_slogan) {
        ?>
            <div id="site-slogan"><?php 
        print $site_slogan;
コード例 #21
0
ファイル: template.php プロジェクト: JuhaSointusalo/boinc
/**
 * Theme outgoing email messages for adding friends.
 *
 * @param $status
 *   Status of the friendship.
 * @param $flag
 *   The flag object.
 * @param $recipient
 *   The user object of the person receiving the email.
 * @param $sender
 *   The user object of the person sending the email.
 * @return
 *   An array containing the email [type] (mailkey), [subject] and [body].
 */
function boinc_flag_friend_message_email($status, $flag, $recipient, $sender)
{
    $email = array();
    $email['type'] = 'flag-friend';
    // Reload the sender to get a full user object
    $sender = user_load($sender->uid);
    switch ($status) {
        case FLAG_FRIEND_FLAGGED:
            // Sender accepted recipient's friend request
            $email['subject'] = bts('!name accepted your friend request [!site]', array('!name' => $sender->boincuser_name, '!site' => variable_get('site_name', '')));
            $email['body'] = bts('!name confirmed you as a friend on !site.

Follow this link to view his or her profile:
!link

!message

Thanks,
The !site team', array('!name' => isset($sender->boincuser_name) ? $sender->boincuser_name : $sender->name, '!site' => variable_get('site_name', ''), '!message' => $flag->friend_message ? bts('Message') . ': ' . $flag->friend_message : '', '!link' => url('account/' . $sender->uid, array('absolute' => TRUE))));
            break;
        case FLAG_FRIEND_PENDING:
            // Sender is requesting to be recipient's friend
            $email['subject'] = bts('Friend request from !name [!site]', array('!name' => $sender->boincuser_name, '!site' => variable_get('site_name', '')));
            $email['body'] = bts('!name added you as a friend on !site. You can approve or deny this request. Denying a request will not send a notification, but will remove the request from both of your accounts.

Follow the link below to view this request:
!link

!message

Thanks,
The !site team', array('!name' => isset($sender->boincuser_name) ? $sender->boincuser_name : $sender->name, '!site' => variable_get('site_name', ''), '!message' => $flag->friend_message ? bts('Message') . ': ' . $flag->friend_message : '', '!link' => url('goto/friend-requests', array('absolute' => TRUE))));
            break;
    }
    return $email;
}
コード例 #22
0
ファイル: spe.php プロジェクト: philum/cms
function desktop_build_ico($r, $c)
{
    if ($r) {
        foreach ($r as $k => $v) {
            $ic = desk_icon($k, $v);
            $ico = strpos($ic, '<') !== false ? btn('small', $ic) : mimes($k, $ic, 32);
            $ret .= lj('" title="' . $k, $v, divb($c, $ico . ' ' . bts('display:block', $k)));
        }
    }
    return $ret;
}