本文整理汇总了PHP中aTools::getRealUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP aTools::getRealUrl方法的具体用法?PHP aTools::getRealUrl怎么用?PHP aTools::getRealUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类aTools
的用法示例。
在下文中一共展示了aTools::getRealUrl方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: slot
<?php
// points to our slot's edit action. Setting the ajax parameter
?>
<?php
// to false causes the edit action to redirect to the newly
?>
<?php
// updated page.
?>
<?php
slot("a-slot-controls-{$pageid}-{$name}-{$permid}");
?>
<li class="a-controls-item choose-images">
<?php
echo link_to(__('Choose images', null, 'apostrophe'), 'aMedia/select', array('query_string' => http_build_query(array_merge($options['constraints'], array("multiple" => true, "aMediaIds" => implode(",", $itemIds), "type" => "image", "label" => __("Create a Slideshow", null, 'apostrophe'), "after" => url_for("aSlideshowSlot/edit") . "?" . http_build_query(array("slot" => $name, "slug" => $slug, "permid" => $permid, "actual_slug" => aTools::getRealPage()->getSlug(), 'actual_url' => aTools::getRealUrl(), "noajax" => 1))))), 'class' => 'a-btn icon a-media'));
?>
</li>
<?php
include_partial('a/variant', array('pageid' => $pageid, 'name' => $name, 'permid' => $permid, 'slot' => $slot));
?>
<?php
end_slot();
?>
<?php
}
?>
示例2: 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
}
}
?>
示例3: url_for
<?php
// Make sure we target the administrative media engine page and not a public instance
aRouteTools::pushTargetEnginePage('/admin/media');
$after = url_for($action) . "?" . http_build_query(array("slot" => $name, "slug" => $slug, "actual_slug" => aTools::getRealPage() ? aTools::getRealPage()->getSlug() : 'global', "actual_url" => aTools::getRealUrl(), "permid" => $permid, "noajax" => 1));
echo link_to($buttonLabel, 'aMedia/select', array('query_string' => http_build_query(array_merge($constraints, array("aMediaId" => $itemId, "type" => $type, "label" => $label, "after" => $after))), 'class' => $class));
aRouteTools::popTargetEnginePage('aMedia');