]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Converted buttons to elgg-object-type naming convention. Added table of buttons...
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 10 Feb 2011 01:43:36 +0000 (01:43 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 10 Feb 2011 01:43:36 +0000 (01:43 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8091 36083f99-b078-4883-b0ff-0f9b5a30f544

35 files changed:
documentation/theming/preview/forms.php
mod/blog/lib/blog.php
mod/blog/views/default/forms/blog/save.php
mod/diagnostics/views/default/admin/utilities/diagnostics.php
mod/file/index.php
mod/file/views/default/object/file.php
mod/groups/views/default/groups/css.php
mod/groups/views/default/groups/edit.php
mod/groups/views/default/groups/invitationrequests.php
mod/groups/views/default/groups/membershiprequests.php
mod/groups/views/default/groups/profile/buttons.php
mod/messages/read.php
mod/messages/views/default/forms/messages/process.php
mod/pages/view.php
mod/profile/views/default/profile/css.php
mod/profile/views/default/profile/owner_block.php
mod/reportedcontent/views/default/object/reported_content.php
mod/thewire/views/default/object/thewire.php
mod/thewire/views/default/thewire/css.php
mod/thewire/views/default/thewire/forms/add.php
mod/thewire/views/default/thewire/profile_status.php
views/default/admin/components/plugin.php
views/default/admin/plugins/advanced.php
views/default/admin/plugins/simple.php
views/default/core/account/login_walled_garden.php
views/default/core/friends/picker.php
views/default/css/admin.php
views/default/css/elements/forms.php
views/default/css/elements/misc.php
views/default/forms/profile/fields/reset.php
views/default/input/button.php
views/default/layout/shells/content/header.php
views/default/layout/shells/widgets/add_button.php
views/default/page/elements/content_header.php
views/installation/input/button.php

index 89caf8e8b3e6d1edbd7271272c716234b9a694f7..592f5f844e4395180c313ebd71d6c9aeb9d436d9 100644 (file)
@@ -159,62 +159,58 @@ $url = current_page_url();
                
                <div class="mtl">
                        <h2>Buttons</h2>
-                       <p>
-                               <?php echo elgg_view('input/submit', array(
-                                               'internalname' => 'b1',
-                                               'value' => 'input[type=submit]',
-                                               ));
-                               ?>
-                       </p>
-                       <p>
-                               <?php echo elgg_view('output/url', array(
-                                               'href' => "$url#",
-                                               'text' => 'a.elgg-submit-button',
-                                               'class' => 'elgg-button elgg-submit-button',
-                                               ));
-                               ?>
-                       </p>
-                       <p>
-                               <?php echo elgg_view('output/url', array(
-                                               'href' => "$url#",
-                                               'text' => 'submit button disabled',
-                                               'class' => 'elgg-button elgg-submit-button disabled',
-                                               ));
-                               ?>
-                       </p>
-                       <p>
-                               <?php echo elgg_view('input/button', array(
-                                               'internalname' => 'b3',
-                                               'value' => 'input[type=button]',
-                                               ));
-                               ?>
-                       </p>
-                       <p>
-                               <?php echo elgg_view('output/url', array(
-                                               'href' => "$url#",
-                                               'text' => 'a.elgg-cancel-button',
-                                               'class' => 'elgg-button elgg-cancel-button',
-                                               ));
-                               ?>
-                       </p>
-                       <p>
-                               <?php echo elgg_view('output/url', array(
-                                               'href' => "$url#",
-                                               'text' => 'a.elgg-action-button',
-                                               'class' => 'elgg-action-button',
-                                               ));
-                               ?>
-                       </p>
-                       <p>
-                               <?php echo elgg_view('output/url', array(
-                                               'href' => "$url#",
-                                               'text' => 'action button disabled',
-                                               'class' => 'elgg-action-button disabled',
-                                               ));
-                               ?>
-                       </p>
+                       <table>
+                               <thead>
+                                       <tr>
+                                               <th>Anchors</th>
+                                               <th>Default</th>
+                                               <th>Hover</th>
+                                               <th>Focus</th>
+                                               <th>Active</th>
+                                               <th>Disabled</th>
+                                               <th>Selected</th>
+                                       </tr>
+                               </thead>
+                               <tbody>
+                                       <tr>
+                                               <th>Default</th>
+                                               <td><a href="#" class="elgg-button">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-state-hover">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-state-focus">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-state-active">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-state-disabled">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-state-selected">anchor</a></td>
+                                       </tr>
+                                       <tr>
+                                               <th>Action</th>
+                                               <td><a href="#" class="elgg-button elgg-button-action">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-action elgg-state-hover">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-action elgg-state-focus">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-action elgg-state-active">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-action elgg-state-disabled">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-action elgg-state-selected">anchor</a></td>
+                                       </tr>
+                                       <tr>
+                                               <th>Default</th>
+                                               <td><a href="#" class="elgg-button elgg-button-submit">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-submit elgg-state-hover">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-submit elgg-state-focus">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-submit elgg-state-active">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-submit elgg-state-disabled">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-submit elgg-state-selected">anchor</a></td>
+                                       </tr>
+                                       <tr>
+                                               <th>Default</th>
+                                               <td><a href="#" class="elgg-button elgg-button-cancel">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-hover">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-focus">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-active">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-disabled">anchor</a></td>
+                                               <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-selected">anchor</a></td>
+                                       </tr>
+                               </tbody>
+                       </table>
                </div>
-
        </div>
 </body>
 </html>
\ No newline at end of file
index 5e2cc7c52f6eef86a3995e632cd3c7b5fdbbf16e..062a8a0eb9e54e6731baa150c9b7427e36c3bc3f 100644 (file)
@@ -95,7 +95,7 @@ function blog_get_page_content_list($container_guid = NULL) {
                                $params = array(
                                        'href' => $url,
                                        'text' => elgg_echo("blog:add"),
-                                       'class' => 'elgg-action-button',
+                                       'class' => 'elgg-button-action',
                                );
                                $buttons = elgg_view('output/url', $params);
                                $return['buttons'] = $buttons;
index 127bd447df359923554480743ed4f9183b75d0e5..c7039aa00f41a9ca4b331b09fce8fdaaeaab9898 100644 (file)
@@ -19,7 +19,7 @@ if ($vars['guid']) {
        $delete_link = elgg_view('output/confirmlink', array(
                'href' => $delete_url,
                'text' => elgg_echo('delete'),
-               'class' => 'elgg-action-button disabled'
+               'class' => 'elgg-button-action disabled'
        ));
 }
 
index ee1898b8d3eb393a8d53559a35ebcf83a95d9f28..9b5da95f74b3e270cf2f76217c3c4c0fb4357af5 100644 (file)
@@ -15,7 +15,7 @@ if (elgg_get_config('debug')) {
        $params = array(
                'text' => elgg_echo('diagnostics:test:executeall'),
                'href' => elgg_get_site_url() . 'engine/tests/suite.php',
-               'class' => 'elgg-submit-button',
+               'class' => 'elgg-button-submit',
        );
        $unit_tests .= elgg_view('output/url', $params);
 } else {
index 4a8e35bdb0da078cbcb5c557bf58ae09cbb12fdd..ad5f4378c5fb6cf3f1bfed58622aca36ee7f8e41 100644 (file)
@@ -36,7 +36,7 @@ if ($owner->guid == elgg_get_logged_in_user_guid()) {
                $vars = array(
                        'href' => $url,
                        'text' => elgg_echo("file:add"),
-                       'class' => 'elgg-action-button',
+                       'class' => 'elgg-button-action',
                );
                $button = elgg_view('output/url', $vars);
                $params['buttons'] = $button;
index cbe19f3c6118c18aa1cb97edbb350e9964042871..00c777b391073287aa10fd7bb70f4d0751c85cd1 100644 (file)
@@ -68,7 +68,7 @@ if ($full && !elgg_in_context('gallery')) {
        $download = elgg_view('output/url', array(
                'href' => "mod/file/download.php?file_guid=$file->guid",
                'text' => elgg_echo("file:download"),
-               'class' => 'elgg-action-button',
+               'class' => 'elgg-button-action',
        ));
 
        $header = elgg_view_title($file->title);
index 17cd12031ff2f945f0efc894f2388dd3e8093f24..93e15337fa53dd0ca53566061ed16d5529e54e82 100644 (file)
@@ -55,8 +55,8 @@
 
 
 /* group invitations */
-.group_invitations a.elgg-action-button,
-.group_invitations a.elgg-submit-button {
+.group_invitations a.elgg-button-action,
+.group_invitations a.elgg-button-submit {
        float:right;
        margin:0 0 0 14px;
 }
index 233ef83067c2e4fbbc55d9b28769d83b03cd1b3d..416ec63751b15a37679b9b46b9debf44d2503f1f 100644 (file)
@@ -18,7 +18,7 @@ if ($entity) {
                                $warning = elgg_echo("groups:deletewarning");
                        ?>
                        <input type="hidden" name="group_guid" value="<?php echo $vars['entity']->getGUID(); ?>" />
-                       <input type="submit" class="elgg-action-button disabled" name="delete" value="<?php echo elgg_echo('groups:delete'); ?>" onclick="javascript:return confirm('<?php echo $warning; ?>')"/><?php
+                       <input type="submit" class="elgg-button-action disabled" name="delete" value="<?php echo elgg_echo('groups:delete'); ?>" onclick="javascript:return confirm('<?php echo $warning; ?>')"/><?php
                ?>
        </form>
 </div>
index c65e8987ef3092075ea4c202718dd7e87f39c618..f69482debd3a99a367eadf482d334df7c8c1c0bb 100644 (file)
@@ -18,9 +18,9 @@ if (!empty($vars['invitations']) && is_array($vars['invitations'])) {
                        $url = elgg_add_action_tokens_to_url(elgg_get_site_url()."action/groups/join?user_guid={$user->guid}&group_guid={$group->guid}");
                        ?>
                        <div class="entity-listing-info">
-                       <a href="<?php echo $url; ?>" class="elgg-submit-button"><?php echo elgg_echo('accept'); ?></a>
+                       <a href="<?php echo $url; ?>" class="elgg-button-submit"><?php echo elgg_echo('accept'); ?></a>
                        <?php           
-                               echo str_replace('<a', '<a class="elgg-action-button disabled" ', elgg_view('output/confirmlink',array(
+                               echo str_replace('<a', '<a class="elgg-button-action disabled" ', elgg_view('output/confirmlink',array(
                                        'href' => "action/groups/killinvitation?user_guid={$user->getGUID()}&group_guid={$group->getGUID()}",
                                        'confirm' => elgg_echo('groups:invite:remove:check'),
                                        'text' => elgg_echo('delete'),
index 05f1940594ced5450a9ecdd8ec66b3cafe26b866..0ea6967af01bba4b2a6178e7a6b65ee79a268f03 100644 (file)
@@ -19,9 +19,9 @@
                                        $url = elgg_add_action_tokens_to_url(elgg_get_site_url()."action/groups/addtogroup?user_guid={$request->guid}&group_guid={$vars['entity']->guid}");
                                        ?>
                                        <div class="entity-listing-info">
-                                       <a href="<?php echo $url; ?>" class="elgg-submit-button"><?php echo elgg_echo('accept'); ?></a>
+                                       <a href="<?php echo $url; ?>" class="elgg-button-submit"><?php echo elgg_echo('accept'); ?></a>
                                        <?php   
-                                       echo str_replace('<a', '<a class="elgg-action-button disabled" ', elgg_view('output/confirmlink',array(
+                                       echo str_replace('<a', '<a class="elgg-button-action disabled" ', elgg_view('output/confirmlink',array(
                                                'href' => 'action/groups/killrequest?user_guid='.$request->guid.'&group_guid=' . $vars['entity']->guid,
                                                'confirm' => elgg_echo('groups:joinrequest:remove:check'),
                                                'text' => elgg_echo('delete'),
index bd7560bb8bce362766b579778e107d3dd7f1644f..31df7a5b51b2ed5bc0f89b05cedb8dbb96bfc0f6 100644 (file)
@@ -47,7 +47,7 @@ if ($actions) {
                echo elgg_view('output/url', array(
                        'text' => $action,
                        'href' => $url,
-                       'class' => 'elgg-action-button',
+                       'class' => 'elgg-button-action',
                ));
        }
 }
index 561eaa3ce1dab0baa8009a4ffd8c3dbc3b73a2f7..9fda13f5f19cb1505603fa95613fa998e3dd949f 100644 (file)
@@ -40,7 +40,7 @@ if ($inbox) {
        if (elgg_get_logged_in_user_guid() == elgg_get_page_owner_guid()) {
                $buttons = elgg_view('output/url', array(
                        'text' => elgg_echo('messages:answer'),
-                       'class' => 'elgg-action-button',
+                       'class' => 'elgg-button-action',
                        'internalid' => 'messages-show-reply',
                ));
        }
index 2c97fcb6f225da7e58f16ee47386a107e9b61e14..6c7c07ee6c818f5c3176c8b33454ec73c0f5fa5b 100644 (file)
@@ -25,7 +25,7 @@ if ($vars['folder'] == "inbox") {
 
 echo elgg_view('input/button', array(
        'value' => elgg_echo('messages:toggle'),
-       'class' => 'elgg-cancel-button',
+       'class' => 'elgg-button-cancel',
        'internalid' => 'messages-toggle',
 ));
 
index f3d846f2352d88582faaa6c7f69081106d0dca9f..3a323cc23c729847f102a1b6df960e469058ca0b 100644 (file)
@@ -38,7 +38,7 @@ if ($page->canEdit()) {
        $buttons = elgg_view('output/url', array(
                        'text' => elgg_echo('pages:newchild'),
                        'href' => $url,
-                       'class' => 'elgg-action-button',
+                       'class' => 'elgg-button-action',
                ));
 }
 
index b2a3ff935a50ad9b67f09ed5c991855fcfe648f9..d252dec68498d64bbf7e08f3212f831b82349dfb 100644 (file)
@@ -31,7 +31,7 @@
 #profile-owner-block .large {
        margin-bottom: 10px;
 }
-#profile-owner-block a.elgg-action-button {
+#profile-owner-block a.elgg-button-action {
        margin-bottom: 4px;
        display: table;
 }
index e366580047404f99d4a2b52e654f27a7430dc6c7..a51db87ef9e25f53a82a2be75eb573549f844204 100755 (executable)
@@ -28,7 +28,7 @@ $profile_actions = '';
 if (elgg_is_logged_in() && $actions) {
        $profile_actions = '<ul class="elgg-menu">';
        foreach ($actions as $action) {
-               $profile_actions .= '<li>' . $action->getLink(array('class' => 'elgg-action-button')) . '</li>';
+               $profile_actions .= '<li>' . $action->getLink(array('class' => 'elgg-button-action')) . '</li>';
        }
        $profile_actions .= '</ul>';
 }
index 0ab157d621785a48e2a14347af847f589499e694..83e49142c5451bd1971335a915d25b8923317317 100644 (file)
@@ -28,7 +28,7 @@ if ($report->state == 'archived') {
                        'href' => $archive_url,
                        'text' => elgg_echo('reportedcontent:archive'),
                        'is_action' => true,
-                       'class' => 'elgg-action-button',
+                       'class' => 'elgg-button-action',
                );
                echo elgg_view('output/url', $params);
        }
@@ -36,7 +36,7 @@ if ($report->state == 'archived') {
                'href' => $delete_url,
                'text' => elgg_echo('reportedcontent:delete'),
                'is_action' => true,
-               'class' => 'elgg-action-button',
+               'class' => 'elgg-button-action',
        );
        echo elgg_view('output/url', $params);
 ?>
index 09568a47fe673ff3ea8d26fb615f162f942609af..d154548159c1f535063f005108fdaf5e3a376dd9 100644 (file)
@@ -30,7 +30,7 @@ if (isset($vars['entity'])) {
                <?php
                        if(elgg_is_logged_in()){
                ?>
-                       <a href="<?php echo elgg_get_site_url(); ?>mod/thewire/add.php?wire_username=<?php echo $vars['entity']->getOwnerEntity()->username; ?>" class="elgg-action-button reply small"><?php echo elgg_echo('thewire:reply'); ?></a>
+                       <a href="<?php echo elgg_get_site_url(); ?>mod/thewire/add.php?wire_username=<?php echo $vars['entity']->getOwnerEntity()->username; ?>" class="elgg-button-action reply small"><?php echo elgg_echo('thewire:reply'); ?></a>
                        <?php
                        }//close reply if statement
                        // if the user looking at thewire post can edit, show the delete link
index 26981d86e2217650b4b7228b79cd65fd3b3eb058..d7beac105f6f7548964d1bf7dde53f17512aed97 100644 (file)
@@ -77,7 +77,7 @@
        float:right;
        width:65px;
 }
-.wire_post_options .elgg-action-button.reply.small {
+.wire_post_options .elgg-button-action.reply.small {
        float:right;
 }
 .wire_post_options .delete-button {
@@ -88,7 +88,7 @@
 
 
 /* latest wire post on profile page */
-.wire_post .elgg-action-button.update.small {
+.wire_post .elgg-button-action.update.small {
        float:right;
        padding:4px;
        position: absolute;
index 5a3e40e5fd202325ed06fd3a5928e377aac55cb0..3b3519e40f120f06665996c33f85fe7d841f4342 100644 (file)
@@ -18,7 +18,7 @@
        <?php
                $action_txt = elgg_echo('post');
            $display .= "<textarea name='new_post_textarea' value='' onKeyDown=\"textCounter(document.new_post.new_post_textarea,document.new_post.remLen1,140)\" onKeyUp=\"textCounter(document.new_post.new_post_textarea,document.new_post.remLen1,140)\">{$msg}</textarea>";
-        $display .= "<input type='submit' class='elgg-action-button' value='{$action_txt}' />";
+        $display .= "<input type='submit' class='elgg-button-action' value='{$action_txt}' />";
         $display .= "<div class='character_count'><input readonly type=\"text\" name=\"remLen1\" size=\"3\" maxlength=\"3\" value=\"140\">";
         echo $display;
         echo elgg_echo("thewire:charleft") . "</div>";
index 401401171dd5f3b5d7072a86338cb13750cf229a..29dc69329430a1164d4a19eacb302a250bba3f01 100644 (file)
@@ -26,7 +26,7 @@ if ($latest_wire) {
        echo $content;
        if ($owner == elgg_get_logged_in_user_guid()) {
                $text = elgg_echo('thewire:update');
-               echo "<a class='elgg-action-button update small' href=\"{$url_to_wire}\">$text</a>";
+               echo "<a class='elgg-button-action update small' href=\"{$url_to_wire}\">$text</a>";
        }
        echo $time;
        echo "</div></div>";
index e75c2c63e8091b40c20e22adf840955ef326cd18..010e8482d983ead6edd505210d66fdc9c8ad1fd6 100644 (file)
@@ -83,10 +83,10 @@ if ($priority < $max_priority) {
 if ($can_activate) {
        if ($active) {
                $action = 'deactivate';
-               $class = 'elgg-cancel-button';
+               $class = 'elgg-button-cancel';
        } else {
                $action = 'activate';
-               $class = 'elgg-submit-button';
+               $class = 'elgg-button-submit';
        }
 
        $url = elgg_http_add_url_query_elements($actions_base . $action, array(
@@ -104,7 +104,7 @@ if ($can_activate) {
        $action_button = elgg_view('output/url', array(
                'text'          => elgg_echo('admin:plugins:cannot_activate'),
                'disabled'      => 'disabled',
-               'class'         => "elgg-action-button disabled"
+               'class'         => "elgg-button-action disabled"
        ));
 }
 
index 05754e4c70534a149ff62f861f8207c96484abe2..1bde9c8ae912d6df5051c2f5dd3b85d4c25be10f 100644 (file)
@@ -51,7 +51,7 @@ $category_dropdown = elgg_view('input/dropdown', array(
 
 $category_button = elgg_view('input/submit', array(
        'value' => elgg_echo('filter'),
-       'class' => 'elgg-action-button'
+       'class' => 'elgg-button-action'
 ));
 
 $category_form = elgg_view('input/form', array(
@@ -63,8 +63,8 @@ if (!isset($show_category) || empty($show_category)) {
        $activate_url = "{$CONFIG->url}action/admin/plugins/activate_all?__elgg_token=$token&amp;__elgg_ts=$ts";
        $deactivate_url = "{$CONFIG->url}action/admin/plugins/deactivate_all?__elgg_token=$token&amp;__elgg_ts=$ts";
 
-       $buttons = "<a class='elgg-action-button' href=\"$activate_url\">" . elgg_echo('admin:plugins:activate_all') . '</a> ';
-       $buttons .=     "<a class='elgg-action-button disabled' href=\"$deactivate_url\">" . elgg_echo('admin:plugins:deactivate_all') . '</a> ';
+       $buttons = "<a class='elgg-button-action' href=\"$activate_url\">" . elgg_echo('admin:plugins:activate_all') . '</a> ';
+       $buttons .=     "<a class='elgg-button-action disabled' href=\"$deactivate_url\">" . elgg_echo('admin:plugins:deactivate_all') . '</a> ';
        $buttons .= "<br /><br />";
 } else {
        $buttons = '';
index e9d7d5ffb9cc813c79fda1dcf0aed74f4d703d6b..2672aa55d8a22531831b3503345ec261549c27ef 100644 (file)
@@ -102,7 +102,7 @@ ___END;
 
 $form_body .= '</ul>';
 $form_body .= elgg_view('input/submit', array('value' => elgg_echo('save')));
-$form_body .= elgg_view('input/reset', array('value' => elgg_echo('reset'), 'class' => 'elgg-action-button disabled'));
+$form_body .= elgg_view('input/reset', array('value' => elgg_echo('reset'), 'class' => 'elgg-button-action disabled'));
 
 echo elgg_view('input/form', array(
        'action' => "action/admin/plugins/simple_update_states",
index 9335c0dfd4d4d03ec95e9dcc3a1a20ad64761262..feda2f047223551243c9ebc34fcfac49e477bbfd 100644 (file)
@@ -39,7 +39,7 @@ __HTML;
        $lostpassword_form_body .= "<p class='margin-none'><label>". elgg_echo('username') . " "
                . elgg_view('input/text', array('internalname' => 'username', 'class' => 'login-textarea lostusername')) . "</label></p>";
        $lostpassword_form_body .= elgg_view('input/captcha');
-       $lostpassword_form_body .= "<p>" . elgg_view('input/submit', array('value' => elgg_echo('request'))) . "<input class='elgg-action-button disabled cancel_request' type='reset' value='Cancel'></p>";
+       $lostpassword_form_body .= "<p>" . elgg_view('input/submit', array('value' => elgg_echo('request'))) . "<input class='elgg-button-action disabled cancel_request' type='reset' value='Cancel'></p>";
        
        ?>
 <div id="lostpassword_form" class="hidden clearfix">
@@ -58,7 +58,7 @@ $(document).ready(function() {
        $('input.username').focus();
        
        // add cancel button to inline register form
-       $('#registration_form').find('input.elgg-submit-button').after("<input class='elgg-action-button disabled cancel_request' type='reset' value='Cancel'>");
+       $('#registration_form').find('input.elgg-button-submit').after("<input class='elgg-button-action disabled cancel_request' type='reset' value='Cancel'>");
        
        function elgg_slide_hiddenform(activateLink, parentElement, toggleElement) {
                $(activateLink).closest(parentElement).find(toggleElement).animate({"width": "563px", duration: 400});
index da647b0acb5f636290bd839b7cbdddf112e97ff3..2344d7d945435e0c824ce25bec45b641bf472360 100644 (file)
@@ -270,8 +270,8 @@ if ($formtarget) {
 ?>
        <div class="clearfix"></div>
        <div class="friendspicker-savebuttons">
-               <input type="submit" class="elgg-submit-button" value="<?php echo elgg_echo('save'); ?>" />
-               <input type="button" class="elgg-cancel-button" value="<?php echo elgg_echo('cancel'); ?>" onclick="$('a.collectionmembers<?php echo $friendspicker; ?>').click();" />
+               <input type="submit" class="elgg-button-submit" value="<?php echo elgg_echo('save'); ?>" />
+               <input type="button" class="elgg-button-cancel" value="<?php echo elgg_echo('cancel'); ?>" onclick="$('a.collectionmembers<?php echo $friendspicker; ?>').click();" />
        <br /></div>
        </form>
 
index 729c770bb02782c1f40a369cc3d06c19131be493..09a5bf73ed954fe2e50bb03328cf75bab7d04241 100644 (file)
@@ -395,7 +395,7 @@ input {
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
 }
-input[type="submit"], .elgg-submit-button, .elgg-action-button {
+input[type="submit"], .elgg-button-submit, .elgg-button-action {
        font-size: 14px;
        font-weight: bold;
        color: white;
@@ -410,12 +410,12 @@ input[type="submit"], .elgg-submit-button, .elgg-action-button {
        cursor: pointer;
        outline: none;
 }
-input[type="submit"]:hover, .elgg-submit-button:hover, .elgg-action-button:hover {
+input[type="submit"]:hover, .elgg-button-submit:hover, .elgg-button-action:hover {
        color: white;
        background-color: #000000;
        text-decoration: none;
 }
-.elgg-submit-button, .elgg-action-button {
+.elgg-button-submit, .elgg-button-action {
        padding: 4px 8px;
 }
 /* ***************************************
@@ -691,7 +691,7 @@ a.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover {
 .elgg-admin form#plugin_settings {
        margin-top: 10px;
 }
-.elgg-admin form#plugin_settings .elgg-action-button.disabled {
+.elgg-admin form#plugin_settings .elgg-button-action.disabled {
        margin-top:10px;
        float:right;
 }
@@ -755,7 +755,7 @@ a.elgg-longtext-control {
        float: right;
        margin-left: 14px;
 }
-.admin_area .elgg-submit-button {
+.admin_area .elgg-button-submit {
        font-size: 14px;
        font-weight: bold;
        color: white;
@@ -775,7 +775,7 @@ a.elgg-longtext-control {
        -webkit-box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.40);
        -moz-box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.40);
 }
-.admin_area .elgg-submit-button:hover {
+.admin_area .elgg-button-submit:hover {
        color: white;
        border-color: #333333;
        text-decoration:none;
@@ -818,7 +818,7 @@ a.elgg-longtext-control {
        background-repeat:  repeat-x;
        background-position:  left 10px;
 }
-.admin_area .elgg-cancel-button {
+.admin_area .elgg-button-cancel {
        font-size: 14px;
        font-weight: bold;
        text-decoration:none;
@@ -835,18 +835,18 @@ a.elgg-longtext-control {
        margin:10px 0 10px 10px;
        cursor: pointer;
 }
-.admin_area .elgg-cancel-button:hover {
+.admin_area .elgg-button-cancel:hover {
        background-color: #999999;
        background-position:  left 10px;
        text-decoration:none;
        color:white;
 }
-.admin_area .content-header-options .elgg-action-button {
+.admin_area .content-header-options .elgg-button-action {
        margin-top:0;
        margin-left:10px;
 }
-.admin_area input.elgg-action-button,
-.admin_area a.elgg-action-button {
+.admin_area input.elgg-button-action,
+.admin_area a.elgg-button-action {
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        background-color:#cccccc;
@@ -864,10 +864,10 @@ a.elgg-longtext-control {
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
 }
-.admin_area input.elgg-action-button:hover,
-.admin_area a.elgg-action-button:hover,
-.admin_area input.elgg-action-button:focus,
-.admin_area a.elgg-action-button:focus {
+.admin_area input.elgg-button-action:hover,
+.admin_area a.elgg-button-action:hover,
+.admin_area input.elgg-button-action:focus,
+.admin_area a.elgg-button-action:focus {
        background-position:0 -15px;
        background-image:  url(<?php echo elgg_get_site_url(); ?>_graphics/button_background.gif);
        background-repeat:  repeat-x;
@@ -876,33 +876,33 @@ a.elgg-longtext-control {
        background-color:#cccccc;
        border:1px solid #999999;
 }
-.admin_area .elgg-action-button:active {
+.admin_area .elgg-button-action:active {
        background-image:none;
 }
-.admin_area .elgg-action-button.disabled {
+.admin_area .elgg-button-action.disabled {
        color:#999999;
        padding:2px 7px 2px 7px;
 }
-.admin_area .elgg-action-button.disabled:hover {
+.admin_area .elgg-button-action.disabled:hover {
        background-position:0 -15px;
        color:#111111;
        border:1px solid #999999;
 }
-.admin_area .elgg-action-button.disabled:active {
+.admin_area .elgg-button-action.disabled:active {
        background-image:none;
 }
-.admin_area .elgg-action-button.download {
+.admin_area .elgg-button-action.download {
        padding: 5px 9px 5px 6px;
 }
-.admin_area .elgg-action-button.download:hover {
+.admin_area .elgg-button-action.download:hover {
 
 }
-.admin_area .elgg-action-button.download img {
+.admin_area .elgg-button-action.download img {
        margin-right:6px;
        position:relative;
        top:5px;
 }
-.admin_area .elgg-action-button.small {
+.admin_area .elgg-button-action.small {
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        width: auto;
@@ -911,7 +911,7 @@ a.elgg-longtext-control {
        font-size: 0.9em;
        line-height: 0.6em;
 }
-.admin_area .elgg-action-button.small:hover {
+.admin_area .elgg-button-action.small:hover {
        background-color: #0054A7;
        background-image: none;
        border-color: #0054A7;
@@ -968,7 +968,7 @@ a.elgg-longtext-control {
        float: left;
        width: 150px;
 }
-form.admin_plugins_simpleview .elgg-submit-button {
+form.admin_plugins_simpleview .elgg-button-submit {
        margin-right:20px;
 }
 .plugin_info {
index 1cac80b587c151bcca1d41f721acc2dfc281ffe3..816accbe786a3c7e6dbe0fbcc464ffe4f9c5cb59 100644 (file)
@@ -75,7 +75,7 @@ input[type="button"],
        -moz-box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.40);
 }
 input[type="submit"],
-.elgg-submit-button {
+.elgg-button-submit {
        color: white;
        text-shadow: 1px 1px 0px black;
        text-decoration: none;
@@ -86,7 +86,7 @@ input[type="submit"],
        background-position: left 10px;
 }
 input[type="submit"]:hover,
-.elgg-submit-button:hover {
+.elgg-button-submit:hover {
        border-color: #0054a7;
        text-decoration: none;
        color: white;
@@ -95,7 +95,7 @@ input[type="submit"]:hover,
        background-repeat: repeat-x;
        background-position: left 10px;
 }
-.elgg-cancel-button {
+.elgg-button-cancel {
        color: #333333;
        background-color: #dddddd;
        background-image: url(<?php echo elgg_get_site_url(); ?>_graphics/button_graduation.png);
@@ -103,13 +103,13 @@ input[type="submit"]:hover,
        background-position: left 10px;
        border: 1px solid #999999;
 }
-.elgg-cancel-button:hover {
+.elgg-button-cancel:hover {
        color: white;
        background-color: #999999;
        background-position: left 10px;
        text-decoration: none;
 }
-.elgg-action-button {
+.elgg-button-action {
        background-color:#cccccc;
        background-image:  url(<?php echo elgg_get_site_url(); ?>_graphics/button_background.gif);
        background-repeat:  repeat-x;
@@ -127,8 +127,8 @@ input[type="submit"]:hover,
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
 }
-.elgg-action-button:hover,
-.elgg-action-button:focus {
+.elgg-button-action:hover,
+.elgg-button-action:focus {
        background-position: 0 -15px;
        background-image: url(<?php echo elgg_get_site_url(); ?>_graphics/button_background.gif);
        background-repeat: repeat-x;
@@ -139,22 +139,22 @@ input[type="submit"]:hover,
 }
 /*
 <?php //@todo elgg-state-disabled? ?>
-.elgg-submit-button.disabled {
+.elgg-button-submit.disabled {
        background-color:#999999;
        border-color:#999999;
        color:#dedede;
 }
-.elgg-submit-button.disabled:hover {
+.elgg-button-submit.disabled:hover {
        background-color:#999999;
        border-color:#999999;
        color:#dedede;
 }
 
-.elgg-action-button {
+.elgg-button-action {
        margin-left: 10px;
 }
-input.elgg-action-button,
-a.elgg-action-button {
+input.elgg-button-action,
+a.elgg-button-action {
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        background-color:#cccccc;
@@ -173,10 +173,10 @@ a.elgg-action-button {
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
 }
-input.elgg-action-button:hover,
-a.elgg-action-button:hover,
-input.elgg-action-button:focus,
-a.elgg-action-button:focus {
+input.elgg-button-action:hover,
+a.elgg-button-action:hover,
+input.elgg-button-action:focus,
+a.elgg-button-action:focus {
        background-position:0 -15px;
        background-image:  url(<?php echo elgg_get_site_url(); ?>_graphics/button_background.gif);
        background-repeat:  repeat-x;
@@ -185,33 +185,33 @@ a.elgg-action-button:focus {
        background-color:#cccccc;
        border:1px solid #999999;
 }
-.elgg-action-button:active {
+.elgg-button-action:active {
        background-image:none;
 }
-.elgg-action-button.disabled {
+.elgg-button-action.disabled {
        color:#999999;
        padding:2px 7px 2px 7px;
 }
-.elgg-action-button.disabled:hover {
+.elgg-button-action.disabled:hover {
        background-position:0 -15px;
        color:#111111;
        border:1px solid #999999;
 }
-.elgg-action-button.disabled:active {
+.elgg-button-action.disabled:active {
        background-image:none;
 }
-.elgg-action-button.download {
+.elgg-button-action.download {
        padding: 5px 9px 5px 6px;
 }
-.elgg-action-button.download:hover {
+.elgg-button-action.download:hover {
 
 }
-.elgg-action-button.download img {
+.elgg-button-action.download img {
        margin-right:6px;
        position:relative;
        top:5px;
 }
-.elgg-action-button.small {
+.elgg-button-action.small {
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        width: auto;
@@ -220,7 +220,7 @@ a.elgg-action-button:focus {
        font-size: 0.9em;
        line-height: 0.6em;
 }
-.elgg-action-button.small:hover {
+.elgg-button-action.small:hover {
        background-color: #4690d6;
        background-image: none;
        border-color: #4690d6;
index 92107db8c17fb0bb1c15cc5b47aee1710d3096c1..944f72bc67983082d3c3e5133644f66eb9d2bd51 100644 (file)
@@ -37,7 +37,7 @@
        font-weight:normal;
        font-size:100%;
 }
-.loginbox .elgg-submit-button {
+.loginbox .elgg-button-submit {
        margin-right: 15px;
 }
 #login .persistent-login {
        font-weight:normal;
        font-size: 100%;
 }
-#login-dropdown #signin-menu .elgg-submit-button {
+#login-dropdown #signin-menu .elgg-button-submit {
        margin-right:15px;
 }
 
 .friends-picker-navigation-r:hover {
        background: url("<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png") no-repeat -60px -44px;
 }
-.friendspicker-savebuttons .elgg-submit-button,
-.friendspicker-savebuttons .elgg-cancel-button {
+.friendspicker-savebuttons .elgg-button-submit,
+.friendspicker-savebuttons .elgg-button-cancel {
        margin:5px 20px 5px 5px;
 }
 #collectionMembersTable {
index 86ab16e2440f5b87a49d66be3e60d2eb303cf758..9da325788b9364e12ae2a48289ed5199c720c000 100644 (file)
@@ -5,6 +5,6 @@
 
 $params = array(
        'value' => elgg_echo('profile:resetdefault'),
-       'class' => 'elgg-action-button disabled',
+       'class' => 'elgg-button-action disabled',
 );
 echo elgg_view('input/submit', $params);
index db520b6acd7a57c005b1ea2d9697d828f6b02b30..52a85ace686e884aacdb41d5575ce2f9292b424b 100644 (file)
@@ -10,7 +10,7 @@
 
 $defaults = array(
        'type' => 'button',
-       'class' => 'elgg-submit-button',
+       'class' => 'elgg-button-submit',
 );
 
 $vars = array_merge($defaults, $vars);
index f3517e9ad5bd9f17bbb9821af2436e94dc66f47c..92456bac460144b9a5f1597fac9ce4062d64dd25 100644 (file)
@@ -36,7 +36,7 @@ if ($context) {
                        $params = array(
                                'href' => $new_link = elgg_normalize_url($new_link),
                                'text' => elgg_echo("$context:add"),
-                               'class' => 'elgg-action-button',
+                               'class' => 'elgg-button-action',
                        );
                        $buttons = elgg_view('output/url', $params);
                }
index 51b03edbb56deac6fbbf082cb8b0f067b29d0e7f..0304c50a051995d286b1e63b17f7c3e01b8aa517 100644 (file)
@@ -4,7 +4,7 @@
  */
 ?>
 <div class="elgg-widget-add-control">
-       <a class="elgg-action-button elgg-toggle" id="elgg-toggler-add-widgets">
+       <a class="elgg-button-action elgg-toggle" id="elgg-toggler-add-widgets">
                <?php echo elgg_echo('widgets:add'); ?>
        </a>
 </div>
index becf4a13ab6b6e12b9296d8ff0d3c17313cc8529..10ba4b0528fd4ada6ca09d8e93934b49fd6c9acf 100644 (file)
@@ -70,10 +70,10 @@ if (elgg_is_logged_in()) {
                // @todo remove the hard coded reference to the videolist plugin
                if (elgg_get_context() == "videolist"){
                        $video_link = elgg_get_site_url() . "pg/videolist/browse/$username/";
-                       $new_button = "<a href=\"{$video_link}\" class='elgg-action-button'>" . elgg_echo('videolist:browsemenu') . '</a>';
+                       $new_button = "<a href=\"{$video_link}\" class='elgg-button-action'>" . elgg_echo('videolist:browsemenu') . '</a>';
                } else {
                        $new_link = elgg_normalize_url((isset($vars['new_link'])) ? $vars['new_link'] : "pg/$type/$username/new");
-                       $new_button = "<a href=\"{$new_link}\" class='elgg-action-button'>" . elgg_echo($type . ':new') . '</a>';
+                       $new_button = "<a href=\"{$new_link}\" class='elgg-button-action'>" . elgg_echo($type . ':new') . '</a>';
                }
                $new_button = "<div class='content-header-options'>$new_button</div>";
        }
index 6704fa8c574c9d0dae6a8d964545ee0b74e6cb81..81a5414c466164b0f2f081f951b5a85321fc4b67 100644 (file)
@@ -17,7 +17,7 @@
 
 $class = $vars['class'];
 if (!$class) {
-       $class = "elgg-submit-button";
+       $class = "elgg-button-submit";
 }
 
 if (isset($vars['type'])) {