本文整理汇总了PHP中a_js_call函数的典型用法代码示例。如果您正苦于以下问题:PHP a_js_call函数的具体用法?PHP a_js_call怎么用?PHP a_js_call使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了a_js_call函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
?>
<?php
}
?>
<?php
foreach ($form as $row) {
?>
<?php
echo $row->isHidden() ? '' : $row->renderRow();
?>
<?php
}
?>
<ul class="a-ui a-controls">
<li class="a-admin-action-save"><input type="submit" value="<?php
echo a_('Submit');
?>
" class="a-btn a-show-busy"></li>
</ul>
</form>
<?php
a_js_call('aPollSubmitPollForm(?)', array('form' => '#a-poll-form-' . $poll->getId(), 'container' => '#a-slot-content-' . $pageid . '-' . $name . '-' . $permid, 'url' => url_for($action)));
?>
</div>
</div>
示例2: a_js_call
<h3 class="a-map-title"><?php
echo $options['title'];
?>
</h3>
<?php
}
?>
<div class="a-map" id="a-map-<?php
echo "{$pageid}-{$name}-{$permid}";
?>
" style="width:<?php
echo $options['width'];
?>
px;height:<?php
echo $options['height'];
?>
px;">
<span class="a-map-address"><?php
echo $options['address'] ? $options['address'] : '';
?>
</span>
</div>
<?php
a_js_call('aMapSlot.createGoogleMap(?)', array('title' => $options['title'], 'longitude' => $options['longitude'], 'latitude' => $options['latitude'], 'zoom' => $options['zoom'], 'controls' => $options['controls'] ? array('pan' => $options['controls']['pan'], 'zoom' => $options['controls']['zoom'], 'scale' => $options['controls']['scale']) : false, 'container' => '#a-map-' . $pageid . '-' . $name . '-' . $permid));
?>
<?php
}
示例3: include_partial
?>
<?php
include_partial('aNavigation/accordion', array('nav' => $item['children'], 'draggable' => $draggable, 'maxDepth' => $maxDepth - 1, 'name' => $name, 'nest' => $nest + 1, 'dragIcon' => $dragIcon, 'class' => $class, 'active' => $active));
?>
<?php
}
?>
<?php
if ($dragIcon && $draggable) {
?>
<?php
echo a_js_button('Drag', array('icon', 'a-drag', 'no-label', 'alt', 'no-bg'));
?>
<?php
}
?>
</li>
<?php
}
?>
</ul>
<?php
if ($draggable) {
?>
<?php
a_js_call('apostrophe.accordionEnhancements(?)', array('name' => $name, 'nest' => $nest, 'url' => url_for('a/sortNav') . '?page=' . $item['id']));
}
示例4: include_slot
<div class="a-media-footer clearfix">
<div class="a-media-library-controls a-ui bottom">
<?php
include_slot('a-media-library-controls');
?>
</div>
</div>
</div>
<?php
// Media Sidebar is wrapped slot('a-subnav')
include_component('aMedia', 'browser');
?>
<?php
a_js_call('apostrophe.selectOnFocus(?)', '.a-select-on-focus');
?>
<?php
if ($layout['name'] != "four-up") {
?>
<?php
a_js_call('apostrophe.mediaEmbeddableToggle(?)', array('selector' => '.a-media-item.a-embedded-item'));
}
?>
<?php
if ($layout['name'] == "four-up" && !$selecting) {
a_js_call('apostrophe.mediaFourUpLayoutEnhancements(?)', array('selector' => '.four-up .a-media-item.a-type-image'));
}
示例5: use_helper
if ($sf_params->get('module') != 'aFeedback') {
use_helper('a');
?>
<div class="a-feedback-footer clearfix" id="a-feedback-footer">
<?php
echo a_js_button(a_('Submit a Bug Report'), array('a-link', 'a-feedback'), 'a-feedback-link');
?>
<div class="a-feedback-form-container clearfix" id="a-feedback-form-container">
<?php
include_partial('aFeedback/feedback', array('form' => new aFeedbackForm(), 'feedbackSubmittedBy' => false, 'failed' => false));
?>
</div>
<?php
if ($reportSubmittedBy = $sf_user->getFlash('reportSubmittedBy')) {
?>
<div class="a-feedback-submitted clearfix"><span class="submitted-by"><?php
echo $reportSubmittedBy;
?>
</span> – <?php
echo a_('Thank you for submitting a bug report.');
?>
</div>
<?php
}
?>
</div>
<?php
a_js_call('aFeedback.feedbackForm(?)', array('url' => url_for('aFeedback/feedback') . "?" . http_build_query(array('section' => $_SERVER['REQUEST_URI']))));
}
示例6: content_tag
<li>
<?php
// We want to eliminate jQuery helpers, but writing this link as raw HTML is tricky because
?>
<?php
// of the need to quote the title option right. And link_to doesn't like '#' as a URL. So we use
?>
<?php
// content_tag, Symfony's lower-level helper for outputting any tag and its content programmatically
?>
<?php
echo content_tag('a', '<span class="icon"></span>' . (isset($label) ? a_($label) : a_("Edit")), array('href' => '#edit-slot-' . $pageid . '-' . $name . '-' . $permid, 'id' => "a-slot-edit-{$pageid}-{$name}-{$permid}", 'class' => isset($class) ? $class : 'a-btn icon a-edit', 'title' => isset($title) ? $title : a_('Edit')));
?>
<?php
a_js_call('apostrophe.slotEnableEditButton(?, ?, ?, ?, ?)', $pageid, $name, $permid, url_for($slot->type . 'Slot/ajaxEditView'), aTools::getRealUrl());
?>
</li>
<?php
if ($controlsSlot) {
?>
<?php
end_slot();
?>
<?php
}
}
?>
示例7: a_
<?php
$w = $form['title_or_tag'];
?>
<input type="radio" id="<?php
echo $w->renderId();
?>
-title" name="<?php
echo $w->renderName();
?>
" value="title" <?php
echo $w->getValue() === "title" ? 'checked' : '';
?>
/>
<h4><label for="<?php
echo $w->renderId();
?>
-title"><?php
echo a_('By Title');
?>
</label></h4>
<div class="a-form-row blog-posts">
<?php
echo $form['blog_posts']->render();
?>
</div>
</div>
</div>
<?php
a_js_call('aBlog.slotEditView(?)', array('formName' => $form->getName(), 'autocompleteUrl' => url_for("aBlogAdmin/search"), 'class' => 'blog-posts', 'selfLabelSelector' => '#' . $w->renderId() . '-title', 'debug' => false));
示例8: isset
<?php
// Compatible with sf_escaping_strategy: true
$name = isset($name) ? $sf_data->getRaw('name') : null;
$options = isset($options) ? $sf_data->getRaw('options') : null;
$type = isset($type) ? $sf_data->getRaw('type') : null;
use_helper('a');
?>
<?php
include_component('a', 'area', array('name' => $name, 'refresh' => true, 'addSlot' => $type, 'preview' => false, 'options' => $options));
?>
<?php
a_js_call('apostrophe.afterAddingSlot(?)', $name);
include_partial('a/globalJavascripts');
示例9: use_helper
<?php
use_helper('a');
use_javascript('/sfDoctrineActAsTaggablePlugin/js/pkTagahead.js');
$options = array('choose-one' => a_('Choose Categories'));
if (sfContext::getInstance()->getUser()->hasCredential(aMediaTools::getOption('admin_credential'))) {
?>
<?php
$options['add'] = a_('+ New Category');
}
a_js_call('aMultipleSelectAll(?)', $options);
示例10: __
echo $id;
?>
" class="a-slideshow-controls blog">
<li class="a-arrow-btn icon a-arrow-left alt"><span class="icon"></span><?php
echo __('Previous', null, 'apostrophe');
?>
</li>
<?php
if ($options['position']) {
?>
<li class="a-slideshow-position">
<span class="a-slideshow-position-head">1</span> of <span class="a-slideshow-position-total"><?php
echo count($aBlogPosts);
?>
</span>
</li>
<?php
}
?>
<li class="a-arrow-btn icon a-arrow-right alt"><span class="icon"></span><?php
echo __('Next', null, 'apostrophe');
?>
</li>
</ul>
<?php
}
?>
<?php
a_js_call('apostrophe.slideshowSlot(?)', array('debug' => true, 'slideshowSelector' => '#a-blog-slideshow-' . $id, 'slideshowItemsSelector' => '.a-blog-item', 'id' => $id, 'position' => $options['position'], 'interval' => $options['interval'], 'transition' => $options['transition'], 'duration' => $options['duration'], 'title' => $title));
示例11: slot
slot('body_class', $body_class);
?>
<?php
$i = 1;
?>
<?php
slot('a-page-header');
?>
<?php
include_partial('aMedia/mediaHeader', array('uploadAllowed' => $uploadAllowed, 'embedAllowed' => $embedAllowed));
end_slot();
?>
<div class="a-media-library">
<div class="a-media-items">
<?php
include_partial('aMedia/mediaItem', array('mediaItem' => $mediaItem, 'layout' => $layout, 'i' => $i, 'selecting' => $selecting, 'autoplay' => true));
?>
</div>
</div>
<?php
// Media Sidebar is wrapped slot('a-subnav')
include_component('aMedia', 'browser');
?>
<?php
a_js_call('apostrophe.selectOnFocus(?)', '.a-select-on-focus');
示例12: link_to
<div class="a-audio-slider-wrapper">
<div class="a-audio-volume a-audio-slider" id="a-audio-volume-<?php
echo $uniqueID;
?>
">
<a href="#" class="a-audio-slider-handle ui-slider-handle">Volume</a>
</div>
</div>
</div>
<div id="a-audio-player-<?php
echo $uniqueID;
?>
" class="a-audio-player"></div>
<?php
if ($download) {
?>
<div class="a-audio-download"><?php
echo link_to(__("Download Audio File", null, 'apostrophe'), "aMediaBackend/original?" . http_build_query(array("slug" => $item->getSlug(), "format" => $item->getFormat())), array('class' => 'a-download'));
?>
</div>
<?php
}
?>
</div>
<?php
a_js_call('apostrophe.audioPlayerSetup(?, ?)', "#a-audio-player-container-{$uniqueID}", url_for('aMediaBackend/original?' . http_build_query(array('slug' => $item->getSlug(), 'format' => $item->getFormat()))));
示例13: slot
<?php
slot("a-slot-controls-{$pageid}-{$name}-{$permid}");
?>
<?php
if ($options['image']) {
?>
<?php
include_partial('aImageSlot/choose', array('action' => 'aButtonSlot/image', 'buttonLabel' => a_get_option($options, 'chooseLabel', a_('Choose Image')), 'label' => a_get_option($options, 'browseLabel', a_('Select an Image')), 'class' => 'a-btn icon a-media', 'type' => 'image', 'constraints' => $options['constraints'], 'itemId' => $itemId, 'name' => $name, 'slug' => $slug, 'permid' => $permid));
?>
<?php
}
?>
<?php
include_partial('a/simpleEditWithVariants', array('pageid' => $pageid, 'name' => $name, 'permid' => $permid, 'slot' => $slot, 'page' => $page, 'controlsSlot' => false, 'label' => a_get_option($options, 'editLabel', a_('Edit'))));
?>
<?php
end_slot();
?>
<?php
}
?>
<?php
include_partial('aButtonSlot/' . $options['itemTemplate'] . 'Template', array('dimensions' => $dimensions, 'constraints' => $options['constraints'], 'editable' => $editable, 'item' => $item, 'itemId' => $itemId, 'name' => $name, 'options' => $options, 'page' => $page, 'pageid' => $pageid, 'permid' => $permid, 'slot' => $slot, 'slug' => $slug, 'embed' => $embed));
?>
<?php
a_js_call('apostrophe.buttonSlot(?)', array('button' => '#a-button-' . $pageid . '-' . $name . '-' . $permid, 'rollover' => $options['rollover'] && $options['link'] ? $options['rollover'] : false));
示例14: array
echo $form['email_address']->renderLabel(null, array('class' => 'a-hidden'));
?>
<div class="a-form-field">
<?php
echo $form['email_address']->render();
?>
</div>
<?php
echo $form['email_address']->renderError();
?>
<div class="help">
<?php
echo __('We can email you instructions to reset your password.', null, 'sf_guard');
?>
</div>
</div>
<div class="a-form-row submit clearfix">
<input type="submit" class="a-btn big a-submit" name="change" value="<?php
echo __('Reset Password', null, 'apostrophe');
?>
" />
</div>
</form>
</div>
<?php
a_js_call('apostrophe.selfLabel(?)', array('selector' => '#forgot_password_email_address', 'title' => 'Email', 'select' => true, 'focus' => true));
示例15: isset
$variant = isset($variant) ? $sf_data->getRaw('variant') : null;
$slot = isset($slot) ? $sf_data->getRaw('slot') : null;
// 1.3 and up don't do this automatically (no common filter)
// Note that you cannot add more JS and CSS files in an ajax slot update. You are
// expected to load those with the page. This avoids a lot of chicken and egg problems
// with double-loading of CSS and JS files. Prior to this commit there was code here to
// include CSS and JS, however it didn't work anyway - that code was run before a_slot_body and
// therefore never had anything to add
use_helper('a');
a_slot_body($name, $type, $permid, $options, $validationData, $editorOpen, true);
if (!$slot->isNew()) {
?>
<?php
a_js_call('apostrophe.slotNotNew(?, ?, ?)', $pageid, $name, $permid);
}
a_js_call('apostrophe.areaUpdateMoveButtons(?, ?, ?)', url_for('a/moveSlot'), $pageid, $name);
?>
<?php
if (isset($variant)) {
?>
<?php
a_js_call('apostrophe.slotHideVariantsMenu(?)', "#a-{$pageid}-{$name}-{$permid}-variant ul.a-variant-options");
}
?>
<?php
include_partial('a/globalJavascripts');
?>