protected function column_col3() { $trip = $this->trip; $trip_data = $this->trip_data; $words = new MOD_words(); $layoutbits = new MOD_layoutbits(); $member = $this->model->getLoggedInMember(); $google_conf = PVars::getObj('config_google'); $Model = new Blog(); $callback = $this->getCallbackOutput('BlogController', 'createProcess'); // get the saved post vars // todo: grab from page model $vars = array(); $request = PRequest::get()->request; $errors = array(); $lang = array(); //$tripIt = $Model->getTripFromUserIt($member->id); //$defaultVis = A PP_User::getSetting($User->getId(), 'APP_blog_defaultVis'); // defaults to public then $defaultVis = false; if (!$member) { $isOwnTrip = false; } else { $isOwnTrip = $trip->IdMember == $member->id; } require 'templates/singletrip_details.php'; require 'templates/singletrip.php'; $shoutsCtrl = new ShoutsController(); $shoutsCtrl->shoutsList('trip', $trip->trip_id); }
public function displaySingleTrip($trip, $trip_data) { $member = $this->_model->getLoggedInMember(); if (!$member) { $isOwnTrip = false; } else { $isOwnTrip = $trip->IdMember == $member->id; } require 'templates/singletrip.php'; $shoutsCtrl = new ShoutsController(); $shoutsCtrl->shoutsList('trip', $trip->trip_id); }
* 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'); } } else { echo '<img src="images/icons/comment_add.png" alt="' . $words->get('CommentsAdd') . '"/> ' . $words->get('CommentsAdd'); } ?> </p>
echo $d; ?> " alt="image"/> </a> <h4><a href="gallery/show/sets/<?php echo $g->id; ?> "><?php echo $g->title; ?> </a></h4> <p class="small"><?php echo $words->get('by'); ?> <?php echo $member; ?> </p> <p><?php echo $num_rows; ?> <?php echo $words->get('pictures'); ?> </p> </div> <?php $shoutsCtrl = new ShoutsController(); $shoutsCtrl->shoutsList('gallery_items', $d->id); }
echo $words->get('GroupsMemberCount'); ?> : <?php echo $group_data->getMemberCount(); ?> <br /> <?php echo $words->get('GroupsNewMembers'); ?> : <?php echo count($group_data->getNewMembers()); ?> <br /> </span></div> <!-- userinfo --> </li> <!-- picbox_relatedgroup --> <?php } ?> </ul> <?php if ($this->group->VisibleComments == 'yes' && $memberCount == $visibleMemberCount) { $shouts = new ShoutsController(); $shouts->shoutsList('groups', $group_id); } ?> </div><!-- subcolumns --> </div> <!-- groups -->
} echo $words->flushBuffer(); echo <<<HTML </div> </div> <div class="c66r"> <div class="subcr"> <!-- Content right block --> HTML; if ($this->myself && $this->upload) { // Display the upload form require SCRIPT_BASE . 'build/gallery/templates/uploadform.php'; } else { echo '<div class="floatbox">'; foreach ($statement as $d) { echo ' <div class="img thumb_container float_left"> <a href="gallery/show/image/' . $d->id . '"><img class="thumb framed" src="gallery/thumbimg?id=' . $d->id . '" alt="image" /></a> </div>'; } } echo '</div>'; ?> </div> </div> </div> <hr/> <?php $shoutsCtrl = new ShoutsController(); $shoutsCtrl->shoutsList('gallery', $gallery->id);