public function ShowSimpleTeaser($title) { $words = new MOD_words(); echo '<div id="teaser" class="clearfix">'; echo '<h1>' . $words->getFormatted($title) . '</h1>'; echo '</div>'; }
public function userOverviewSimple($statement, $userHandle, $galleries = false) { $words = new MOD_words(); $Gallery = new GalleryController(); $callbackId = $Gallery->updateGalleryProcess(); $vars =& PPostHandler::getVars($callbackId); if (!isset($vars['errors'])) { $vars['errors'] = array(); } $type = 'images'; $galleries = $this->_model->getUserGalleries(); echo ' <form method="post" action="gallery/show/user/' . $userHandle . '/pictures" name="mod-images" class="def-form"> <input type="hidden" name="' . $callbackId . '" value="1"/> '; if (in_array('gallery', $vars['errors'])) { echo '<span class="error">' . $words->get('GalleryErrorsPhotosets') . '</span>'; } if (in_array('images', $vars['errors'])) { echo '<span class="error">' . $words->get('GalleryErrorsImages') . '</span>'; } require 'templates/overview.php'; require 'templates/user_controls.php'; echo '</form>'; }
protected function column_col3() { $words = new MOD_words(); echo "<div class=\"info\">\n"; echo "<h3>", $words->get("Volunteer_Join"), "</h3>"; echo "<p>", $words->get("Volunteer_JoinText"), "</p>"; echo "</div>\n"; }
protected function getTableColumns() { $request_str = implode('/', PRequest::get()->request); $dir_str = isset($_GET['dir']) && $_GET['dir'] != 'ASC' ? 'ASC' : 'DESC'; $words = new MOD_words(); return array('select' => '', 'from' => '<a href="' . $request_str . '?sort=sender&dir=' . $dir_str . '">' . $words->getSilent('From') . '</a> / <a href="' . $request_str . '?sort=date&dir=' . (isset($_GET['dir']) ? $dir_str : 'ASC') . '">' . $words->getSilent('Date') . '</a>' . $words->flushBuffer(), 'message' => $words->get('MessagesText')); return array('select' => '', 'from' => 'From/To', 'message' => 'Text'); }
/** * configure the page title (what appears in your browser's title bar) * @return string the page title */ protected function getPageTitle() { $words = new MOD_words(); if (MOD_right::get()->hasRight("Verifier", "ApprovedVerifier")) { echo $words->getFormatted("verifymembers_approvedverifier"); } else { echo $words->getFormatted("verifymembers_teaser"); } }
protected function getPageTitle() { $words = new MOD_words(); if (isset($_SESSION['Username'])) { return $words->getFormatted('WelcomeUsername', $_SESSION['Username']); } else { return 'BeWelcome'; } }
function sortLanguages($languages) { $words = new MOD_words(); $langarr = indexedLanguages($languages); foreach ($langarr as $language) { $language->TranslatedName = $words->getSilent($language->WordCode); } uasort($langarr, "cmpProfileLang"); return $langarr; }
public function column_col3() { $model = new OnlineModel(); $words = new MOD_words(); PVars::getObj('page')->title = $words->getBuffered('WhoIsOnLinePage'); $TMembers = $model->GetMembers(); $TGuests = $model->GetGuests(); $TotMembers = $model->GetTotMembers(); require 'templates/showonline.php'; }
public function ShowOnline() { global $_SYSHCVOL; $words = new MOD_words(); PVars::getObj('page')->title = $words->getBuffered('WhoIsOnLinePage'); $TMembers = $this->_model->GetMembers(); $TGuests = $this->_model->GetGuests(); $TotMembers = $this->_model->GetTotMembers(); require 'templates/showonline.php'; }
/** * Columns for messages table. * The $key of a column is used as a suffix for method tableCell_$key * * @return array table columns, as $name => Column title */ protected function getTableColumns() { // We don't mark the link of the current sortorder yet, but we could: // $sort_current = isset($_GET['sort']) ? $_GET['sort'] : 'date'; // This would lgo in the a-tag: '.(($sort_current == 'date') ? 'class="sort_selected"' : '').' $request_str = implode('/', PRequest::get()->request); $dir_str = isset($_GET['dir']) && $_GET['dir'] != 'ASC' ? 'ASC' : 'DESC'; $words = new MOD_words(); return array('select' => '', 'from' => '<a href="' . $request_str . '?sort=sender&dir=' . $dir_str . '">' . $words->getSilent('From') . '</a> / <a href="' . $request_str . '?sort=date&dir=' . (isset($_GET['dir']) ? $dir_str : 'ASC') . '">' . $words->getSilent('Date') . '</a>' . $words->flushBuffer(), 'message' => $words->get('MessagesText')); }
protected function column_col3() { $words = new MOD_words(); ?> <p class=" error"><?php echo $words->getFormatted('GalleryImageNotFoundText'); ?> </p> <?php }
private function sortLanguages($languages) { $words = new MOD_words(); $langarr = array(); foreach ($languages as $language) { $lang = $language; $lang->TranslatedName = $words->getSilent($language->WordCode); $langarr[] = $lang; } usort($langarr, "cmpEditLang"); return $langarr; }
protected function column_col3() { $statement = $this->statement; $galleries = $this->galleries; $words = new MOD_words(); ?> <h3><?php echo $words->getFormatted('Photosets'); ?> </h3> <?php require SCRIPT_BASE . 'build/gallery/templates/galleries_overview.php'; }
protected function getTableColumns() { $columns = parent::getTableColumns(); $columns['from'] = 'To'; // We don't mark the link of the current sortorder yet, but we could: // $sort_current = isset($_GET['sort']) ? $_GET['sort'] : 'date'; // This would lgo in the a-tag: '.(($sort_current == 'date') ? 'class="sort_selected"' : '').' $request_str = implode('/', PRequest::get()->request); $dir_str = isset($_GET['dir']) && $_GET['dir'] != 'ASC' ? 'ASC' : 'DESC'; $words = new MOD_words(); $columns['from'] = '<a href="' . $request_str . '?sort=receiver&dir=' . $dir_str . '">' . $words->getSilent('To') . '</a> / <a href="' . $request_str . '?sort=date&dir=' . (isset($_GET['dir']) ? $dir_str : 'ASC') . '">' . $words->getSilent('Date') . '</a>' . $words->flushBuffer(); return $columns; }
function ShowAccommodation($accommodation) { $words = new MOD_words(); switch ($accommodation) { case 'anytime': $imgSrc = 'images/icons/yesicanhost.png'; break; case 'dependonrequest': $imgSrc = 'images/icons/maybe.png'; break; case 'neverask': $imgSrc = 'images/icons/nosorry.png'; break; } $altText = $words->getSilent('Accomodation_' . $accommodation); $imgTag = '<img src="' . $imgSrc . '" title="' . $altText . '" ' . ' alt="' . $altText . '" />'; return $imgTag; }
protected function showListItem($item, $i_row) { $words = new MOD_words(); $member = $this->createEntity('Member')->findById($item->IdRelMember); if ($item->WordCode == '' && ($text_params = unserialize($item->TranslationParams)) !== false) { $text = call_user_func_array(array($words, 'getSilent'), $text_params); } else { $text = $words->getSilent($item->WordCode, $member->Username); } $text_params = isset($text_params) ? $text_params : false; $created = MOD_layoutbits::ago(strtotime($item->created)); echo <<<HTML <div class="floatbox"> <a target="notify-{$item->id}" class="dynamic float_right" href="notify/{$item->id}/check" title="Remove"> <img src="images/icons/box-close.png"> </a> <div class="float_right small grey" title="{$item->created}">{$created}</div> <div class="float_left"> HTML; if ($item->IdRelMember != '') { echo "<a href='members/{$member->Username}'>"; echo MOD_layoutbits::PIC_30_30($member->Username, '', "framed"); echo '</a>'; } echo "</div>"; if ($item->Link != '') { echo "<a href='{$item->Link}'>"; } echo <<<HTML <p class="notification_text"> {$text} </p> HTML; if ($item->Link != '') { echo '</a>'; } echo "</div>"; }
protected function column_col3() { $post = $this->post; $member = $this->member; $blogId = $post->blog_id; $vars = $this->vars; $callback = $this->getCallbackOutput('BlogController', 'editProcess'); $errors = array(); $lang = array(); $i18n = new MOD_i18n('apps/blog/editcreate.php'); $words = new MOD_words(); $errors = $i18n->getText('errors'); $lang = $i18n->getText('lang'); $monthNames = array(); $i18n = new MOD_i18n('date.php'); $monthNames = $i18n->getText('monthNames'); $catIt = $this->_model->getCategoryFromUserIt($member->id); $tripIt = $this->_model->getTripFromUserIt($member->id); $google_conf = PVars::getObj('config_google'); $defaultVis = new StdClass(); $defaultVis->valueint = 2; // hack: TB settings are disabled as they reference app_user - default visibility is public //$defaultVis = A PP_User::getSetting($member->id, 'APP_blog_defaultVis'); if (!isset($request[3]) || $request[3] != 'finish') { echo '<h2>' . $words->get('BlogEditTitle') . '</h2>'; } else { // $request[2] == 'finish' echo '<h2>' . $words->get('BlogEditFinishTitle') . "</h2>\n"; echo $words->get('BlogEditFinishText') ? '<p>' . $words->get('BlogEditFinishText') . "</p>\n" : ''; echo $words->get('BlogEditFinishInfo') ? '<p>' . $words->get('BlogEditFinishInfo') . "</p>\n" : ''; } $actionUrl = 'blog/edit/' . $blogId; $submitName = 'submit_blog_edit'; $submitValue = $words->getSilent('BlogEditSubmit'); $disableTinyMCE = $this->_model->getTinyMCEPreference(); require_once SCRIPT_BASE . 'build/blog/templates/editcreateform.php'; }
protected function column_col3() { $member = $this->_model->getLoggedInMember(); $Blog = new Blog(); $callback = $this->getCallbackOutput('BlogController', 'createProcess'); // get the saved post vars // get current request $request = PRequest::get()->request; $errors = array(); $lang = array(); $words = new MOD_words(); $i18n = new MOD_i18n('apps/blog/editcreate.php'); $errors = $i18n->getText('errors'); $lang = $i18n->getText('lang'); $monthNames = array(); $i18n = new MOD_i18n('date.php'); $monthNames = $i18n->getText('monthNames'); $catIt = $this->_model->getCategoryFromUserIt($member->id); $tripIt = $this->_model->getTripFromUserIt($member->id); $google_conf = PVars::getObj('config_google'); $defaultVis = new StdClass(); $defaultVis->valueint = 2; // hack: TB settings are disabled as they reference app_user - default visibility is public //$defaultVis = A PP_User::getSetting($member->id, 'APP_blog_defaultVis'); if (!isset($vars['errors']) || !is_array($vars['errors'])) { $vars['errors'] = array(); } if (!isset($request[2]) || $request[2] != 'finish') { $actionUrl = 'blog/create'; $submitName = ''; $submitValue = $words->getSilent('BlogCreateSubmit'); echo '<h2>' . $words->get('Blog_CreateEntry') . '</h2>'; } else { // $request[2] == 'finish' echo '<h2>' . $words->get('BlogCreateFinishTitle') . "</h2>\n"; echo '<p>' . $words->get('BlogCreateFinishText') . "</p>\n"; echo '<p>' . $words->get('BlogCreateFinishInfo') . "</p>\n"; } $disableTinyMCE = $this->_model->getTinyMCEPreference(); require SCRIPT_BASE . 'build/blog/templates/editcreateform.php'; }
This file is part of BW Rox. BW Rox is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. BW Rox is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/> or write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ $words = $this->getWords(); $words = new MOD_words(); $styles = array('highlight', 'blank'); // alternating background for table rows $iiMax = count($list); // This retrieve the list of the verifierd $purifier = MOD_htmlpure::getBasicHtmlPurifier(); ?> <p> <?php echo $words->getFormatted("verifymembers_approvedverifiersexp", $words->getFormatted("verifymembers_VerifiedByApproved"), $words->getFormatted("verifymembers_VerifiedByVerified"), $words->getFormatted("verifymembers_VerifiedByNormal")); ?> </p> <table class="full"> <?php
This File display a topic and the messages which are inside it * @author Original author unknown * @author Michael Dettbarn (lupochen) <*****@*****.**> * @updated JeanYves */ // This means no thread was fetch or that it was outside visibility if (!isset($topic->topicinfo->IdTitle) and !isset($topic->topicinfo->ThreadDeleted)) { echo "<h2 class=\"forumstopic\">", $topic->topicinfo->title, "</h2>"; } else { //$i18n = new MOD_i18n('apps/forums/board.php'); //$boardText = $i18n->getText('boardText'); $words = new MOD_words(); $User = APP_User::login(); $can_del = $User && $User->hasRight('delete@forums'); // Not to use anymore (JeanYves) $can_edit_own = $User; // $can_edit_own = $User && $User->hasRight('edit_own@forums'); $can_edit_foreign = $User && $User->hasRight('edit_foreign@forums'); if (!isset($topic->topicinfo->IsClosed)) { $topic->topicinfo->IsClosed = false; } echo "<h2 class=\"forumstopic\">"; if ($topic->topicinfo->ThreadDeleted == 'Deleted') { echo "[Deleted]"; } if ($topic->topicinfo->ThreadVisibility == 'ModeratorOnly') { echo "[ModOnly]";
<?php $User = APP_User::login(); $words = new MOD_words(); ?> <div id="teaser" class="clearfix"> <h1><?php echo $words->getFormatted('ChangePasswordTitle'); ?> </h1> <table><td valign="top" spacing="5px"><img src="images/info.gif"></td><td><?php echo $words->getFormatted('ChangePasswordIntro'); ?> </td></table> </div>
/** * Returns a string with the gender if that isn't hidden. Translated of the * form 'Gender: male/female/other' * * @return string 'Gender: male/female/other/ translated or empty string */ public static function getGenderTranslated($gender, $hideGender, $addGenderText = true) { $words = new MOD_words(); $string = ''; if ($hideGender == 'No' && $gender != 'IDontTell') { if ($addGenderText) { $string .= $words->getFormatted('Gender') . ": "; } if ($gender != 'other') { $string .= $words->getFormatted($gender); } else { $string .= $words->getFormatted('GenderOther'); } } return $string; }
<?php $member = $this->_model->getLoggedInMember(); $words = new MOD_words(); $map_conf = PVars::getObj('map'); ?> <input type="hidden" id="osm-tiles-provider-base-url" value="<?php echo $map_conf->osm_tiles_provider_base_url; ?> "/> <input type="hidden" id="osm-tiles-provider-api-key" value="<?php echo $map_conf->osm_tiles_provider_api_key; ?> "/> <div id="teaser" class="clearfix"> <div class="float_right" style="padding-top: 1em"> <form method="get" action="blog/search/" class="def-form" id="blog-search-form"> <div id="search" class="row"> <input type="text" id="search-field" name="s" /> <input type="submit" value="Search" class="submit"<?php echo isset($submitName) && !empty($submitName) ? ' name="' . $submitName . '"' : ''; ?> /> </div> </form> </div> <h1><a href="blog"><?php echo $words->getFormatted('blogs'); ?>
<?php /** * blog item template controller * * defined vars: * $blog - the blog object. * * @package blog * @subpackage template * @author The myTravelbook Team <http://www.sourceforge.net/projects/mytravelbook> * @copyright Copyright (c) 2005-2006, myTravelbook Team * @license http://www.gnu.org/licenses/gpl.html GNU General Public License (GPL) * @version $Id$ */ $words = new MOD_words(); $format = array('short' => $words->getSilent('DateFormatShort')); if (!isset($headingLevel)) { $headingLevel = 3; } $shouts = new ShoutsController(); ?> <p class="action"> <?php if (!$shouts->getShouts($application, $id)) { if ($shouts->count == 1) { echo '<img src="images/icons/comment.png" alt="' . $words->get('CommentsSingular') . '"/> 1 ' . $words->get('CommentsSingular'); } else { echo '<img src="images/icons/comments.png" alt="' . $words->get('CommentsPlural') . '"/> ' . (int) $shouts->comments . ' ' . $words->get('CommentsPlural'); }
<?php $userbarText = array(); $words = new MOD_words(); // display the donation bar if the parameters are set if ($TDonationArray) { $max = count($TDonationArray); $TotalDonations = $Stat->YearDonation; $TotalDonationsNeeded = $Stat->YearNeededAmount; if ($TotalDonations >= $TotalDonationsNeeded) { $Percent = 100; } else { $Percent = $TotalDonations * 100 / $TotalDonationsNeeded; } $BarState = -202 * $Percent / 100; //$TextState = 202+$BarState; //if ($TextState > 160) $TextState = 160; $TextState = 5; ?> <div class="row"> <table> <tr> <td style="padding-left:0"> <img src="images/misc/donationbar.png" alt="<?php echo $Percent; ?> %" class="percentImage" style=" background: white url(images/misc/donationbar_bg.png) top left no-repeat; padding: 0; margin: 5px 0 0 0;
<?php $words = new MOD_words(); $member = $this->_model->getLoggedInMember(); if ($member) { ?> <h3><?php echo $words->get('TripsSingleTripActionsHeadline'); ?> </h3> <ul class="linklist"> <li><a href="trip/show/<?php echo $member->Username; ?> " title="<?php echo $words->getSilent('TripsShowMy'); ?> "><img src="images/icons/world.png" style="vertical-align:bottom;" alt="<?php echo $words->getSilent('TripsShowMy'); ?> " /></a> <a href="trip/show/<?php echo $member->Username; ?> " title="<?php echo $words->getSilent('TripsShowMy'); ?> "><?php echo $words->getSilent('TripsShowMy'); ?> </a><?php echo $words->flushBuffer();
(at your option) any later version. BW Rox is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/> or write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // get current request $request = PRequest::get()->request; if (!isset($vars['errors']) || !is_array($vars['errors'])) { $vars['errors'] = array(); } $words = new MOD_words(); $styles = array('highlight', 'blank'); // alternating background for table rows $iiMax = count($list); // This retrieve the list of the verifiers ?> <p><?php echo $words->getFormatted("MemberHasVerificationLevel", "<a class=\"username\" href=\"members/" . htmlspecialchars($this->VerifierUsername, ENT_QUOTES) . "\">" . htmlspecialchars($this->VerifierUsername, ENT_QUOTES) . "</a>", "<strong>" . $words->getFormatted($VerificationMaxLevel) . "</strong>"); ?> </p> <table class="full"> <?php if ($list != false) { ?>
Copyright (c) 2007 BeVolunteer This file is part of BW Rox. BW Rox is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. BW Rox is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/> or write to the Free Software Foundation, Inc., 59 Temple PlaceSuite 330, Boston, MA 02111-1307, USA. */ $words = new MOD_words(); ?> <h2><?php echo $words->get("ThePeople"); ?> </h2> <div class="subcolumns"> <div class="c50l"> <div class="subcl"> <h3><?php echo $words->get("ThePeople_Title1"); ?> </h3> <p><?php
public static function sendEmail($subject, $from, $to, $title, $body, $language = 'en', $html = true, $attach = array()) { self::init(); // Check that $to/$from are both arrays $from = is_array($from) ? $from : explode(',', $from); $to = is_array($to) ? $to : explode(',', $to); //Create the message $message = self::getSwift()->setSubject($subject)->setFrom($from)->setTo($to); // Purify HTML. All tags for forum posts + <hr> for the footer separation $purifier = MOD_htmlpure::get()->getMailHtmlPurifier(); $body = $purifier->purify($body); $html2text = new Html2Text\Html2Text($body, false, array('do_links' => 'table', 'width' => 75)); $plain = $html2text->getText(); $message->setBody($plain); // $message->addPart($plain, 'text/plain'); // Add the html-body only if the member wants HTML mails if ($html) { // Translate footer text (used in HTML template) $words = new MOD_words(); $footer_message = $words->getPurified('MailFooterMessage', array(date('Y')), $language); // Using a html-template ob_start(); require SCRIPT_BASE . 'templates/shared/mail_html.php'; $mail_html = ob_get_contents(); ob_end_clean(); $message->addPart($mail_html, 'text/html'); } return self::sendSwift($message); }
<?php $words = new MOD_words(); ?> <table style="padding: 0;"><tr><td style="padding: 0;"> <?php if ($Previous) { foreach ($Previous as $d) { echo '<a href="gallery/show/image/' . $d->id . '"><img src="gallery/thumbimg?id=' . $d->id . '" style="border: 1px solid #ccc; padding: 1px; margin: 15px 25px 15px 0; width: 60px; height: 60px;" alt="image"/></a><br />'; echo '<a href="gallery/show/image/' . $d->id . '"><span class="small"><img src="styles/css/minimal/images/icon_image_prev.gif" style="float: left; padding-right: 5px;">' . $words->get('Previous') . '</span></a>'; } } ?> </td><td style="text-align: right; padding: 0;"><?php if ($Next) { foreach ($Next as $e) { echo '<a href="gallery/show/image/' . $e->id . '"><img src="gallery/thumbimg?id=' . $e->id . '" style="border: 1px solid #ccc; padding: 1px; margin: 15px 0 15px 0; width: 60px; height: 60px;" alt="image"/></a><br />'; echo '<a href="gallery/show/image/' . $e->id . '"><span class="small"><img src="styles/css/minimal/images/icon_image_next.gif" style="float: right; padding-left: 5px;">' . $words->get('Next') . '</span></a>'; } } ?> </td></tr></table>