_binary From 39d971ee3acf72486a18f5562c97030023d67e1c Mon Sep 17 00:00:00 2001
From: epinapala <epinapala@ebay.com>
Date: Tue, 9 Sep 2014 21:49:26 -0700
Subject: [PATCH 1/3] - Added New wiki button for "Add slide" - Added new icon
 for wikibtn-slide - Display slide btn only for data-page-type is set && is
 equal to presentation

---
 css/editor.css                                 |   8 +++++++-
 resources/wiki_button_images/wikibtn-slide.png | Bin 0 -> 7047 bytes
 scripts/wiki.js                                |   4 +++-
 views/elements/groupfeed_element.php           |   6 +++---
 views/elements/wiki_element.php                |   9 ++++++++-
 5 files changed, 21 insertions(+), 6 deletions(-)
 create mode 100755 resources/wiki_button_images/wikibtn-slide.png

diff --git a/css/editor.css b/css/editor.css
index 057d591..317238f 100755
--- a/css/editor.css
+++ b/css/editor.css
@@ -170,6 +170,11 @@
         ../resources/wiki_button_images/wikibtn-search-widget.png)
         no-repeat;
 }
+
+.wikibtn-slide
+{
+    background: url(../resources/wiki_button_images/wikibtn-slide.png) no-repeat;
+}
 .wikibtn-bold:hover,
 .wikibtn-bullets:hover,
 .wikibtn-heading:hover,
@@ -181,7 +186,8 @@
 .wikibtn-search-widget:hover,
 .wikibtn-strike:hover,
 .wikibtn-table:hover,
-.wikibtn-underline:hover
+.wikibtn-underline:hover,
+.wikibtn-slide:hover
 {
     background-position: 0 -36px;
 }
diff --git a/resources/wiki_button_images/wikibtn-slide.png b/resources/wiki_button_images/wikibtn-slide.png
new file mode 100755
index 0000000000000000000000000000000000000000..4412fb76502f2648cc276d27ef915dbf7adf53ba
GIT binary patch
diff --git a/scripts/wiki.js b/scripts/wiki.js
index 8fd249f..fa1d735 100755
--- a/scripts/wiki.js
+++ b/scripts/wiki.js
@@ -49,6 +49,7 @@
  * "wikibtn-heading"
  * "wikibtn-search"
  * "wikibtn-table"
