function a_submit_button($label, $classes = array(), $name = null) { $s = '<input type="submit" value="' . a_entities($label) . '" class="a-btn a-submit ' . implode(' ', $classes) . '" '; if (!is_null($name)) { $s .= 'name="' . a_entities($name) . '" '; } $s .= '/>'; return $s; }
<ul class="a-ui a-media-linked-accounts"> <li><h5>Your Accounts</h5></li> <?php foreach ($accounts as $account) { ?> <li> <ul class="a-media-linked-account"> <li class="a-service a-<?php echo $account->service; ?> "><?php echo $account->service; ?> </li> <li class="a-account"><?php echo a_entities($account->username); ?> </li> <?php if (isset($form)) { ?> <li class="a-actions"><?php echo a_button(a_('Remove'), url_for('aMedia/linkRemoveAccount?id=' . $account->id), array('icon', 'a-close-small', 'no-label', 'no-bg'), null, null, 'Remove'); ?> </li> <?php } ?> </ul> </li> <?php
// Compatible with sf_escaping_strategy: true $results = isset($results) ? $sf_data->getRaw('results') : null; $account = isset($account) ? $sf_data->getRaw('account') : null; $name = isset($name) ? $sf_data->getRaw('name') : null; $description = isset($description) ? $sf_data->getRaw('description') : null; $service = isset($service) ? $sf_data->getRaw('service') : null; ?> <?php use_helper('a'); ?> <hr class="a-hr"/> <h4 class="a-account-preview-name">Account: <span><?php echo a_entities($name); ?> </span></h4> <h5 class="a-account-preview-description"><?php echo $description; ?> </h5> <ul class="a-account-preview-recent"> <?php foreach ($results['results'] as $result) { ?> <li><?php echo $service->embed($result['id'], aMediaTools::getOption('video_account_preview_width'), aMediaTools::getOption('video_account_preview_height')); ?> </li> <?php
</form> <form method="POST" action="<?php echo url_for('a_blog_admin_updateSlug', $a_blog_item); ?> " id="a-blog-item-permalink-interface" class="a-blog-item-permalink-interface a-ui clearfix"> <div class="a-blog-item-permalink-wrapper url"> <span><?php echo aTools::urlForPage($a_blog_item->findBestEngine()->getSlug()) . '/'; echo date('Y/m/d/', strtotime($a_blog_item->getPublishedAt())); ?> </span> </div> <div class="a-blog-item-permalink-wrapper slug"> <input type="text" name="slug" class="a-slug" value="<?php echo a_entities($a_blog_item->slug); ?> "> <ul class="a-ui a-controls blog-slug"> <li><?php echo a_anchor_submit_button(a_('Save'), array('a-save', 'mini')); ?> </li> <li><a href="#" class="a-btn icon a-cancel no-label mini"><span class="icon"></span><?php echo a_('Cancel'); ?> </a></li> </ul> </div> </form>