aboutsummaryrefslogtreecommitdiff
path: root/views/default/page
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-06-29 20:34:55 -0400
committercash <cash.costello@gmail.com>2011-06-29 20:34:55 -0400
commit0750728e977c04a4a358bac0496b9d31c958238f (patch)
treee556c9d9169297c109c648a51665be5638278101 /views/default/page
parent1bcdb6a23d907668c5965f908f53483be3af074f (diff)
downloadelgg-0750728e977c04a4a358bac0496b9d31c958238f.tar.gz
elgg-0750728e977c04a4a358bac0496b9d31c958238f.tar.bz2
added backward compatibility for the view page_elements/content_wrapper
Diffstat (limited to 'views/default/page')
-rw-r--r--views/default/page/elements/wrapper.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/views/default/page/elements/wrapper.php b/views/default/page/elements/wrapper.php
new file mode 100644
index 000000000..61828832d
--- /dev/null
+++ b/views/default/page/elements/wrapper.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Deprecated content wrapper view from Elgg 1.5 through 1.7
+ *
+ * @uses $vars['body'] The content to display inside content wrapper
+ * @uses $vars['subclass'] Additional css class
+ */
+
+elgg_deprecated_notice("The 'page_elements/contentwrapper' has been deprecated", 1.8);
+?>
+
+<div class="contentWrapper<?php
+
+ if (isset($vars['subclass'])) {
+ echo ' ' . $vars['subclass'];
+ }
+
+?>">
+<?php
+ echo $vars['body'];
+?>
+</div>