+ * "wikibtn-slide"
  * }
  */
 /**
@@ -187,7 +188,8 @@ function getStandardButtonsObject()
         'wikibtn-hyperlink': ['[[', ']]'],
         'wikibtn-bullets': ['* ' + tl['wiki_js_bullet'] + ' \n'],
         'wikibtn-numbers': ['# ' + tl['wiki_js_enum'] + ' \n'],
-        'wikibtn-hr': ['---- \n']
+        'wikibtn-hr': ['---- \n'],
+        'wikibtn-slide': ['=Slide One Title here=\n* Add Text here \n* And here \n* Also here \n....\n']
     };
 }
 /**
diff --git a/views/elements/groupfeed_element.php b/views/elements/groupfeed_element.php
index 8ca0658..57280bc 100644
--- a/views/elements/groupfeed_element.php
+++ b/views/elements/groupfeed_element.php
@@ -449,7 +449,7 @@ class GroupfeedElement extends Element implements CrawlConstants
                     ?></label></b></h2>'+
                     '<textarea class="short-text-area" '+
                     'id="comment-'+ id +'" name="description" '+
-                    'data-buttons="all,!wikibtn-search,!wikibtn-heading" '+
+                    'data-buttons="all,!wikibtn-search,!wikibtn-heading,!wikibtn-slide" '+
                     '></textarea>' +
                     '<button class="button-box float-opposite" ' +
                     'type="submit"><?php e(tl("groupfeed_element_save"));
@@ -496,7 +496,7 @@ class GroupfeedElement extends Element implements CrawlConstants
                     ?></label></b></p>' +
                     '<textarea class="short-text-area" '+
                     'id="description-'+ id +'" name="description" '+
-                    'data-buttons="all,!wikibtn-search,!wikibtn-heading" '+
+                    'data-buttons="all,!wikibtn-search,!wikibtn-heading,!wikibtn-slide" '+
                     '></textarea>' +
                     '<button class="button-box float-opposite" ' +
                     'type="submit"><?php e(tl("groupfeed_element_save"));
@@ -543,7 +543,7 @@ class GroupfeedElement extends Element implements CrawlConstants
                     ?></label></b></p>' +
                     '<textarea class="short-text-area" '+
                     'id="description-'+ id +'" name="description" '+
-                    'data-buttons="all,!wikibtn-search,!wikibtn-heading" '+
+                    'data-buttons="all,!wikibtn-search,!wikibtn-heading,!wikibtn-slide" '+
                     '>' + description + '</textarea>'+
                     '<button class="button-box float-opposite" ' +
                     'type="submit"><?php e(tl("groupfeed_element_save"));
diff --git a/views/elements/wiki_element.php b/views/elements/wiki_element.php
index f7ba60f..b315898 100644
--- a/views/elements/wiki_element.php
+++ b/views/elements/wiki_element.php
@@ -319,7 +319,14 @@ class WikiElement extends Element implements CrawlConstants
             </div>
             <div id='page-container'><textarea id="wiki-page"
                 class="tall-text-area" name="page"
-                data-buttons='all' ><?php
+                <?php 
+                if((!isset($data['page_type']) || $data['page_type'] != 'presentation')){
+                    $dataButtons = 'all,!wikibtn-slide';
+                }else{
+                    $dataButtons = 'all';
+                }?>
+                data-buttons='<?php echo $dataButtons; ?>' >
+                    <?php
                 e($data['PAGE']);
             ?></textarea>
             <div class="green"><?php
-- 
1.8.5.2 (Apple Git-48)


From 4e849e0cd9f829ba2187c2ffdb909068cf3e18d2 Mon Sep 17 00:00:00 2001
From: epinapala <epinapala@ebay.com>
Date: Sat, 13 Sep 2014 01:08:46 -0700
Subject: [PATCH 2/3] refactoring variablename data_buttons & changed echo to
 e()

---
 views/elements/wiki_element.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/views/elements/wiki_element.php b/views/elements/wiki_element.php
index b315898..eed6a99 100644
--- a/views/elements/wiki_element.php
+++ b/views/elements/wiki_element.php
@@ -321,11 +321,11 @@ class WikiElement extends Element implements CrawlConstants
                 class="tall-text-area" name="page"
                 <?php 
                 if((!isset($data['page_type']) || $data['page_type'] != 'presentation')){
-                    $dataButtons = 'all,!wikibtn-slide';
+                    $data_buttons = 'all,!wikibtn-slide';
                 }else{
-                    $dataButtons = 'all';
+                    $data_buttons = 'all';
                 }?>
-                data-buttons='<?php echo $dataButtons; ?>' >
+                data-buttons='<?php e($data_buttons); ?>' >
                     <?php
                 e($data['PAGE']);
             ?></textarea>
-- 
1.8.5.2 (Apple Git-48)


From e18fd2355573b5331a34045a16175083f2141a86 Mon Sep 17 00:00:00 2001
From: epinapala <epinapala@ebay.com>
Date: Sat, 13 Sep 2014 14:27:23 -0700
Subject: [PATCH 3/3] Modifications after feedback from professor. - Removed
 whitespace in wiki_element - Localized the sample slide content.

---
 controllers/components/social_component.php | 6 +++++-
 css/editor.css                              | 3 ++-
 locale/ar/configure.ini                     | 6 ++++++
 locale/bn/configure.ini                     | 6 ++++++
 locale/de/configure.ini                     | 6 ++++++
 locale/en-US/configure.ini                  | 6 ++++++
 locale/es/configure.ini                     | 6 ++++++
 locale/fa/configure.ini                     | 6 ++++++
 locale/fr-FR/configure.ini                  | 6 ++++++
 locale/he/configure.ini                     | 6 ++++++
 locale/hi/configure.ini                     | 6 ++++++
 locale/in-ID/configure.ini                  | 6 ++++++
 locale/it/configure.ini                     | 6 ++++++
 locale/ja/configure.ini                     | 6 ++++++
 locale/kn/configure.ini                     | 6 ++++++
 locale/ko/configure.ini                     | 6 ++++++
 locale/pl/configure.ini                     | 6 ++++++
 locale/pt/configure.ini                     | 6 ++++++
 locale/ru/configure.ini                     | 6 ++++++
 locale/te/configure.ini                     | 6 ++++++
 locale/th/configure.ini                     | 6 ++++++
 locale/tr/configure.ini                     | 6 ++++++
 locale/vi-VN/configure.ini                  | 6 ++++++
 locale/zh-CN/configure.ini                  | 6 ++++++
 scripts/wiki.js                             | 6 +++++-
 views/elements/wiki_element.php             | 6 +++---
 26 files changed, 147 insertions(+), 6 deletions(-)

diff --git a/controllers/components/social_component.php b/controllers/components/social_component.php
index a96f4f2..64e7ce4 100644
--- a/controllers/components/social_component.php
+++ b/controllers/components/social_component.php
@@ -1664,7 +1664,11 @@ EOD;
                 'wiki_js_add_hyperlink :"'. tl('wiki_js_add_hyperlink').'",'.
                 'wiki_js_link_text :"'. tl('wiki_js_link_text').'",'.
                 'wiki_js_link_url :"'. tl('wiki_js_link_url').'",'.
-                'wiki_js_placeholder :"'. tl('wiki_js_placeholder').'"'.
+                'wiki_js_placeholder :"'. tl('wiki_js_placeholder').'",'.
+                'wiki_js_slide_sample_title :"'.
+                    tl('wiki_js_slide_sample_title').'",'.
+                'wiki_js_slide_sample_bullet :"'.
+                    tl('wiki_js_slide_sample_bullet').'"'.
                 '};';
         }
         if($id != -1) {
diff --git a/css/editor.css b/css/editor.css
index 317238f..d635b89 100755
--- a/css/editor.css
+++ b/css/editor.css
@@ -173,7 +173,8 @@
 
 .wikibtn-slide
 {
-    background: url(../resources/wiki_button_images/wikibtn-slide.png) no-repeat;
+    background: url(../resources/wiki_button_images/wikibtn-slide.png) 
+        no-repeat;
 }
 .wikibtn-bold:hover,
 .wikibtn-bullets:hover,
diff --git a/locale/ar/configure.ini b/locale/ar/configure.ini
index e22b920..9d74e84 100755
--- a/locale/ar/configure.ini
+++ b/locale/ar/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = "حدد تتبع الارتباطات"
 ;
diff --git a/locale/bn/configure.ini b/locale/bn/configure.ini
index 8e9236e..91275be 100755
--- a/locale/bn/configure.ini
+++ b/locale/bn/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = ""
 ;
diff --git a/locale/de/configure.ini b/locale/de/configure.ini
index 3bfd9e9..091f573 100755
--- a/locale/de/configure.ini
+++ b/locale/de/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = ""
 ;
diff --git a/locale/en-US/configure.ini b/locale/en-US/configure.ini
index 205d882..f069aeb 100755
--- a/locale/en-US/configure.ini
+++ b/locale/en-US/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = "URL:"
 ; social_component.php line: 1663
 wiki_js_placeholder = "Search Placeholder Text"
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = "Slide Title here"
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = "Add Text here"
+;
 ; social_component.php line: 1703
 social_component_select_crawl = "Select Crawl"
 ;
diff --git a/locale/es/configure.ini b/locale/es/configure.ini
index 9792b30..8cf073d 100755
--- a/locale/es/configure.ini
+++ b/locale/es/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = "Seleccionar Rastreo"
 ;
diff --git a/locale/fa/configure.ini b/locale/fa/configure.ini
index 809cd78..0cbb5d9 100755
--- a/locale/fa/configure.ini
+++ b/locale/fa/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = "یک خزش انتخاب کنید"
 ;
diff --git a/locale/fr-FR/configure.ini b/locale/fr-FR/configure.ini
index 10cd015..556e0f1 100755
--- a/locale/fr-FR/configure.ini
+++ b/locale/fr-FR/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = ""
 ;
diff --git a/locale/he/configure.ini b/locale/he/configure.ini
index 951c4bf..0c75608 100755
--- a/locale/he/configure.ini
+++ b/locale/he/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = ""
 ;
diff --git a/locale/hi/configure.ini b/locale/hi/configure.ini
index 8b7b206..b606f2b 100755
--- a/locale/hi/configure.ini
+++ b/locale/hi/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = ""
 ;
diff --git a/locale/in-ID/configure.ini b/locale/in-ID/configure.ini
index b53e03c..c59b611 100755
--- a/locale/in-ID/configure.ini
+++ b/locale/in-ID/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = ""
 ;
diff --git a/locale/it/configure.ini b/locale/it/configure.ini
index ef20f4b..29f67a7 100755
--- a/locale/it/configure.ini
+++ b/locale/it/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = "Seleziona Scansione"
 ;
diff --git a/locale/ja/configure.ini b/locale/ja/configure.ini
index 9af5390..5bcf233 100755
--- a/locale/ja/configure.ini
+++ b/locale/ja/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = ""
 ;
diff --git a/locale/kn/configure.ini b/locale/kn/configure.ini
index d657c29..278ce9e 100755
--- a/locale/kn/configure.ini
+++ b/locale/kn/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = "ಕ್ರಾವ್ಲನ್ನು ಆಯ್ಕೆ ಮಾಡಿ"
 ;
diff --git a/locale/ko/configure.ini b/locale/ko/configure.ini
index 60318f7..63fbca1 100755
--- a/locale/ko/configure.ini
+++ b/locale/ko/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = ""
 ;
diff --git a/locale/pl/configure.ini b/locale/pl/configure.ini
index 354c7af..86088bb 100755
--- a/locale/pl/configure.ini
+++ b/locale/pl/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = ""
 ;
diff --git a/locale/pt/configure.ini b/locale/pt/configure.ini
index fadb85c..73e7513 100755
--- a/locale/pt/configure.ini
+++ b/locale/pt/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = ""
 ;
diff --git a/locale/ru/configure.ini b/locale/ru/configure.ini
index c9386eb..ab20518 100755
--- a/locale/ru/configure.ini
+++ b/locale/ru/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = ""
 ;
diff --git a/locale/te/configure.ini b/locale/te/configure.ini
index 1002603..d413a6d 100755
--- a/locale/te/configure.ini
+++ b/locale/te/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = "క్రాల్ ఎంచుకోండి"
 ;
diff --git a/locale/th/configure.ini b/locale/th/configure.ini
index 46c2037..d4677a6 100755
--- a/locale/th/configure.ini
+++ b/locale/th/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = ""
 ;
diff --git a/locale/tr/configure.ini b/locale/tr/configure.ini
index 239c751..f034a1a 100755
--- a/locale/tr/configure.ini
+++ b/locale/tr/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = ""
 ;
diff --git a/locale/vi-VN/configure.ini b/locale/vi-VN/configure.ini
index 17beadd..e4ca54e 100755
--- a/locale/vi-VN/configure.ini
+++ b/locale/vi-VN/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = "Chọn thu thập th&ocirc;ng tin"
 ;
diff --git a/locale/zh-CN/configure.ini b/locale/zh-CN/configure.ini
index 1a8c51f..c4b718f 100755
--- a/locale/zh-CN/configure.ini
+++ b/locale/zh-CN/configure.ini
@@ -915,6 +915,12 @@ wiki_js_link_url = ""
 ; social_component.php line: 1663
 wiki_js_placeholder = ""
 ;
+; social_component.php line: 1668
+wiki_js_slide_sample_title = ""
+;
+; social_component.php line: 1669
+wiki_js_slide_sample_bullet = ""
+;
 ; social_component.php line: 1703
 social_component_select_crawl = "搜尋選擇"
 ;
diff --git a/scripts/wiki.js b/scripts/wiki.js
index fa1d735..2fc32a1 100755
--- a/scripts/wiki.js
+++ b/scripts/wiki.js
@@ -189,7 +189,11 @@ function getStandardButtonsObject()
         'wikibtn-bullets': ['* ' + tl['wiki_js_bullet'] + ' \n'],
         'wikibtn-numbers': ['# ' + tl['wiki_js_enum'] + ' \n'],
         'wikibtn-hr': ['---- \n'],
-        'wikibtn-slide': ['=Slide One Title here=\n* Add Text here \n* And here \n* Also here \n....\n']
+        'wikibtn-slide': ['='+ tl['wiki_js_slide_sample_title'] +'=\n'
+                    + '* '+ tl['wiki_js_slide_sample_bullet'] +'\n'
+                    + '* '+ tl['wiki_js_slide_sample_bullet'] + '\n'
+                    + '* '+ tl['wiki_js_slide_sample_bullet'] + '\n'
+                    + '....' + '\n']
     };
 }
 /**
diff --git a/views/elements/wiki_element.php b/views/elements/wiki_element.php
index eed6a99..f999fe2 100644
--- a/views/elements/wiki_element.php
+++ b/views/elements/wiki_element.php
@@ -320,13 +320,13 @@ class WikiElement extends Element implements CrawlConstants
             <div id='page-container'><textarea id="wiki-page"
                 class="tall-text-area" name="page"
                 <?php 
-                if((!isset($data['page_type']) || $data['page_type'] != 'presentation')){
+                if((!isset($data['page_type']) || 
+                        $data['page_type'] != 'presentation')){
                     $data_buttons = 'all,!wikibtn-slide';
                 }else{
                     $data_buttons = 'all';
                 }?>
-                data-buttons='<?php e($data_buttons); ?>' >
-                    <?php
+                data-buttons='<?php e($data_buttons); ?>'><?php 
                 e($data['PAGE']);
             ?></textarea>
             <div class="green"><?php
-- 
1.8.5.2 (Apple Git-48)

