function photo_link_to_add($entity, $entity_id, $options = array()) { // Convert options string to option array if (is_string($options)) { $options = _convert_string_option($options); } $label = 'Add photo'; // CUSTOMIZE LABEL TEXT if (isset($options['label'])) { $label = $options['label']; } // ICON if (isset($options['icon']) && $options['icon'] == 'true') { use_helper('sfIcon'); $label = icon_tag('image_add') . ' ' . $label; } $url = "sfPhotoGallery/create?entity={$entity}&entity_id={$entity_id}"; $url = "@create_photo?entity={$entity}&entity_id={$entity_id}"; // swicth link to with or without modalBox if (isset($options['modalbox']) && $options['modalbox'] == 'true') { use_helper('ModalBox'); return m_link_to($label, $url, array('title' => 'upload photo')); } else { return link_to($label, $url); } }
function file_link_to_add($entity, $entity_id, $options = array()) { // Convert options string to option array if (is_string($options)) { $options = _convert_string_option($options); } $label = 'Add file'; // CUSTOMIZE LABEL TEXT if (isset($options['label'])) { $label = $options['label']; } // ICON if (isset($options['icon']) && $options['icon'] == 'true') { use_helper('sfIcon'); $label = icon_tag('folder_add') . ' ' . $label; } $url = "files/create?entity={$entity}&entity_id={$entity_id}"; // swicth link to with or without modalBox if (isset($options['modalbox']) && $options['modalbox'] == 'true') { use_helper('ModalBox'); return m_link_to($label, $url); } else { return link_to($label, $url); } }
?> </li> <li><?php echo link_to(__('Latest outings'), '@ordered_list?module=outings&orderby=date&order=desc'); ?> </li> <li><?php echo link_to(__('Search a routes'), '@filter?module=routes'); ?> </li> <li><?php echo link_to(__('Map tool'), '@map'); ?> </li> <li><?php echo m_link_to(__('cotometre'), '@tool?action=cotometre', array('title' => __('cotometre long')), array('width' => 600)); ?> </li> <li><?php $portal_config = sfConfig::get('app_portals_accident'); $text = __($portal_config['name']); $portal_url = '@document_by_id?module=portals&id=' . $portal_config['id']; echo link_to($text, $portal_url); ?> </li> <li><?php $portal_config = sfConfig::get('app_portals_firstascent'); $text = __($portal_config['name']); $portal_url = '@document_by_id?module=portals&id=' . $portal_config['id']; echo link_to($text, $portal_url); ?>
echo link_to('<b>Profile</b>', 'users/profile'); ?> </li> <?php } if ($sf_user->isAuthenticated()) { ?> <li><?php echo link_to('<b>sign out</b>', 'users/logout'); ?> </li> <?php } else { ?> <li><?php echo m_link_to('<b>sign in</b>', 'users/login', array('title' => 'Sign In'), array('width' => 400, 'height' => 180, 'afterHide' => 'modalRefresh')); ?> </li> <!--li><?php echo m_link_to('<b>Register</b>', 'users/add', array('title' => 'Register'), array('width' => 700, 'height' => 380)); ?> </li--> <?php } ?> </ul> </div>
function button_wizard($options = array()) { use_helper('ModalBox'); if (!isset($options['title'])) { $options['title'] = __('Create new outing with some help'); } if (isset($options['url'])) { $url = $options['url']; unset($options['url']); } else { $url = 'outings/wizard'; } if (!empty($html_options)) { $options = array_merge($options, $html_options); } return m_link_to(__('Create new outings'), $url, $options, array('width' => 600)); }
function m_span_button($text, $uri, $options = array()) { return m_link_to('<span class="span-button" style="padding: 1px 3px 1px 3px;">' . $text . '</span>', "{$uri}", $options); }
<li><?php echo picto_tag('action_query') . link_to(__('Search'), '@filter?module=routes'); ?> </li> <?php if ($is_connected) { ?> <li><?php echo picto_tag('action_create') . link_to(__('Add'), getMetaArticleRoute('help_guide', false, 'route')); ?> </li> <?php } ?> <li class="lilast"><?php echo picto_tag('picto_tools') . m_link_to(__('cotometre'), '@tool?action=cotometre', array('title' => __('cotometre long')), array('width' => 600)); ?> </li> </ul> </li> <li><?php echo picto_tag('picto_summits') . link_to(ucfirst(__('summits')), '@default_index?module=summits'); ?> <ul> <li<?php if (!$is_connected) { ?> class="lilast"<?php } ?> ><?php
function language_preferences_link_to() { return m_link_to(__('Set languages preferences'), 'users/sortPreferedLanguages', array('title' => __('Set your prefered language order')), array('width' => 700)); }
</label> </div> <div class="form-row"> <label for="title">Last Name: <?php echo $u->getLname(); ?> </label> </div> <div class="form-row"> <label for="title">Email: <?php echo $u->getEmail(); ?> </label> </div> <div> <!--input type="button" value="Change Password" onClick="Modalbox.show('users/changePassword', {title:' Change Password', width: 600});return false;"/--> <?php echo m_link_to('Change Password', 'users/changePassword', array('title' => 'Change Password'), array('width' => 400, 'height' => 180, 'afterHide' => 'modalRefresh')); ?> </div> </div> <?php } ?> <?php echo button_to('edit', 'users/edit'); ?> </div> </div>
?> </div> <div id="header-messages"><?php echo link_to('<span>' . ucwords(__("message center")) . $nbNewMessages . '</span>', '@show_user_mailbox'); ?> </div> <div id="header-network"><?php echo link_to('<span>' . ucwords(__("network")) . '</span>', "networks/index"); ?> </div> <div id="header-profile"><?php echo link_to('<span>' . ucwords(__("profile")) . '</span>', '@edit_user_profile'); ?> </div> <div id="header-suggest"><?php echo m_link_to('<span>' . ucwords(__("quick suggest")) . '</span>', 'features/kwiky', array('title' => __('Give us a quick suggestion'))); ?> </div> <?php } ?> </div> <div id="page-header-logo" onclick="location.href='<?php echo 'http://' . $this->getContext()->getRequest()->getHost() . url_for('@homepage'); ?> ';" style="cursor: pointer;"> </div> </div> <div id="left-menubar"> <div id="navlist-holder"> <ul id="navbar">