aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-22 22:35:45 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-22 22:35:45 +0000
commite22a24721de8750f5b61250a38be0d87f33e2c44 (patch)
tree5063de36f1350792d5bbb126e37cfb52b0135833 /mod
parent243215ec60e151099b366251be521b12b7c1e02b (diff)
downloadelgg-e22a24721de8750f5b61250a38be0d87f33e2c44.tar.gz
elgg-e22a24721de8750f5b61250a38be0d87f33e2c44.tar.bz2
adding elgg namespace to button css classes
git-svn-id: http://code.elgg.org/elgg/trunk@7704 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/defaultwidgets/views/default/defaultwidgets/editor.php4
-rw-r--r--mod/ecml/views/default/embed/web_services/content.php2
-rw-r--r--mod/groups/views/default/forms/forums/addtopic.php2
-rw-r--r--mod/groups/views/default/forms/forums/edittopic.php2
-rw-r--r--mod/groups/views/default/forms/groups/edit.php3
-rw-r--r--mod/groups/views/default/groups/css.php2
-rw-r--r--mod/groups/views/default/groups/invitationrequests.php2
-rw-r--r--mod/groups/views/default/groups/membershiprequests.php2
-rw-r--r--mod/messages/views/default/messages/forms/reply.php4
-rw-r--r--mod/messages/views/default/messages/forms/send.php6
-rw-r--r--mod/messages/views/default/messages/forms/view.php2
-rw-r--r--mod/messages/views/default/messages/messages.php3
-rw-r--r--mod/pages/views/default/forms/pages/edit.php4
-rw-r--r--mod/pages/views/default/forms/pages/editwelcome.php5
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/css.php2
15 files changed, 28 insertions, 17 deletions
diff --git a/mod/defaultwidgets/views/default/defaultwidgets/editor.php b/mod/defaultwidgets/views/default/defaultwidgets/editor.php
index 54090b8fa..e84082107 100644
--- a/mod/defaultwidgets/views/default/defaultwidgets/editor.php
+++ b/mod/defaultwidgets/views/default/defaultwidgets/editor.php
@@ -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 -->
diff --git a/mod/ecml/views/default/embed/web_services/content.php b/mod/ecml/views/default/embed/web_services/content.php
index cc44d582f..9e7ffbbb4 100644
--- a/mod/ecml/views/default/embed/web_services/content.php
+++ b/mod/ecml/views/default/embed/web_services/content.php
@@ -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
));
diff --git a/mod/groups/views/default/forms/forums/addtopic.php b/mod/groups/views/default/forms/forums/addtopic.php
index 7d61e2514..cf4921e20 100644
--- a/mod/groups/views/default/forms/forums/addtopic.php
+++ b/mod/groups/views/default/forms/forums/addtopic.php
@@ -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>
diff --git a/mod/groups/views/default/forms/forums/edittopic.php b/mod/groups/views/default/forms/forums/edittopic.php
index 6321a9536..d05389218 100644
--- a/mod/groups/views/default/forms/forums/edittopic.php
+++ b/mod/groups/views/default/forms/forums/edittopic.php
@@ -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
diff --git a/mod/groups/views/default/forms/groups/edit.php b/mod/groups/views/default/forms/groups/edit.php
index be0a5912c..99ff92616 100644
--- a/mod/groups/views/default/forms/groups/edit.php
+++ b/mod/groups/views/default/forms/groups/edit.php
@@ -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>
diff --git a/mod/groups/views/default/groups/css.php b/mod/groups/views/default/groups/css.php
index ffe500b2f..acd18550e 100644
--- a/mod/groups/views/default/groups/css.php
+++ b/mod/groups/views/default/groups/css.php
@@ -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;
}
diff --git a/mod/groups/views/default/groups/invitationrequests.php b/mod/groups/views/default/groups/invitationrequests.php
index 17922c7a9..9bb76e264 100644
--- a/mod/groups/views/default/groups/invitationrequests.php
+++ b/mod/groups/views/default/groups/invitationrequests.php
@@ -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()}",
diff --git a/mod/groups/views/default/groups/membershiprequests.php b/mod/groups/views/default/groups/membershiprequests.php
index 2801b2301..05f194059 100644
--- a/mod/groups/views/default/groups/membershiprequests.php
+++ b/mod/groups/views/default/groups/membershiprequests.php
@@ -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,
diff --git a/mod/messages/views/default/messages/forms/reply.php b/mod/messages/views/default/messages/forms/reply.php
index 0b78f4db3..bdf3d1283 100644
--- a/mod/messages/views/default/messages/forms/reply.php
+++ b/mod/messages/views/default/messages/forms/reply.php
@@ -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>
diff --git a/mod/messages/views/default/messages/forms/send.php b/mod/messages/views/default/messages/forms/send.php
index 9a83ce103..7707dab82 100644
--- a/mod/messages/views/default/messages/forms/send.php
+++ b/mod/messages/views/default/messages/forms/send.php
@@ -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>
diff --git a/mod/messages/views/default/messages/forms/view.php b/mod/messages/views/default/messages/forms/view.php
index 272ac91c6..5b9263382 100644
--- a/mod/messages/views/default/messages/forms/view.php
+++ b/mod/messages/views/default/messages/forms/view.php
@@ -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
diff --git a/mod/messages/views/default/messages/messages.php b/mod/messages/views/default/messages/messages.php
index 0379bef35..4567256b6 100644
--- a/mod/messages/views/default/messages/messages.php
+++ b/mod/messages/views/default/messages/messages.php
@@ -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>
diff --git a/mod/pages/views/default/forms/pages/edit.php b/mod/pages/views/default/forms/pages/edit.php
index 5c052b1c6..94e969a57 100644
--- a/mod/pages/views/default/forms/pages/edit.php
+++ b/mod/pages/views/default/forms/pages/edit.php
@@ -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>
diff --git a/mod/pages/views/default/forms/pages/editwelcome.php b/mod/pages/views/default/forms/pages/editwelcome.php
index 883939fd4..a0ad3131b 100644
--- a/mod/pages/views/default/forms/pages/editwelcome.php
+++ b/mod/pages/views/default/forms/pages/editwelcome.php
@@ -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>
diff --git a/mod/riverdashboard/views/default/riverdashboard/css.php b/mod/riverdashboard/views/default/riverdashboard/css.php
index 386e7edcb..bb207d33c 100644
--- a/mod/riverdashboard/views/default/riverdashboard/css.php
+++ b/mod/riverdashboard/views/default/riverdashboard/css.php
@@ -103,7 +103,7 @@
#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;
}