} ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php show_language_html_tags(); ?> xmlns:fb="http://ogp.me/ns/fb#"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php show_chevereto_header(); ?> <?php if (is_viewer()) { ?> <meta name="twitter:card" content="photo"> <meta name="twitter:image" content="<?php show_img_url(); ?> "> <?php } ?> </head> <body> <div id="wrap">
function get_image_by_handler() { return is_viewer() || is_uploaded() ? Handler::$image_info : false; }
/** * Renders a privacy selector for a {@see LibBaseDomainBehaviorPrivatable} entity. * * @param array|AnDomainEntityAbstract A privatable entity * * @return string */ public function privacy($config = array()) { if ($config instanceof AnDomainEntityAbstract) { $config = new KConfig(array('entity' => $config)); } else { $config = new KConfig($config); } $config->append(array('auto_submit' => $config->entity && $config->entity->persisted(), 'name' => 'access')); if (!$config->options) { //need to know which graph options to render if ($config->entity->isOwnable()) { $config->options = $config->entity->owner; } elseif (is($config->entity, 'ComActorsDomainEntityActor')) { $config->options = $config->entity; } } if (is($config->options, 'ComActorsDomainEntityActor')) { $actor = $config->options; $options = new KConfig(array(LibBaseDomainBehaviorPrivatable::GUEST => JText::_('LIB-AN-PRIVACYLABEL-PUBLIC'), LibBaseDomainBehaviorPrivatable::REG => JText::_('LIB-AN-PRIVACYLABEL-REG'))); if ($actor->isFollowable()) { $options->append(array(LibBaseDomainBehaviorPrivatable::FOLLOWER => JTEXT::_('LIB-AN-PRIVACYLABEL-FOLLOWERS'))); } if ($actor->isLeadable()) { $options->append(array(LibBaseDomainBehaviorPrivatable::LEADER => JTEXT::_('LIB-AN-PRIVACYLABEL-LEADERS'), LibBaseDomainBehaviorPrivatable::MUTUAL => JTEXT::_('LIB-AN-PRIVACYLABEL-MUTUALS'))); } if ($actor->isAdministrable()) { $options->append(array(LibBaseDomainBehaviorPrivatable::ADMIN => JTEXT::_('LIB-AN-PRIVACYLABEL-ADMIN'))); } else { if (is_viewer($actor)) { $options->append(array(LibBaseDomainBehaviorPrivatable::ADMIN => JTEXT::_('LIB-AN-PRIVACYLABEL-ONLYYOU'))); } else { $options->append(array(LibBaseDomainBehaviorPrivatable::ADMIN => sprintf(JTEXT::_('LIB-AN-PRIVACYLABEL-ONLYNAME'), $actor->name))); } } foreach ($options as $key => $value) { if ($actor->authorize('setprivacyvalue', array('value' => $key)) === false) { unset($options[$key]); } } $config->options = $options; if ($config->entity) { $config->append(array('selected' => $config->entity->getPermission($config->name, LibBaseDomainBehaviorPrivatable::FOLLOWER))); } if (strpos($config->name, 'access') === false) { unset($config->options[LibBaseDomainBehaviorPrivatable::GUEST]); } //trim the options based on the actor if ($config->entity && !$config->entity->eql($actor)) { $current_index = array_search($actor->access, array_keys(KConfig::unbox($config->options))); $i = 0; foreach ($config->options as $key => $value) { if ($current_index > $i) { unset($config->options[$key]); } ++$i; } } } return $this->_render('privacy', $config); }
?> <!-- TOP MENU --> <div class="span-24" style="align:center;"> <?php include "static/html/top_menu.html"; ?> </div> <?php } ?> <!-- CENTER CONTENT --> <div class="span-24 center-content"> <?php show_msgs(); if (is_loggedin() && is_admin() || is_viewer()) { if (file_exists("modules/{$MOD}/{$ENTITY}/controller.php")) { include "modules/" . $MOD . "/" . $ENTITY . "/controller.php"; } } else { if (is_loggedin() && is_supervisor()) { include "modules/admin/vehicle/controller.php"; } else { if (is_loggedin() && is_superuser()) { include "modules/admin/travel/controller.php"; } else { add_msg('SUCCESS', "Welcome to {$DOMAIN}. Please login to start using your account"); show_msgs(); } } }
<div class="view-full-image"><a href="<?php show_image_shorturl(); ?> " target="_blank"><img src="<?php show_image_url(); ?> " alt="<?php show_image_filename(); ?> " id="full_image" /></a></div> <div class="image_tools"> <?php if (is_viewer() && use_facebook_comments()) { ?> <div id="fb-root"></div> <div class="image-tools-section"> <fb:comments href="<?php show_image_viewer(); ?> " num_posts="10" width="670"></fb:comments> </div> <?php } ?> <div class="image-tools-section socialize"> <h3><?php
?> <form class="composer-form" action="<?php echo @route(); ?> " method="post"> <input type="hidden" name="composed" value="1" /> <div class="control-group"> <div class="controls"> <textarea class="input-block-level" id="note-body" name="body" cols="5" rows="3" required maxlength="5000"></textarea> </div> </div> <?php if (is_person($actor) && !is_viewer($actor)) { ?> <div class="control-group"> <div class="controls"> <label class="checkbox" for="private-flag"> <input id="private-flag" type="checkbox" name="private"> <?php echo @text('COM-NOTES-COMPOSER-PRIVATE-FLAG'); ?> </label> </div> </div> <?php } ?>