]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
adding elgg namespace to button css classes
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 22 Dec 2010 22:35:45 +0000 (22:35 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 22 Dec 2010 22:35:45 +0000 (22:35 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7704 36083f99-b078-4883-b0ff-0f9b5a30f544

23 files changed:
mod/defaultwidgets/views/default/defaultwidgets/editor.php
mod/ecml/views/default/embed/web_services/content.php
mod/groups/views/default/forms/forums/addtopic.php
mod/groups/views/default/forms/forums/edittopic.php
mod/groups/views/default/forms/groups/edit.php
mod/groups/views/default/groups/css.php
mod/groups/views/default/groups/invitationrequests.php
mod/groups/views/default/groups/membershiprequests.php
mod/messages/views/default/messages/forms/reply.php
mod/messages/views/default/messages/forms/send.php
mod/messages/views/default/messages/forms/view.php
mod/messages/views/default/messages/messages.php
mod/pages/views/default/forms/pages/edit.php
mod/pages/views/default/forms/pages/editwelcome.php
mod/riverdashboard/views/default/riverdashboard/css.php
views/default/admin/components/plugin.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/screen.php
views/default/input/button.php
views/installation/input/button.php

index 54090b8fad255d85cc0a04a93e9371c704f8533b..e84082107467b15fc2cab2b3666c83b54eb143a4 100644 (file)
@@ -262,7 +262,9 @@ $(document).ready(function () {
 ?>
 <input type="hidden" name="context" value="<?php echo $context; ?>" />
 <input type="hidden" name="owner" value="<?php echo elgg_get_page_owner_guid(); ?>" />
-<input type="submit" value="<?php echo elgg_echo('save'); ?>" class="submit-button"  />
+<?php
+       echo elgg_view('input/submit', array('value' => elgg_echo('save')));
+?>
 
 </form>
 </div><!-- /customise_editpanel -->
index cc44d582f5c42a59f98cb3df4288e6b89cf9e640..9e7ffbbb4b3e31f671da22976ac831ee7df45636 100644 (file)
@@ -45,7 +45,7 @@ $embed = elgg_view('input/submit', array(
        'internalid' => 'embed_submit',
        'type' => 'button',
        'value' => elgg_echo('embed:embed'),
-       'class' => 'submit-button disabled',
+       'class' => 'elgg-submit-button disabled',
        'disabled' => TRUE
 ));
 
index 7d61e2514e8caf341ae6a77d9a6790ddd85ff2ee..cf4921e208cdc0c209736b51558b04a4c758bb55 100644 (file)
@@ -97,7 +97,7 @@
        <!-- required hidden info and submit button -->
        <p>
                <input type="hidden" name="group_guid" value="<?php echo $group_guid; ?>" />
-               <input type="submit" class="submit-button" value="<?php echo elgg_echo('post'); ?>" />
+               <?php echo elgg_view('input/submit', array('value' => elgg_echo('post'))); ?>
        </p>
 
 </form>
index 6321a953649d71d1b57859129ba90cee1b5419c3..d053892185a178a48cf8ba40fdb50504c08ea26e 100644 (file)
@@ -90,7 +90,7 @@
                        <input type="hidden" name="group_guid" value="<?php echo $group_guid; ?>" />
                        <input type="hidden" name="topic" value="<?php echo $topic_guid; ?>" />
                        <input type="hidden" name="message_id" value="<?php echo $message_id; ?>" />
-                       <input type="submit" class="submit-button" value="<?php echo elgg_echo('save'); ?>" />
+                       <?php echo elgg_view('input/submit', array('value' => elgg_echo('save'))); ?>
                </p>
        
        </form>
\ No newline at end of file
index be0a5912c66445c04235da982a931a3e43118dc7..99ff92616af3f46bda1073420ccebc0e6f47462f 100644 (file)
@@ -139,8 +139,9 @@ if (is_array($vars['config']->group) && sizeof($vars['config']->group) > 0)
                <input type="hidden" name="group_guid" value="<?php echo $vars['entity']->getGUID(); ?>" />
                <?php
                        }
+
+                       echo elgg_view('input/submit', array('value' => elgg_echo('save')));
                ?>
-               <input type="submit" class="submit-button" value="<?php echo elgg_echo("save"); ?>" />
                
        </p>
 
index ffe500b2f5bb2658f49e8b5d1fdecc0079649765..acd18550eca659c363b159b7b4f6522efb0b0d2c 100644 (file)
@@ -35,7 +35,7 @@
 
 /* group invitations */
 .group_invitations a.elgg-action-button,
-.group_invitations a.submit-button {
+.group_invitations a.elgg-submit-button {
        float:right;
        margin:0 0 0 14px;
 }
index 17922c7a936589bd78fc1b7ecdfd0b607c23378e..9bb76e264fd99bfe93b98bbfaefd3484bd03e811 100644 (file)
@@ -18,7 +18,7 @@ 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="submit-button"><?php echo elgg_echo('accept'); ?></a>
+                       <a href="<?php echo $url; ?>" class="elgg-submit-button"><?php echo elgg_echo('accept'); ?></a>
                        <?php           
                                echo str_replace('<a', '<a class="elgg-action-button disabled" ', elgg_view('output/confirmlink',array(
                                        'href' => "action/groups/killinvitation?user_guid={$user->getGUID()}&group_guid={$group->getGUID()}",
index 2801b23018360063f47212e10285f39cbf1e17d4..05f1940594ced5450a9ecdd8ec66b3cafe26b866 100644 (file)
@@ -19,7 +19,7 @@
                                        $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="submit-button"><?php echo elgg_echo('accept'); ?></a>
+                                       <a href="<?php echo $url; ?>" class="elgg-submit-button"><?php echo elgg_echo('accept'); ?></a>
                                        <?php   
                                        echo str_replace('<a', '<a class="elgg-action-button disabled" ', elgg_view('output/confirmlink',array(
                                                'href' => 'action/groups/killrequest?user_guid='.$request->guid.'&group_guid=' . $vars['entity']->guid,
index 0b78f4db3f7cc4adcb8cceccdcbc32193b27adaa..bdf3d1283c847955f2e1f49ecec765e053651c53 100644 (file)
@@ -26,9 +26,9 @@
            echo "<input type='hidden' name='reply' value='" . $vars['entity']->getGUID() . "' />";
            //pass along the owner of the message being replied to
            echo "<input type='hidden' name='send_to' value='BAAA" . $vars['entity']->fromId . "' />";
-       
+
+                       echo elgg_view('input/submit', array('value' => elgg_echo("messages:fly")));
            ?>
-           <input type="submit" class="submit-button" value="<?php echo elgg_echo("messages:fly"); ?>" />
        </p>
        
 </form>
index 9a83ce103f9c1851259b295e9f9da7db9261b958..7707dab820befd780816052f961dca9482f0d3c1 100644 (file)
@@ -66,5 +66,9 @@ unset($_SESSION['msg_contents']);
                ));
        ?>
        </p>
-       <p><input type="submit" class="submit-button" value="<?php echo elgg_echo("messages:fly"); ?>" /></p>
+       <p>
+       <?php
+               echo elgg_view('input/submit', array('value' => elgg_echo("messages:fly")));
+       ?>
+       </p>
 </form>
index 272ac91c6e26e71429f66eb91c253acc28ca130a..5b9263382997545f908010b03823056c968f7332 100644 (file)
@@ -16,7 +16,7 @@ if($vars['page_view'] == "inbox"){
        $body .= '<input type="submit" name="submit" value="'.elgg_echo('messages:markread').'" /> ';
 }
 
-$body .= '<input class="cancel-button" type="button" onclick="javascript:$(\'input[type=checkbox]\').click();" value="'.elgg_echo('messages:toggle').'" />';
+$body .= '<input class="elgg-cancel-button" type="button" onclick="javascript:$(\'input[type=checkbox]\').click();" value="'.elgg_echo('messages:toggle').'" />';
 $body .= '</div>';
 
 echo elgg_view('input/form',array('body' => $body, 'action' => 'action/messages/delete', 'method' => 'post', 'internalid' => 'messages_list_form'));
\ No newline at end of file
index 0379bef355a6b4fda1d30b16b8505f265bb0382c..4567256b6168830f8a9311f4ff4220fa201b9e79 100644 (file)
@@ -107,8 +107,9 @@ if (isloggedin())
                                                echo "<input type='hidden' name='reply' value='" . $vars['entity']->getGUID() . "' />";
                                                //pass along the owner of the message being replied to
                                                echo "<input type='hidden' name='send_to' value='" . $vars['entity']->fromId . "' />";
+
+                                               echo elgg_view('input/submit', array('value' => elgg_echo("messages:fly")));
                                        ?>
-                                       <input type="submit" class="submit-button" value="<?php echo elgg_echo("messages:fly"); ?>" />
                                        </form>
                                </div>
 
index 5c052b1c6d37fafeae824a7f5954a7133ecaeab4..94e969a57c74f627c3cef648a32a3e7934493efa 100644 (file)
@@ -87,7 +87,9 @@ if ($container_guid) {
 ?>
        <input type="hidden" name="parent_guid" value="<?php if (!$new_page) echo $vars['entity']->parent_guid; else echo $parent_guid; ?>" />
        <input type="hidden" name="owner_guid" value="<?php if (!$new_page) echo $vars['entity']->owner_guid; else echo elgg_get_page_owner_guid(); ?>" />
-       <input type="submit" class="submit-button" value="<?php echo elgg_echo("save"); ?>" />
+<?php
+       echo elgg_view('input/submit', array('value' => elgg_echo('save')));
+?>
 </p>
 
 </form>
index 883939fd450a37b649f1485a81d5f9c21d9ef1f6..a0ad3131b4cf7dec896878d6bd857723940c8628 100644 (file)
@@ -49,7 +49,8 @@ $page_owner = $vars['owner']->guid;
        <input type="hidden" name="object_guid" value="<?php echo $object_guid; ?>" />
 <?php
                }
-       ?>
 
-<input type="submit" class="submit-button" value="<?php echo elgg_echo("save"); ?>" />
+       echo elgg_view('input/submit', array('value' => elgg_echo('save')));
+?>
+
 </form>
index 386e7edcb7ca7f0edff9e034d7fafffa5064e9f3..bb207d33cd1ad62477df7c4eba5a52ca28a10920 100644 (file)
 #profile-content .river-comment-form.hidden .input-text { /* when activity is displayed on profile page */
        width:535px;
 }
-.river-comment-form.hidden .submit-button {
+.river-comment-form.hidden .elgg-submit-button {
        margin:0 0 0 10px;
        float:right;
 }
index ad3d0ad96b53313470e419f205912127d7e56faf..60a1e3f8669824ce4acca20cac8651def75604dd 100644 (file)
@@ -50,10 +50,10 @@ if ($vars['order'] < $vars['maxorder']) {
 
 if ($active) {
        $url = elgg_get_site_url()."action/admin/plugins/disable?plugin=$plugin&__elgg_token=$token&__elgg_ts=$ts";
-       $enable_disable = '<a class="cancel-button" href="' . elgg_format_url($url) . '">' . elgg_echo('disable') . '</a>';
+       $enable_disable = '<a class="elgg-cancel-button" href="' . elgg_format_url($url) . '">' . elgg_echo('disable') . '</a>';
 } else {
        $url = elgg_get_site_url()."action/admin/plugins/enable?plugin=$plugin&__elgg_token=$token&__elgg_ts=$ts";
-       $enable_disable = '<a class="submit-button" href="' . elgg_format_url($url) . '">' . elgg_echo('enable') . '</a>';
+       $enable_disable = '<a class="elgg-submit-button" href="' . elgg_format_url($url) . '">' . elgg_echo('enable') . '</a>';
 }
 
 
index 38a5212937f7b19fc01e71df0d5932907d095348..8b801ed1d73001fe736df1aacdcbcc5be30e22bd 100644 (file)
@@ -76,7 +76,7 @@ $(document).ready(function() {
        $('input.username').focus();
        
        // add cancel button to inline register form
-       $('#registration_form').find('input.submit-button').after("<input class='elgg-action-button disabled cancel_request' type='reset' value='Cancel'>");
+       $('#registration_form').find('input.elgg-submit-button').after("<input class='elgg-action-button 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 3bbe4ffe2becb4285498e25b32c59313c61c7f20..da647b0acb5f636290bd839b7cbdddf112e97ff3 100644 (file)
@@ -270,8 +270,8 @@ if ($formtarget) {
 ?>
        <div class="clearfix"></div>
        <div class="friendspicker-savebuttons">
-               <input type="submit" class="submit-button" value="<?php echo elgg_echo('save'); ?>" />
-               <input type="button" class="cancel-button" value="<?php echo elgg_echo('cancel'); ?>" onclick="$('a.collectionmembers<?php echo $friendspicker; ?>').click();" />
+               <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();" />
        <br /></div>
        </form>
 
index 0c8c37cb472fa974152598002a1ab96435c701fe..c73bbfe423d0e0191c4f81e4a2e07e4aa37f0792 100644 (file)
@@ -237,7 +237,7 @@ table.mceLayout {
        float:right;
        margin-left:14px;
 }
-.admin_area .submit-button {
+.admin_area .elgg-submit-button {
        font-size: 14px;
        font-weight: bold;
        color: white;
@@ -257,7 +257,7 @@ table.mceLayout {
        -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 .submit-button:hover {
+.admin_area .elgg-submit-button:hover {
        color: white;
        border-color: #333333;
        text-decoration:none;
@@ -301,7 +301,7 @@ table.mceLayout {
        background-repeat:  repeat-x;
        background-position:  left 10px;
 }
-.admin_area .cancel-button {
+.admin_area .elgg-cancel-button {
        font-size: 14px;
        font-weight: bold;
        text-decoration:none;
@@ -318,7 +318,7 @@ table.mceLayout {
        margin:10px 0 10px 10px;
        cursor: pointer;
 }
-.admin_area .cancel-button:hover {
+.admin_area .elgg-cancel-button:hover {
        background-color: #999999;
        background-position:  left 10px;
        text-decoration:none;
@@ -546,7 +546,7 @@ table.mceLayout {
        float: left;
        width: 150px;
 }
-form.admin_plugins_simpleview .submit-button {
+form.admin_plugins_simpleview .elgg-submit-button {
        margin-right:20px;
 }
 .plugin_info {
index 603a128b7c8c9f5281d6333f4a2ff0b9fc4cc470..698d5fdf3a31927befcf5275a722e1311e4a9b03 100644 (file)
@@ -67,7 +67,7 @@ a.longtext-control {
        float:right;
        margin-left:14px;
 }
-.submit-button {
+.elgg-submit-button {
        font-size: 14px;
        font-weight: bold;
        color: white;
@@ -87,7 +87,7 @@ a.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);
 }
-.submit-button:hover {
+.elgg-submit-button:hover {
        color: white;
        border-color: #0054a7;
        text-decoration:none;
@@ -96,12 +96,12 @@ a.longtext-control {
        background-repeat:  repeat-x;
        background-position:  left 10px;
 }
-.submit-button.disabled {
+.elgg-submit-button.disabled {
        background-color:#999999;
        border-color:#999999;
        color:#dedede;
 }
-.submit-button.disabled:hover {
+.elgg-submit-button.disabled:hover {
        background-color:#999999;
        border-color:#999999;
        color:#dedede;
@@ -141,7 +141,7 @@ input[type="submit"]:hover {
        background-repeat:  repeat-x;
        background-position:  left 10px;
 }
-.cancel-button {
+.elgg-cancel-button {
        font-size: 14px;
        font-weight: bold;
        text-decoration:none;
@@ -158,7 +158,7 @@ input[type="submit"]:hover {
        margin:10px 0 10px 10px;
        cursor: pointer;
 }
-.cancel-button:hover {
+.elgg-cancel-button:hover {
        background-color: #999999;
        background-position:  left 10px;
        text-decoration:none;
index 16529004f2ea85a296df31c082cea2b19e6cd295..3eb7e93a006a326369edfb19713aa4f330eca196 100644 (file)
@@ -371,7 +371,7 @@ a.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover {
        font-weight:normal;
        font-size:100%;
 }
-.loginbox .submit-button {
+.loginbox .elgg-submit-button {
        margin-right: 15px;
 }
 #login .persistent-login {
@@ -467,7 +467,7 @@ a.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover {
        font-weight:normal;
        font-size: 100%;
 }
-#login-dropdown #signin-menu .submit-button {
+#login-dropdown #signin-menu .elgg-submit-button {
        margin-right:15px;
 }
 
@@ -744,8 +744,8 @@ a.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover {
 .friends-picker-navigation-r:hover {
        background: url("<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png") no-repeat -60px -44px;
 }
-.friendspicker-savebuttons .submit-button,
-.friendspicker-savebuttons .cancel-button {
+.friendspicker-savebuttons .elgg-submit-button,
+.friendspicker-savebuttons .elgg-cancel-button {
        margin:5px 20px 5px 5px;
 }
 #collectionMembersTable {
index 1c8bdaf3ccebedc0fc6bd98ca6775f0f5ae0c520..8e58b761861cd875d8a45f584a83e3af32fa8302 100644 (file)
@@ -12,7 +12,7 @@ global $CONFIG;
 
 $defaults = array(
        'type' => 'button',
-       'class' => 'submit-button',
+       'class' => 'elgg-submit-button',
 );
 
 $vars = array_merge($defaults, $vars);
index 759752c8c1073a0a83c137f5410dd17e0acbc5d5..76cf5afa1ecf32d82f2a794ec15d5d02a10934b8 100644 (file)
@@ -19,7 +19,7 @@ global $CONFIG;
 
 $class = $vars['class'];
 if (!$class) {
-       $class = "submit-button";
+       $class = "elgg-submit-button";
 }
 
 if (isset($vars['type'])) {