]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
updated the plugins that have already been updated to 1.8 html/css to use divs rather...
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 12 Feb 2011 16:40:05 +0000 (16:40 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 12 Feb 2011 16:40:05 +0000 (16:40 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8163 36083f99-b078-4883-b0ff-0f9b5a30f544

19 files changed:
mod/blog/views/default/forms/blog/save.php
mod/blog/views/default/widgets/blog/edit.php
mod/categories/views/default/input/categories.php
mod/diagnostics/views/default/forms/diagnostics/download.php
mod/file/views/default/forms/file/upload.php
mod/file/views/default/widgets/filerepo/edit.php
mod/groups/views/default/widgets/a_users_groups/edit.php
mod/invitefriends/views/default/forms/invitefriends/invite.php
mod/messages/views/default/forms/messages/reply.php
mod/messages/views/default/forms/messages/send.php
mod/notifications/views/default/forms/notificationsettings/groupsave.php
mod/notifications/views/default/forms/notificationsettings/save.php
mod/notifications/views/default/notifications/subscriptions/collections.php
mod/notifications/views/default/notifications/subscriptions/personal.php
mod/pages/views/default/forms/pages/edit.php
mod/pages/views/default/widgets/pages/edit.php
mod/reportedcontent/views/default/reportedcontent/form.php
mod/reportedcontent/views/default/widgets/reportedcontent/edit.php
mod/twitterservice/views/default/usersettings/twitterservice/edit.php

index 3dd0aff6a8407aaa4fe151eb9d3717d26c2433e2..47f306ba1ab3411e9fe104d1e02bd564199b126a 100644 (file)
@@ -106,45 +106,45 @@ echo <<<___HTML
 
 $draft_warning
 
-<p>
+<div>
        <label for="blog_title">$title_label</label>
        $title_input
-</p>
+</div>
 
-<p>
+<div>
        <label for="blog_excerpt">$excerpt_label</label>
        $excerpt_input
-</p>
+</div>
 
 <label for="blog_description">$body_label</label>
 $body_input
 <br />
 
-<p>
+<div>
        <label for="blog_tags">$tags_label</label>
        $tags_input
-</p>
+</div>
 
-<p>
+<div>
        <label for="blog_comments_on">$comments_label</label>
        $comments_input
-</p>
+</div>
 
-<p>
+<div>
        <label for="blog_access_id">$access_label</label>
        $access_input
-</p>
+</div>
 
-<p>
+<div>
        <label for="blog_status">$status_label</label>
        $status_input
-</p>
+</div>
 
 $categories_input
 
-<p class="elgg-subtext pvm mbn bta">
+<div class="elgg-subtext pvm mbn bta">
        $save_status <span class="blog-save-status-time">$saved</span>
-</p>
+</div>
 
 $guid_input
 $container_guid_input
index fa2dac9aaac88a7b074b1f866edf96a6c1ba3c74..4c3b1d4e284d87e20e9086cdd55f2d285922d694 100644 (file)
@@ -16,7 +16,7 @@ $params = array(
 $dropdown = elgg_view('input/dropdown', $params);
 
 ?>
-<p>
+<div>
        <?php echo elgg_echo('blog:numbertodisplay'); ?>:
        <?php echo $dropdown; ?>
-</p>
+</div>
index 6f57a0c292f333c792486ef3ac6f1311af34555a..9b7371e4c45ddea8b7f82b0ae6948d4649d6e805 100644 (file)
@@ -25,7 +25,7 @@ if (!empty($categories)) {
 
        ?>
 
-<p class="categories">
+<div class="categories">
        <label><?php echo elgg_echo('categories'); ?></label><br />
        <?php
                echo elgg_view('input/checkboxes', array(
@@ -36,7 +36,7 @@ if (!empty($categories)) {
 
        ?>
        <input type="hidden" name="universal_category_marker" value="on" />
-</p>
+</div>
 
        <?php
 
index de19332f10474ad3f5a6e3daebe3cc36ead643c1..b0abe84344c9a93649e5695b8d007352e5e2c398 100644 (file)
@@ -1,2 +1,5 @@
 <?php
+/**
+ * Diagnostics download form
+ */
 echo elgg_view('input/submit', array('value' => elgg_echo('diagnostics:download')));
\ No newline at end of file
index 2ab1ce3e5cbc20ebaa48b9052812e49162c478ba..06b97388bc87f6039fab214aa299e8c8e53e3e8d 100644 (file)
@@ -21,35 +21,35 @@ if ($guid) {
 }
 
 ?>
-<p>
+<div>
        <label><?php echo $file_label; ?></label><br />
        <?php echo elgg_view('input/file', array('internalname' => 'upload')); ?>
-</p>
-<p>
+</div>
+<div>
        <label><?php echo elgg_echo('title'); ?></label><br />
        <?php echo elgg_view('input/text', array('internalname' => 'title', 'value' => $title)); ?>
-</p>
-<p>
+</div>
+<div>
        <label><?php echo elgg_echo('description'); ?></label>
        <?php echo elgg_view('input/longtext', array('internalname' => 'description', 'value' => $desc)); ?>
-</p>
-<p>
+</div>
+<div>
        <label><?php echo elgg_echo('tags'); ?></label>
        <?php echo elgg_view('input/tags', array('internalname' => 'tags', 'value' => $tags)); ?>
-</p>
+</div>
 <?php
 
 $categories = elgg_view('input/categories', $vars);
 if ($categories) {
-       echo "<p>$categories</p>";
+       echo $categories;
 }
 
 ?>
-<p>
+<div>
        <label><?php echo elgg_echo('access'); ?></label><br />
        <?php echo elgg_view('input/access', array('internalname' => 'access_id', 'value' => $access_id)); ?>
-</p>
-<p>
+</div>
+<div>
 <?php
 
 echo elgg_view('input/hidden', array('internalname' => 'container_guid', 'value' => $container_guid));
@@ -66,4 +66,4 @@ if ($guid) {
 echo elgg_view('input/submit', array('value' => elgg_echo("save")));
 
 ?>
-</p>
+</div>
index 7da7e94013cf052b42af9e64e97024e7db4cf68d..6de77fc78c01d3ae2393353829152ea2a300dde7 100644 (file)
@@ -19,7 +19,7 @@ $params = array(
 $dropdown = elgg_view('input/dropdown', $params);
 
 ?>
-<p>
+<div>
        <?php echo elgg_echo('file:num_files'); ?>:
        <?php echo $dropdown; ?>
-</p>
+</div>
index c7391620e0d4808c20ea6d625c752f1adca08130..4d61b3259cdac7cb7ae912e7b29b5164b14ca9a9 100644 (file)
@@ -19,7 +19,7 @@ $params = array(
 $dropdown = elgg_view('input/dropdown', $params);
 
 ?>
-<p>
+<div>
        <?php echo elgg_echo('groups:widget:num_display'); ?>:
        <?php echo $dropdown; ?>
-</p>
+</div>
index 555311dd08bc04df71b0da706dd3d6521bffd6fd..2597598de9a4c0530b1c2caabab35306e0c2b779 100644 (file)
@@ -13,18 +13,18 @@ if (elgg_get_config('allow_registration')) {
        $default = elgg_echo('invitefriends:message:default', array($site->name));
 
        echo <<< HTML
-<p class="margin-top">
+<div>
        <label>
                $introduction
                <textarea class="elgg-input-textarea" name="emails" ></textarea>
        </label>
-</p>
-<p>
+</div>
+<div>
        <label>
                $message
                <textarea class="elgg-input-textarea" name="emailmessage" >$default</textarea>
        </label>
-</p>
+</div>
 HTML;
 
        echo elgg_view('input/submit', array('value' => elgg_echo('send')));
index 22c982ec2d8c36caa6897e14535b83c68c55e8d1..4c1832672725f33fa53eba800bd0395073ee272e 100644 (file)
@@ -17,25 +17,25 @@ echo elgg_view('input/hidden', array(
 ));
 ?>
 
-<p>
+<div>
        <label><?php echo elgg_echo("messages:title"); ?>: <br /></label>
        <?php echo elgg_view('input/text', array(
                'internalname' => 'subject',
                'value' => $reply_title,
        ));
        ?>
-</p>
-<p>
+</div>
+<div>
        <label><?php echo elgg_echo("messages:message"); ?>:</label>
        <?php echo elgg_view("input/longtext", array(
                'internalname' => 'body',
                'value' => '',
        ));
        ?>
-</p>
-<p>
+</div>
+<div>
        <?php echo elgg_view('input/submit', array('value' => elgg_echo('messages:send'))); ?>
-</p>
+</div>
 
 <script type="text/javascript">
 $(document).ready(function() {
index 214ff23f9ee01bb9d37b184763c9e16e1991d48d..3ddb25fd920c354d34cf4b484ba4d83c32c68ae7 100644 (file)
@@ -22,26 +22,26 @@ $recipient_drop_down = elgg_view('input/dropdown', array(
 ));
 
 ?>
-<p>
+<div>
        <label><?php echo elgg_echo("messages:to"); ?>: </label>
        <?php echo $recipient_drop_down; ?>
-</p>
-<p>
+</div>
+<div>
        <label><?php echo elgg_echo("messages:title"); ?>: <br /></label>
        <?php echo elgg_view('input/text', array(
                'internalname' => 'subject',
                'value' => $subject,
        ));
        ?>
-</p>
-<p>
+</div>
+<div>
        <label><?php echo elgg_echo("messages:message"); ?>:</label>
        <?php echo elgg_view("input/longtext", array(
                'internalname' => 'body',
                'value' => $body,
        ));
        ?>
-</p>
-<p>
+</div>
+<div>
        <?php echo elgg_view('input/submit', array('value' => elgg_echo('messages:send'))); ?>
-</p>
+</div>
index 632e34a54ce5a5fddd8c0f831e6127d341ac9b7e..a38fe48d0107c351299c3f5adad9c0530355f60f 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 global $NOTIFICATION_HANDLERS;
-foreach($NOTIFICATION_HANDLERS as $method => $foo) {
+foreach ($NOTIFICATION_HANDLERS as $method => $foo) {
        $subsbig[$method] = elgg_get_entities_from_relationship(array('relationship' => 'notify' . $method, 'relationship_guid' => elgg_get_logged_in_user_guid(), 'types' => 'group', 'limit' => 99999));
        $tmparray = array();
        if ($subsbig[$method]) {
@@ -24,22 +24,19 @@ foreach($NOTIFICATION_HANDLERS as $method => $foo) {
        <?php
                echo elgg_view('notifications/subscriptions/jsfuncs',$vars);
        ?>
-       
-       <p>
+               <div>
                <?php
-
                        echo elgg_echo('notifications:subscriptions:groups:description');
-               
                ?>
-       </p>
+               </div>
 <?php
 
 if (isset($vars['groups']) && !empty($vars['groups'])) {
 
 ?>
-       <table id="notificationstable" cellspacing="0" cellpadding="4" border="0" width="100%">
-               <tr>
-                       <td>&nbsp;</td>
+               <table id="notificationstable" cellspacing="0" cellpadding="4" width="100%">
+                       <tr>
+                               <td>&nbsp;</td>
 <?php
 
        $i = 0; 
@@ -48,13 +45,13 @@ if (isset($vars['groups']) && !empty($vars['groups'])) {
                        echo "<td class='spacercolumn'>&nbsp;</td>";
                }
 ?>
-                       <td class="<?php echo $method; ?>togglefield"><?php echo elgg_echo('notification:method:'.$method); ?></td>
+                               <td class="<?php echo $method; ?>togglefield"><?php echo elgg_echo('notification:method:'.$method); ?></td>
 <?php
                $i++;
        }
 ?>
-                       <td>&nbsp;</td>
-               </tr>
+                               <td>&nbsp;</td>
+                       </tr>
 <?php
        foreach($vars['groups'] as $group) {
                
@@ -79,24 +76,22 @@ END;
                }
        
 ?>
-               <tr>
-                       <td class="namefield">
-                               <p>
+                       <tr>
+                               <td class="namefield">
+                                       <div>
                                        <?php echo $group->name; ?>
-                               </p>
-                       </td>
-<?php
-               echo $fields;
-?>
-                       <td>&nbsp;</td>
-               </tr>
+                                       </div>
+                               </td>
+                               <?php echo $fields; ?>
+                               <td>&nbsp;</td>
+                       </tr>
 <?php
        }
 ?>
-       </table>
+               </table>
 <?php
 }
 ?>
-       <input type="submit" value="<?php echo elgg_echo('save'); ?>" />
+               <input type="submit" value="<?php echo elgg_echo('save'); ?>" />
        </div>
 </div>
index ec0c9c701ae0e9ce901109e107472ecb75e6c906..0306080b8274c33e4f793aab78a6ca2e275432e7 100644 (file)
@@ -1,4 +1,7 @@
 <?php
+/**
+ * Personal notifications form body
+ */
 
 echo elgg_view('notifications/subscriptions/personal');
 echo elgg_view('notifications/subscriptions/collections');
index 8daae6f4f0e12d7cf66f2bffa8e9fbf339d8c09c..28d9fb5b811ec1c7030b1c955ed7a27eba5f2836 100644 (file)
@@ -22,7 +22,7 @@
 <p class="margin-none">
        <?php echo elgg_echo('notifications:subscriptions:friends:description'); ?>
 </p>
-<table id="notificationstable" cellspacing="0" cellpadding="4" border="0" width="100%">
+<table id="notificationstable" cellspacing="0" cellpadding="4" width="100%">
        <tr>
                <td>&nbsp;</td>
 <?php
index e75bda758b374306508f90e73e8de7397439e242..7dac908fcbd44c8f07633702b2e4f5e5dbfd1a87 100644 (file)
@@ -11,7 +11,7 @@ global $NOTIFICATION_HANDLERS;
                </h3>
        </div>
 </div>
-<table id="notificationstable" cellspacing="0" cellpadding="4" border="0" width="100%">
+<table id="notificationstable" cellspacing="0" cellpadding="4" width="100%">
        <tr>
                <td>&nbsp;</td>
 <?php
index e4188a29b8559cadf3d2cfcdc2271d0bdd63f940..793e5c39efa477cee083d57e77dc806566732e88 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Page edit form.
+ * Page edit form body
  *
  * @package ElggPages
  */
@@ -8,24 +8,24 @@
 $variables = elgg_get_config('pages');
 foreach ($variables as $name => $type) {
 ?>
-<p>
+<div>
        <label><?php echo elgg_echo("pages:$name") ?></label><br />
        <?php echo elgg_view("input/$type", array(
                        'internalname' => $name,
                        'value' => $vars[$name],
                ));
        ?>
-</p>
+</div>
 <?php
 }
 
 $cats = elgg_view('categories', $vars);
 if (!empty($cats)) {
-       echo "<p>$cats</p>";
+       echo $cats;
 }
 
 
-echo '<p>';
+echo '<div>';
 if ($vars['guid']) {
        echo elgg_view('input/hidden', array(
                'internalname' => 'page_guid',
@@ -45,4 +45,4 @@ if ($vars['parent_guid']) {
 
 echo elgg_view('input/submit', array('value' => elgg_echo('save')));
 
-echo '</p>';
+echo '</div>';
index a67f76ab0b4a32578a2f58b11ec2050604117a9a..69710e50a4b9bf71fd6656de5eb7d4b54fc3ff14 100644 (file)
@@ -18,7 +18,7 @@ $params = array(
 $dropdown = elgg_view('input/dropdown', $params);
 
 ?>
-<p>
+<div>
        <?php echo elgg_echo('pages:num'); ?>:
        <?php echo $dropdown; ?>
-</p>
+</div>
index 83076c2822dcb7ebad107b3607b247731875ff89..b520d406039b2d09f6a5c5fa81a01add013e11cc 100644 (file)
@@ -21,7 +21,7 @@ $owner = elgg_get_logged_in_user_entity();
 <form action="<?php echo elgg_get_site_url(); ?>action/reportedcontent/add" method="post" class="mtm">
 <?php echo elgg_view('input/securitytoken'); ?>
 
-       <p>
+       <div>
                <label>
                        <?php   echo elgg_echo('reportedcontent:title'); ?>
                        <?php
@@ -33,8 +33,8 @@ $owner = elgg_get_logged_in_user_entity();
                        
                        ?>
                </label>
-       </p>
-       <p>
+       </div>
+       <div>
                <label>
                        <?php   echo elgg_echo('reportedcontent:address'); ?>
                        <?php
@@ -46,8 +46,8 @@ $owner = elgg_get_logged_in_user_entity();
                        
                        ?>
                </label>
-       </p>
-       <p>
+       </div>
+       <div>
                <label>
                        <?php   echo elgg_echo('reportedcontent:description'); ?>
                </label>
@@ -59,9 +59,8 @@ $owner = elgg_get_logged_in_user_entity();
                                        )); 
                        
                        ?>
-       </p>
-       <p>
+       </div>
+       <div>
                <input type="submit" value="<?php echo elgg_echo('reportedcontent:report'); ?>" />
-       </p>
-
+       </div>
 </form>
index e247a92990b59cabf49ed634d687aed7ad9ead9a..810d549afdadf337b24aa2e2afe83e226b73ef43 100644 (file)
@@ -16,8 +16,7 @@ $params = array(
 $dropdown = elgg_view('input/dropdown', $params);
 
 ?>
-<p>
+<div>
        <?php echo elgg_echo('reportedcontent:numbertodisplay'); ?>:
        <?php echo $dropdown; ?>
-</p>
-
+</div>
index 11afa6671536137806bc0420430c5764865f549d..66f5c54f5913362ca5fa2b94d91b6ae922c79cc4 100644 (file)
@@ -9,14 +9,14 @@ $access_key = get_plugin_usersetting('access_key', $user_id, 'twitterservice');
 $access_secret = get_plugin_usersetting('access_secret', $user_id, 'twitterservice');
 
 $site_name = elgg_get_site_entity()->name;
-echo '<p>' . elgg_echo('twitterservice:usersettings:description', array($site_name)) . '</p>';
+echo '<div>' . elgg_echo('twitterservice:usersettings:description', array($site_name)) . '</div>';
 
 if (!$access_key || !$access_secret) {
        // send user off to validate account
        $request_link = twitterservice_get_authorize_url();
-       echo '<p>' . elgg_echo('twitterservice:usersettings:request', array($request_link, $site_name)) . '</p>';
+       echo '<div>' . elgg_echo('twitterservice:usersettings:request', array($request_link, $site_name)) . '</div>';
 } else {
        $url = elgg_get_site_url() . "pg/twitterservice/revoke";
-       echo '<p class="twitter_anywhere">' . elgg_echo('twitterservice:usersettings:authorized', array($site_name, $twitter_name)) . '</p>';
-       echo '<p>' . sprintf(elgg_echo('twitterservice:usersettings:revoke'), $url) . '</p>';
+       echo '<div class="twitter_anywhere">' . elgg_echo('twitterservice:usersettings:authorized', array($site_name, $twitter_name)) . '</div>';
+       echo '<div>' . sprintf(elgg_echo('twitterservice:usersettings:revoke'), $url) . '</div>';
 }