* @param int $user_guid The GUID of the user
* @param string $subtype The object subtype
* @param int $limit The number of entities to display on a page
- * @param bool $fullview Whether or not to display the full view (default: true)
+ * @param bool $full_view Whether or not to display the full view (default: true)
* @param bool $listtypetoggle Whether or not to allow you to flip to gallery mode (default: true)
* @param bool $pagination Whether to display pagination (default: true)
* @param int $timelower The earliest time the entity can have been created. Default: all
*
* @return string The list in a form suitable to display
*/
-function list_user_friends_objects($user_guid, $subtype = "", $limit = 10, $fullview = true,
+function list_user_friends_objects($user_guid, $subtype = "", $limit = 10, $full_view = true,
$listtypetoggle = true, $pagination = true, $timelower = 0, $timeupper = 0) {
$offset = (int) get_input('offset');
$entities = get_user_friends_objects($user_guid, $subtype, $limit, $offset,
$timelower, $timeupper);
- return elgg_view_entity_list($entities, $count, $offset, $limit, $fullview,
+ return elgg_view_entity_list($entities, $count, $offset, $limit, $full_view,
$listtypetoggle, $pagination);
}
* - ElggEntity 'entity' The entity being viewed
*
* Other common view $vars paramters:
- * - bool 'full' Whether to show a full or condensed view.
+ * - bool 'full_view' Whether to show a full or condensed view.
*
* @tip This function can automatically appends annotations to entities if in full
* view and a handler is registered for the entity:annotate. See {@trac 964} and
$autofeed = true;
$defaults = array(
- 'full' => false,
+ 'full_view' => false,
);
if (is_array($vars)) {
} else {
elgg_deprecated_notice("Update your use of elgg_view_entity()", 1.8);
$vars = array(
- 'full' => $vars,
+ 'full_view' => $vars,
);
}
}
// Marcus Povey 20090616 : Speculative and low impact approach for fixing #964
- if ($vars['full']) {
- $annotations = elgg_view_entity_annotations($entity, $vars['full']);
+ if ($vars['full_view']) {
+ $annotations = elgg_view_entity_annotations($entity, $vars['full_view']);
if ($annotations) {
$contents .= $annotations;
* - ElggEntity 'annotation' The annotation being viewed.
*
* @param ElggAnnotation $annotation The annotation to display
- * @param bool $full Display the full view
+ * @param bool $full_view Display the full view?
* @param bool $bypass If false, will not pass to a custom
* template handler. {@see set_template_handler()}
* @param bool $debug Complain if views are missing
*
* @return string HTML (etc) to display
*/
-function elgg_view_annotation(ElggAnnotation $annotation, $full = true, $bypass = true, $debug = false) {
+function elgg_view_annotation(ElggAnnotation $annotation, $full_view = true, $bypass = true, $debug = false) {
global $autofeed;
$autofeed = true;
$params = array(
'annotation' => $annotation,
- 'full' => $full,
+ 'full_view' => $full_view,
);
$view = $annotation->view;
*
* This is called automatically by the framework from {@link elgg_view_entity()}
*
- * @param ElggEntity $entity Entity
- * @param bool $full Full view?
+ * @param ElggEntity $entity Entity
+ * @param bool $full_view Display full view?
*
* @return mixed string or false on failure
* @todo Change the hook name.
*/
-function elgg_view_entity_annotations(ElggEntity $entity, $full = true) {
+function elgg_view_entity_annotations(ElggEntity $entity, $full_view = true) {
if (!$entity) {
return false;
}
$annotations = elgg_trigger_plugin_hook('entity:annotate', $entity_type,
array(
'entity' => $entity,
- 'full' => $full,
+ 'full_view' => $full_view,
)
);
* @package Blog
*/
-$full = elgg_extract('full', $vars, FALSE);
+$full = elgg_extract('full_view', $vars, FALSE);
$blog = elgg_extract('entity', $vars, FALSE);
if (!$blog) {
* @package ElggBookmarks
*/
-$full = elgg_extract('full', $vars, FALSE);
+$full = elgg_extract('full_view', $vars, FALSE);
$bookmark = elgg_extract('entity', $vars, FALSE);
if (!$bookmark) {
$image_url = elgg_format_url($image_url);
$download_url = elgg_get_site_url() . "mod/file/download.php?file_guid={$vars['entity']->getGUID()}";
-if ($vars['full'] && $smallthumb = $vars['entity']->smallthumb) {
+if ($vars['full_view'] && $smallthumb = $vars['entity']->smallthumb) {
echo <<<HTML
<div class="file-photo">
<a href="$download_url"><img class="elgg-photo" src="$image_url" /></a>
* @package ElggFile
*/
-$full = elgg_extract('full', $vars, FALSE);
+$full = elgg_extract('full_view', $vars, FALSE);
$file = elgg_extract('entity', $vars, FALSE);
if (!$file) {
'subtype' => 'groupforumtopic',
'order_by' => 'e.last_action desc',
'limit' => 40,
- 'fullview' => false,
+ 'full_view' => false,
));
break;
case 'newest':
}
-if ($vars['full']) {
+if ($vars['full_view']) {
echo elgg_view("groups/profile/profile_block", $vars);
} else {
// brief view
* @package ElggGroups
*/
-$full = elgg_extract('full', $vars, FALSE);
+$full = elgg_extract('full_view', $vars, FALSE);
$topic = elgg_extract('entity', $vars, FALSE);
if (!$topic) {
* Message board post
*
* @uses $vars['annotation'] ElggAnnotation object
- * @uses $vars['full'] Display fill view or brief view
+ * @uses $vars['full_view'] Display fill view or brief view
*/
$vars['delete_action'] = 'action/messageboard/delete';
* @package ElggFile
*/
-$full = elgg_extract('full', $vars, false);
+$full = elgg_extract('full_view', $vars, false);
$message = elgg_extract('entity', $vars, false);
if (!$message) {
$content = elgg_view('object/page_top', array(
'entity' => $page,
'revision' => $annotation,
- 'full' => true,
+ 'full_view' => true,
));
$sidebar = elgg_view('pages/sidebar/history', array('page' => $page));
*
* @package ElggPages
*
- * @uses $vars['entity'] The page object
- * @uses $vars['full'] Whether to display the full view
- * @uses $vars['revision'] This parameter not supported by elgg_view_entity()
+ * @uses $vars['entity'] The page object
+ * @uses $vars['full_view'] Whether to display the full view
+ * @uses $vars['revision'] This parameter not supported by elgg_view_entity()
*/
-$full = elgg_extract('full', $vars, FALSE);
+$full = elgg_extract('full_view', $vars, FALSE);
$page = elgg_extract('entity', $vars, FALSE);
$revision = elgg_extract('revision', $vars, FALSE);
*/
-$full = elgg_extract('full', $vars, FALSE);
+$full = elgg_extract('full_view', $vars, FALSE);
$post = elgg_extract('entity', $vars, FALSE);
if (!$post) {
* Elgg generic comment view
*
* @uses $vars['annotation'] ElggAnnotation object
- * @uses $vars['full'] Display fill view or brief view
+ * @uses $vars['full_view'] Display fill view or brief view
*/
if (!isset($vars['annotation'])) {
return true;
}
-$full_view = elgg_extract('full', $vars, true);
+$full_view = elgg_extract('full_view', $vars, true);
$comment = $vars['annotation'];
if (!$plugin->isValid()) {
echo elgg_view('object/plugin/invalid', $vars);
-} elseif ($vars['full']) {
+} elseif ($vars['full_view']) {
echo elgg_view('object/plugin/advanced', $vars);
} else {
echo elgg_view('object/plugin/simple', $vars);
$num_columns = 4;
-// @todo standardize on full_view - will require backward compatible code
-if (isset($vars['full_view'])) {
- $vars['full'] = $vars['full_view'];
-}
-
if ($pagination && $count) {
$nav .= elgg_view('navigation/pagination', array(
'offset' => $offset,
$offset_key = elgg_extract('offset_key', $vars, 'offset');
$position = elgg_extract('position', $vars, 'after');
-// @todo standardize on full_view - will require backward compatible code
-if (isset($vars['full_view'])) {
- $vars['full'] = $vars['full_view'];
-}
-
$list_class = 'elgg-list';
if (isset($vars['list_class'])) {
$list_class = "{$vars['list_class']} $list_class";
<?php
$entities = $vars['entities'];
-$fullview = $vars['fullview'];
+$full_view = $vars['full_view'];
if (is_array($entities) && sizeof($entities) > 0) {
foreach($entities as $entity) {
- echo elgg_view_entity($entity, $fullview);
+ echo elgg_view_entity($entity, $full_view);
}
}