}
/* blogs edit/create form */
-form#blog_post_edit .submit_button {
+form#blog_post_edit .submit-button {
margin-right:15px;
}
/* force tinymce input height for a more useful editing / blog creation area */
$delete_link = elgg_view('output/confirmlink', array(
'href' => $delete_url,
'text' => elgg_echo('delete'),
- 'class' => 'action_button disabled'
+ 'class' => 'action-button disabled'
));
}
$edit_link = "<span class='entity_edit'><a href=\"$edit_url\">" . elgg_echo('edit') . '</a></span>';
$delete_url = "action/blog/delete?guid={$blog->getGUID()}";
- $delete_link = "<span class='delete_button'>" . elgg_view('output/confirmlink', array(
+ $delete_link = "<span class='delete-button'>" . elgg_view('output/confirmlink', array(
'href' => $delete_url,
'text' => elgg_echo('delete'),
'confirm' => elgg_echo('deleteconfirm')
//delete
if($vars['entity']->canEdit()){
- $delete .= "<span class='delete_button'>" . elgg_view('output/confirmlink',array(
+ $delete .= "<span class='delete-button'>" . elgg_view('output/confirmlink',array(
'href' => "action/bookmarks/delete?bookmark_guid=" . $vars['entity']->guid,
'text' => elgg_echo("delete"),
'confirm' => elgg_echo("bookmarks:delete:confirm"),
?>
<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" />
+<input type="submit" value="<?php echo elgg_echo('save'); ?>" class="submit-button" />
</form>
</div><!-- /customise_editpanel -->
$docs_href = elgg_get_site_url()."pg/ecml";
?>
-<a href="<?php echo $docs_href; ?>" class="longtext_control" title="<?php echo elgg_echo('ecml:help'); ?>" target="_new"><img src="<?php echo elgg_get_site_url(); ?>mod/ecml/graphics/ecml.png" width="50" height="15" alt="ECML" /></a>
\ No newline at end of file
+<a href="<?php echo $docs_href; ?>" class="longtext-control" title="<?php echo elgg_echo('ecml:help'); ?>" target="_new"><img src="<?php echo elgg_get_site_url(); ?>mod/ecml/graphics/ecml.png" width="50" height="15" alt="ECML" /></a>
\ No newline at end of file
'internalid' => 'embed_submit',
'type' => 'button',
'value' => elgg_echo('embed:embed'),
- 'class' => 'submit_button disabled',
+ 'class' => 'submit-button disabled',
'disabled' => TRUE
));
}
/* input field classes */
-#facebox .content .input_text,
-#facebox .content .input_tags {
+#facebox .content .input-text,
+#facebox .content .input-tags {
font: 120% Arial, Helvetica, sans-serif;
padding: 5px;
border: 1px solid #cccccc;
-moz-box-shadow: none;
box-shadow: none;
}
-#facebox .content .input_text:focus,
-#facebox .content .input_tags:focus {
+#facebox .content .input-text:focus,
+#facebox .content .input-tags:focus {
border: solid 1px #4690d6;
background: #e4ecf5;
color:#333333;
}
-#facebox .content .input_file {
+#facebox .content .input-file {
background-color: white;
}
#facebox .content p {
}
?>
-<a class="longtext_control small link" href="<?php echo elgg_get_site_url() . 'pg/embed'; ?>?<?php echo $active_section; ?>internal_name=<?php echo $vars['internalname']; ?>" rel="facebox"><?php echo elgg_echo('media:insert'); ?></a>
+<a class="longtext-control small link" href="<?php echo elgg_get_site_url() . 'pg/embed'; ?>?<?php echo $active_section; ?>internal_name=<?php echo $vars['internalname']; ?>" rel="facebox"><?php echo elgg_echo('media:insert'); ?></a>
?>
- <div class="filerepo_download"><p><a class="action_button small" href="<?php echo elgg_get_site_url(); ?>mod/file/download.php?file_guid=<?php echo $file_guid; ?>"><?php echo elgg_echo("file:download"); ?></a></p></div>
+ <div class="filerepo_download"><p><a class="action-button small" href="<?php echo elgg_get_site_url(); ?>mod/file/download.php?file_guid=<?php echo $file_guid; ?>"><?php echo elgg_echo("file:download"); ?></a></p></div>
<?php
<!-- 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'); ?>" />
+ <input type="submit" class="submit-button" value="<?php echo elgg_echo('post'); ?>" />
</p>
</form>
<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'); ?>" />
+ <input type="submit" class="submit-button" value="<?php echo elgg_echo('save'); ?>" />
</p>
</form>
\ No newline at end of file
<?php
}
?>
- <input type="submit" class="submit_button" value="<?php echo elgg_echo("save"); ?>" />
+ <input type="submit" class="submit-button" value="<?php echo elgg_echo("save"); ?>" />
</p>
$warning = elgg_echo("groups:deletewarning");
?>
<input type="hidden" name="group_guid" value="<?php echo $vars['entity']->getGUID(); ?>" />
- <input type="submit" class="action_button disabled" name="delete" value="<?php echo elgg_echo('groups:delete'); ?>" onclick="javascript:return confirm('<?php echo $warning; ?>')"/><?php
+ <input type="submit" class="action-button disabled" name="delete" value="<?php echo elgg_echo('groups:delete'); ?>" onclick="javascript:return confirm('<?php echo $warning; ?>')"/><?php
?>
</form>
</div>
// if comment owner, group owner, or site admin - display edit and delete options\r
if (groups_can_edit_discussion($vars['entity'], elgg_get_page_owner()->owner_guid)) {\r
echo "<div class='entity_metadata'>";\r
- echo "<span class='delete_button'>".elgg_view("output/confirmlink",array(\r
+ echo "<span class='delete-button'>".elgg_view("output/confirmlink",array(\r
'href' => "action/groups/deletepost?post=" . $vars['entity']->id . "&topic=" . get_input('topic') . "&group=" . get_input('group_guid'),\r
'text' => elgg_echo('delete'),\r
'confirm' => elgg_echo('deleteconfirm')\r
if(elgg_get_page_owner()->isMember(get_loggedin_user())) {
?>
<div class="content_header_options">
- <a class="action_button" href="<?php echo elgg_get_site_url(); ?>mod/groups/addtopic.php?group_guid=<?php echo $vars['group_guid']; ?>"><?php echo elgg_echo("groups:addtopic"); ?></a>
+ <a class="action-button" href="<?php echo elgg_get_site_url(); ?>mod/groups/addtopic.php?group_guid=<?php echo $vars['group_guid']; ?>"><?php echo elgg_echo("groups:addtopic"); ?></a>
</div>
<?php
}
/* group invitations */
-.group_invitations a.action_button,
-.group_invitations a.submit_button {
+.group_invitations a.action-button,
+.group_invitations a.submit-button {
float:right;
margin:0 0 0 14px;
}
if (!empty($actions)) {
$action_buttons = '<div class="content_header_options">';
foreach ($actions as $url => $action) {
- $action_buttons .= "<a class=\"action_button\" href=\"$url\">$action</a>";
+ $action_buttons .= "<a class=\"action-button\" href=\"$url\">$action</a>";
}
$action_buttons .= '</div>';
}
$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="submit-button"><?php echo elgg_echo('accept'); ?></a>
<?php
- echo str_replace('<a', '<a class="action_button disabled" ', elgg_view('output/confirmlink',array(
+ echo str_replace('<a', '<a class="action-button 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'),
$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="submit-button"><?php echo elgg_echo('accept'); ?></a>
<?php
- echo str_replace('<a', '<a class="action_button disabled" ', elgg_view('output/confirmlink',array(
+ echo str_replace('<a', '<a class="action-button 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'),
$info .= '</span>';
// display the delete link to those allowed to delete
- $info .= '<span class="delete_button">' . elgg_view("output/confirmlink", array(
+ $info .= '<span class="delete-button">' . elgg_view("output/confirmlink", array(
'href' => "action/groups/deletetopic?topic=" . $vars['entity']->guid . "&group=" . $vars['entity']->container_guid,
'text' => elgg_echo('delete'),
'confirm' => elgg_echo('deleteconfirm'),
<p class="margin_top">
<label>
$introduction
- <textarea class="input_textarea" name="emails" ></textarea>
+ <textarea class="input-textarea" name="emails" ></textarea>
</label>
</p>
<p>
<label>
$message
- <textarea class="input_textarea" name="emailmessage" >$default</textarea>
+ <textarea class="input-textarea" name="emailmessage" >$default</textarea>
</label>
</p>
HTML;
<form action="<?php echo elgg_get_site_url(); ?>action/messageboard/add" method="post" name="messageboardForm">
<!-- textarea for the contents -->
- <textarea name="message_content" value="" class="input_textarea"></textarea><br />
+ <textarea name="message_content" value="" class="input-textarea"></textarea><br />
<!-- the page owner, this will be the profile owner -->
<input type="hidden" name="pageOwner" value="<?php echo elgg_get_page_owner_guid(); ?>" />
<div id="mb_input_wrapper"><!-- start of mb_input_wrapper div -->
<!-- message textarea -->
- <textarea name="message_content" class="input_textarea"></textarea>
+ <textarea name="message_content" class="input-textarea"></textarea>
<!-- the page owner, this will be the profile owner -->
<input type="hidden" name="pageOwner" value="<?php echo elgg_get_page_owner_guid(); ?>" class="pageOwner" />
// Set the page title
$area2 = "<div id='content_header'><div class='content_header_title'>";
$area2 .= elgg_view_title(elgg_echo("messages:inbox"))."</div>";
-$area2 .= "<div class='content_header_options'><a class='action_button' href='".elgg_get_site_url()."mod/messages/send.php'>" . elgg_echo('messages:compose') . "</a></div></div>";
+$area2 .= "<div class='content_header_options'><a class='action-button' href='".elgg_get_site_url()."mod/messages/send.php'>" . elgg_echo('messages:compose') . "</a></div></div>";
// Display them. The last variable 'page_view' is to allow the view page to know where this data is coming from,
// in this case it is the inbox, this is necessary to ensure the correct display
// Set the page title
$area2 = "<div id='content_header'><div class='content_header_title'>";
$area2 .= elgg_view_title(elgg_echo("messages:sentmessages"))."</div>";
-$area2 .= "<div class='content_header_options'><a class='action_button' href='".elgg_get_site_url()."mod/messages/send.php'>" . elgg_echo('messages:compose') . "</a></div></div>";
+$area2 .= "<div class='content_header_options'><a class='action-button' href='".elgg_get_site_url()."mod/messages/send.php'>" . elgg_echo('messages:compose') . "</a></div></div>";
// Set content
$area2 .= elgg_view("messages/forms/view",array('entity' => $messages, 'page_view' => "sent", 'limit' => $limit, 'offset' => $offset));
width:513px;
padding-top:6px;
}
-.message .delete_button {
+.message .delete-button {
margin-top:3px;
}
.entity_listing.messages:hover {
<?php echo elgg_view('action/securitytoken'); ?>
<!-- populate the title space with the orginal message title, inserting re: before it -->
- <p><label><?php echo elgg_echo("messages:title"); ?>: <br /><input type='text' name='title' class="input_text" value='<?php echo $reply_title; ?>' /></label></p>
- <p><label><?php echo elgg_echo("messages:message"); ?>: <br /><textarea name='message' value='' class="input_textarea" /></textarea></label></p>
+ <p><label><?php echo elgg_echo("messages:title"); ?>: <br /><input type='text' name='title' class="input-text" value='<?php echo $reply_title; ?>' /></label></p>
+ <p><label><?php echo elgg_echo("messages:message"); ?>: <br /><textarea name='message' value='' class="input-textarea" /></textarea></label></p>
<p>
<?php
echo "<input type='hidden' name='send_to' value='BAAA" . $vars['entity']->fromId . "' />";
?>
- <input type="submit" class="submit_button" value="<?php echo elgg_echo("messages:fly"); ?>" />
+ <input type="submit" class="submit-button" value="<?php echo elgg_echo("messages:fly"); ?>" />
</p>
</form>
}
?>
- <p class="margin_top"><label><?php echo elgg_echo("messages:title"); ?>: <br /><input type='text' name='title' value='<?php echo $msg_title; ?>' class="input_text" /></label></p>
+ <p class="margin_top"><label><?php echo elgg_echo("messages:title"); ?>: <br /><input type='text' name='title' value='<?php echo $msg_title; ?>' class="input-text" /></label></p>
<p class="longtext_inputarea"><label><?php echo elgg_echo("messages:message"); ?>:</label>
<?php
echo elgg_view("input/longtext", array(
));
?>
</p>
- <p><input type="submit" class="submit_button" value="<?php echo elgg_echo("messages:fly"); ?>" /></p>
+ <p><input type="submit" class="submit-button" value="<?php echo elgg_echo("messages:fly"); ?>" /></p>
</form>
$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="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
<div id="content_header" class="clearfix">
<div class="content_header_title"><h2><?php echo $vars['entity']->title; ?></h2></div>
<div class="content_header_options">
- <a class="action_button message_reply" onclick="elgg_slide_toggle(this,'#elgg_page_contents','#message_reply_form');"><?php echo elgg_echo('messages:answer'); ?></a>
+ <a class="action-button message_reply" onclick="elgg_slide_toggle(this,'#elgg_page_contents','#message_reply_form');"><?php echo elgg_echo('messages:answer'); ?></a>
<?php echo elgg_view("output/confirmlink", array(
'href' => "action/messages/delete?message_id=" . $vars['entity']->getGUID() . "&type={$type}&submit=" . elgg_echo('delete'),
'text' => elgg_echo('delete'),
'confirm' => elgg_echo('deleteconfirm'),
- 'class' => "action_button disabled"
+ 'class' => "action-button disabled"
));
?>
</div>
<h2><?php echo elgg_echo('messages:answer'); ?></h2>
<form action="<?php echo elgg_get_site_url(); ?>action/messages/send" method="post" name="messageForm" class="margin_top" id="messages_send_form">
<?php echo elgg_view('input/securitytoken'); ?>
- <p><label><?php echo elgg_echo("messages:title"); ?>: <br /><input type='text' name='title' class="input_text" value='<?php echo $reply_title; ?>' /></label></p>
+ <p><label><?php echo elgg_echo("messages:title"); ?>: <br /><input type='text' name='title' class="input-text" value='<?php echo $reply_title; ?>' /></label></p>
<p class="longtext_inputarea"><label><?php echo elgg_echo("messages:message"); ?>:</label>
<?php echo elgg_view("input/longtext", array(
"internalname" => "message",
//pass along the owner of the message being replied to
echo "<input type='hidden' name='send_to' value='" . $vars['entity']->fromId . "' />";
?>
- <input type="submit" class="submit_button" value="<?php echo elgg_echo("messages:fly"); ?>" />
+ <input type="submit" class="submit-button" value="<?php echo elgg_echo("messages:fly"); ?>" />
</form>
</div>
// display message subject
echo "<div class='message_subject'>";
// display delete button
- echo "<span class='delete_button'>" . elgg_view("output/confirmlink", array(
+ echo "<span class='delete-button'>" . elgg_view("output/confirmlink", array(
'href' => "action/messages/delete?message_id=" . $message->getGUID() . "&type=inbox&submit=" . urlencode(elgg_echo('delete')),
'text' => elgg_echo('delete'),
'confirm' => elgg_echo('deleteconfirm'),
// display message subject
echo "<div class='message_subject'>";
//display the link to 'delete'
- echo "<div class='delete_button'>" . elgg_view("output/confirmlink", array(
+ echo "<div class='delete-button'>" . elgg_view("output/confirmlink", array(
'href' => "action/messages/delete?message_id=" . $message->getGUID() . "&type=sent&submit=" . urlencode(elgg_echo('delete')),
'text' => elgg_echo('delete'),
'confirm' => elgg_echo('deleteconfirm'),
?>
<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"); ?>" />
+ <input type="submit" class="submit-button" value="<?php echo elgg_echo("save"); ?>" />
</p>
</form>
}
?>
-<input type="submit" class="submit_button" value="<?php echo elgg_echo("save"); ?>" />
+<input type="submit" class="submit-button" value="<?php echo elgg_echo("save"); ?>" />
</form>
$resetlisting = elgg_view('input/form',
array (
- 'body' => elgg_view('input/submit', array('value' => elgg_echo('profile:resetdefault'), 'class' => 'action_button disabled')),
+ 'body' => elgg_view('input/submit', array('value' => elgg_echo('profile:resetdefault'), 'class' => 'action-button disabled')),
'action' => 'action/profile/editdefault/reset'
)
);
<?php
// if the user looking at the comment can edit, show the delete link
if ($vars['annotation']->canEdit()) {
- echo "<div class='entity_metadata'><span class='delete_button'>" . elgg_view("output/confirmlink",array(
+ echo "<div class='entity_metadata'><span class='delete-button'>" . elgg_view("output/confirmlink",array(
'href' => "action/profile/deletecomment?annotation_id=" . $vars['annotation']->id,
'text' => elgg_echo('delete'),
'confirm' => elgg_echo('deleteconfirm'),
#owner_block .profile_actions {
margin-top:10px;
}
-#owner_block .profile_actions a.action_button {
+#owner_block .profile_actions a.action-button {
margin-bottom:4px;
display: table;
}
border-top: 1px solid #dedede;
margin-top:30px;
}
-.default_profile_reset .action_button {
+.default_profile_reset .action-button {
float:right;
}
/* field re-order */
<p>
<input type="hidden" name="username" value="<?php echo elgg_get_page_owner()->username; ?>" />
- <input type="submit" class="submit_button" value="<?php echo elgg_echo("save"); ?>" />
+ <input type="submit" class="submit-button" value="<?php echo elgg_echo("save"); ?>" />
</p>
</form>
\ No newline at end of file
//$even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even';
$url = elgg_add_action_tokens_to_url(elgg_get_site_url()."action/profile/editdefault/delete?id={$item->shortname}");
- echo "<li id=\"{$item->shortname}\"><div class='delete_button'><a href=\"$url\">" . elgg_echo('delete') . "</a></div>";
+ echo "<li id=\"{$item->shortname}\"><div class='delete-button'><a href=\"$url\">" . elgg_echo('delete') . "</a></div>";
echo "<img width='16' height='16' class='handle' alt='move' title='Drag here to reorder this item' src='".elgg_get_site_url()."mod/profile/graphics/drag_handle.png'/>";
echo "<b class=\"profile_field_editable\"><span class=\"{$item->shortname}_editable\">$item->translation</span></b>: [".elgg_echo($item->type)."]";
echo "</li>";
echo elgg_view("input/file",array('internalname' => 'profileicon'));
?>
- <br /><input type="submit" class="submit_button" value="<?php echo elgg_echo("upload"); ?>" />
+ <br /><input type="submit" class="submit-button" value="<?php echo elgg_echo("upload"); ?>" />
</p>
</form>
</div>
$profile_actions = "";
if (isloggedin() && (get_loggedin_userid() == elgg_get_page_owner_guid())) {
$profile_actions = "<div class='clearfix profile_actions'>";
- $profile_actions .= "<a href='".elgg_get_site_url()."pg/profile/{$user->username}/edit/details' class='action_button'>". elgg_echo('profile:edit') ."</a>";
- $profile_actions .= "<a href='".elgg_get_site_url()."pg/profile/{$user->username}/edit/icon' class='action_button'>". elgg_echo('profile:editicon') ."</a>";
+ $profile_actions .= "<a href='".elgg_get_site_url()."pg/profile/{$user->username}/edit/details' class='action-button'>". elgg_echo('profile:edit') ."</a>";
+ $profile_actions .= "<a href='".elgg_get_site_url()."pg/profile/{$user->username}/edit/icon' class='action-button'>". elgg_echo('profile:editicon') ."</a>";
$profile_actions .= "</div>";
} else {
$profile_actions = "<div class='profile_actions'>";
if ($user->isFriend()) {
$url = elgg_get_site_url()."action/friends/remove?friend={$user->getGUID()}";
$url = elgg_add_action_tokens_to_url($url);
- $profile_actions .= "<a href=\"$url\" class='action_button'>" . elgg_echo('friend:remove') . "</a>";
+ $profile_actions .= "<a href=\"$url\" class='action-button'>" . elgg_echo('friend:remove') . "</a>";
} else {
$url = elgg_get_site_url()."action/friends/add?friend={$user->getGUID()}";
$url = elgg_add_action_tokens_to_url($url);
- $profile_actions .= "<a href=\"$url\" class='action_button'>" . elgg_echo('friend:add') . "</a>";
+ $profile_actions .= "<a href=\"$url\" class='action-button'>" . elgg_echo('friend:add') . "</a>";
}
}
}
if (is_plugin_enabled('messages') && isloggedin()) {
- $profile_actions .= "<a href=\"".elgg_get_site_url()."mod/messages/send.php?send_to={$user->guid}\" class='action_button'>". elgg_echo('messages:send') ."</a>";
+ $profile_actions .= "<a href=\"".elgg_get_site_url()."mod/messages/send.php?send_to={$user->guid}\" class='action-button'>". elgg_echo('messages:send') ."</a>";
}
$profile_actions .= "</div>";
}
'href' => $archive_url,
'text' => elgg_echo('reportedcontent:archive'),
'is_action' => true,
- 'class' => 'action_button',
+ 'class' => 'action-button',
);
echo elgg_view('output/url', $params);
}
'href' => $delete_url,
'text' => elgg_echo('reportedcontent:delete'),
'is_action' => true,
- 'class' => 'action_button disabled',
+ 'class' => 'action-button disabled',
);
echo elgg_view('output/url', $params);
?>
padding:5px;
height:26px;
}
-.river_comment_form.hidden .input_text {
+.river_comment_form.hidden .input-text {
width:560px;
padding:3px;
}
-#profile_content .river_comment_form.hidden .input_text { /* when activity is displayed on profile page */
+#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 .submit-button {
margin:0 0 0 10px;
float:right;
}
$welcomemessage_form = elgg_view('input/longtext', array(\r
'internalname' => 'welcomemessage',\r
'value' => $welcomemessage,\r
- 'class' => 'input_textarea monospace'\r
+ 'class' => 'input-textarea monospace'\r
));\r
$sidebartitle_form = elgg_view('input/text', array(\r
'internalname' => 'sidebartitle',\r
$sidebarmessage_form = elgg_view('input/longtext', array(\r
'internalname' => 'sidebarmessage',\r
'value' => $sidebarmessage,\r
- 'class' => 'input_textarea monospace'\r
+ 'class' => 'input-textarea monospace'\r
));;\r
\r
$page_type = elgg_view('input/hidden', array(\r
<?php
if(isloggedin()){
?>
- <a href="<?php echo elgg_get_site_url(); ?>mod/thewire/add.php?wire_username=<?php echo $vars['entity']->getOwnerEntity()->username; ?>" class="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="action-button 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
if ($vars['entity']->canEdit()) {
- echo "<span class='delete_button'>" . elgg_view("output/confirmlink",array(
+ echo "<span class='delete-button'>" . elgg_view("output/confirmlink",array(
'href' => "action/thewire/delete?thewirepost=" . $vars['entity']->getGUID(),
'text' => elgg_echo('delete'),
'confirm' => elgg_echo('deleteconfirm'),
float:right;
width:65px;
}
-.wire_post_options .action_button.reply.small {
+.wire_post_options .action-button.reply.small {
float:right;
}
-.wire_post_options .delete_button {
+.wire_post_options .delete-button {
position: absolute;
bottom:5px;
right:5px;
/* latest wire post on profile page */
-.wire_post .action_button.update.small {
+.wire_post .action-button.update.small {
float:right;
padding:4px;
position: absolute;
<?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='action_button' value='{$action_txt}' />";
+ $display .= "<input type='submit' class='action-button' 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>";
echo $content;
if ($owner == get_loggedin_userid()) {
$text = elgg_echo('thewire:update');
- echo "<a class='action_button update small' href=\"{$url_to_wire}\">$text</a>";
+ echo "<a class='action-button update small' href=\"{$url_to_wire}\">$text</a>";
}
echo $time;
echo "</div></div>";
?>
-<a class="longtext_control toggle_editor small link" href="javascript:toggleEditor('<?php echo $vars['internalname']; ?>');"><?php echo elgg_echo('tinymce:remove'); ?></a>
+<a class="longtext-control toggle_editor small link" href="javascript:toggleEditor('<?php echo $vars['internalname']; ?>');"><?php echo elgg_echo('tinymce:remove'); ?></a>
<!-- show the textarea -->
-<textarea class="input_textarea mceEditor" name="<?php echo $vars['internalname']; ?>" <?php echo $vars['js']; ?>><?php echo htmlentities($vars['value'], null, 'UTF-8'); ?></textarea>
+<textarea class="input-textarea mceEditor" name="<?php echo $vars['internalname']; ?>" <?php echo $vars['js']; ?>><?php echo htmlentities($vars['value'], null, 'UTF-8'); ?></textarea>
<script type="text/javascript">
$(document).ready(function() {
padding:0 0 0 20px;
margin:0;
}
-p.twitter_username .input_text {
+p.twitter_username .input-text {
width:200px;
}
.visit_twitter {
// 'internalname' => 'user_guids',
// 'options' => array("$user->username - \"$user->name\" <$user->email>" => $user->guid)
//));
-$checkbox = "<label><input type=\"checkbox\" value=\"$user->guid\" class=\"input_checkboxes\" name=\"user_guids[]\">"
+$checkbox = "<label><input type=\"checkbox\" value=\"$user->guid\" class=\"input-checkboxes\" name=\"user_guids[]\">"
. "$user->username - \"$user->name\" <$user->email></label>";
$created = elgg_echo('uservalidationbyemail:admin:user_created', array(elgg_view_friendly_time($user->time_created)));
$admin_option = true;
}
-$form_body = "<p><label>" . elgg_echo('name') . "<br />" . elgg_view('input/text' , array('internalname' => 'name', 'class' => "input_text name", 'value' => $name)) . "</label></p>";
-$form_body .= "<p><label>" . elgg_echo('email') . "<br />" . elgg_view('input/text' , array('internalname' => 'email', 'class' => "input_text", 'value' => $email)) . "</label></p>";
-$form_body .= "<p><label>" . elgg_echo('username') . "<br />" . elgg_view('input/text' , array('internalname' => 'username', 'class' => "input_text", 'value' => $username)) . "</label></p>";
-$form_body .= "<p><label>" . elgg_echo('password') . "<br />" . elgg_view('input/password' , array('internalname' => 'password', 'class' => "input_password")) . "</label></p>";
-$form_body .= "<p><label>" . elgg_echo('passwordagain') . "<br />" . elgg_view('input/password' , array('internalname' => 'password2', 'class' => "input_password")) . "</label></p>";
+$form_body = "<p><label>" . elgg_echo('name') . "<br />" . elgg_view('input/text' , array('internalname' => 'name', 'class' => "input-text name", 'value' => $name)) . "</label></p>";
+$form_body .= "<p><label>" . elgg_echo('email') . "<br />" . elgg_view('input/text' , array('internalname' => 'email', 'class' => "input-text", 'value' => $email)) . "</label></p>";
+$form_body .= "<p><label>" . elgg_echo('username') . "<br />" . elgg_view('input/text' , array('internalname' => 'username', 'class' => "input-text", 'value' => $username)) . "</label></p>";
+$form_body .= "<p><label>" . elgg_echo('password') . "<br />" . elgg_view('input/password' , array('internalname' => 'password', 'class' => "input-password")) . "</label></p>";
+$form_body .= "<p><label>" . elgg_echo('passwordagain') . "<br />" . elgg_view('input/password' , array('internalname' => 'password2', 'class' => "input-password")) . "</label></p>";
// view to extend to add more fields to the registration form
$form_body .= elgg_view('register/extend');
$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='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='action-button disabled cancel_request' type='reset' value='Cancel'></p>";
?>
<div id="lostpassword_form" class="hidden clearfix">
$('input.username').focus();
// add cancel button to inline register form
- $('#registration_form').find('input.submit_button').after("<input class='action_button disabled cancel_request' type='reset' value='Cancel'>");
+ $('#registration_form').find('input.submit-button').after("<input class='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});
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="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="submit-button" href="' . elgg_format_url($url) . '">' . elgg_echo('enable') . '</a>';
}
$form_body = elgg_view("settings/{$plugin}/edit", $vars);
$form_body .= elgg_view('input/hidden', array('internalname' => 'plugin', 'value' => $plugin));
$form_body .= "<div class='divider'></div>" . elgg_view('input/submit', array('value' => elgg_echo('save')));
-$form_body .= elgg_view('input/reset', array('value' => elgg_echo('reset'), 'class' => 'action_button disabled'));
+$form_body .= elgg_view('input/reset', array('value' => elgg_echo('reset'), 'class' => 'action-button disabled'));
echo elgg_view_title($plugin_info['name']);
$category_button = elgg_view('input/submit', array(
'value' => elgg_echo('filter'),
- 'class' => 'action_button'
+ 'class' => 'action-button'
));
$category_form = elgg_view('input/form', array(
// @todo Until "en/disable all" means "All plugins on this page" hide when not looking at all.
if (!isset($show_category) || empty($show_category)) {
- $buttons = "<a class='action_button' href=\"{$CONFIG->url}action/admin/plugins/enableall?__elgg_token=$token&__elgg_ts=$ts\">".elgg_echo('enableall')."</a> <a class='action_button disabled' href=\"{$CONFIG->url}action/admin/plugins/disableall?__elgg_token=$token&__elgg_ts=$ts\">".elgg_echo('disableall')."</a> ";
+ $buttons = "<a class='action-button' href=\"{$CONFIG->url}action/admin/plugins/enableall?__elgg_token=$token&__elgg_ts=$ts\">".elgg_echo('enableall')."</a> <a class='action-button disabled' href=\"{$CONFIG->url}action/admin/plugins/disableall?__elgg_token=$token&__elgg_ts=$ts\">".elgg_echo('disableall')."</a> ";
$buttons .= "<br /><br />";
} else {
$buttons = '';
$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' => 'action_button disabled'));
+$form_body .= elgg_view('input/reset', array('value' => elgg_echo('reset'), 'class' => 'action-button disabled'));
echo elgg_view('input/form', array(
'action' => "action/admin/plugins/simple_update_states",
// if the user looking at the comment can edit, show the delete link
if ($vars['annotation']->canEdit()) {
?>
- <span class="delete_button">
+ <span class="delete-button">
<?php echo elgg_view("output/confirmlink",array(
'href' => "action/comments/delete?annotation_id=" . $vars['annotation']->id,
'text' => elgg_echo('delete'),
// if the user looking at the like listing can edit, show the delete link
if ($vars['annotation']->canEdit()) {
?>
- <div class="entity_metadata"><span class="delete_button">
+ <div class="entity_metadata"><span class="delete-button">
<?php echo elgg_view("output/confirmlink",array(
'href' => "action/likes/delete?annotation_id=" . $vars['annotation']->id,
'text' => elgg_echo('remove'),
font-size:100%;
font-weight:normal;
}
-.admin_area .input_textarea {
+.admin_area .input-textarea {
width:98%;
}
.admin_area form#plugin_settings {
margin-top: 10px;
}
-.admin_area form#plugin_settings .action_button.disabled {
+.admin_area form#plugin_settings .action-button.disabled {
margin-top:10px;
float:right;
}
GENERAL FORM ELEMENTS
*************************************** */
/* default elgg core input field classes */
-.admin_area .input_text,
-.admin_area .input_tags,
-.admin_area .input_url,
-.admin_area .input_textarea {
+.admin_area .input-text,
+.admin_area .input-tags,
+.admin_area .input-url,
+.admin_area .input-textarea {
width:98%;
}
-.admin_area .input_access {
+.admin_area .input-access {
margin:5px 0 0 0;
}
-.admin_area .input_password {
+.admin_area .input-password {
width:200px;
}
-.admin_area .input_textarea {
+.admin_area .input-textarea {
height: 200px;
width:718px;
}
.admin_area input[type="checkbox"],
-.admin_area input.input_radio {
+.admin_area input.input-radio {
margin:0 3px 0 0;
padding:0;
border:none;
background: #f5f5f5;
color:#333333;
}
-.admin_area .input_textarea.monospace {
+.admin_area .input-textarea.monospace {
font-family:Monaco,"Courier New",Courier,monospace;
font-size:13px;
}
-.admin_area a.longtext_control {
+.admin_area a.longtext-control {
float:right;
margin-left:14px;
}
-.admin_area .submit_button {
+.admin_area .submit-button {
font-size: 14px;
font-weight: bold;
color: white;
-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 .submit-button:hover {
color: white;
border-color: #333333;
text-decoration:none;
background-repeat: repeat-x;
background-position: left 10px;
}
-.admin_area .cancel_button {
+.admin_area .cancel-button {
font-size: 14px;
font-weight: bold;
text-decoration:none;
margin:10px 0 10px 10px;
cursor: pointer;
}
-.admin_area .cancel_button:hover {
+.admin_area .cancel-button:hover {
background-color: #999999;
background-position: left 10px;
text-decoration:none;
color:white;
}
-.admin_area .content_header_options .action_button {
+.admin_area .content_header_options .action-button {
margin-top:0;
margin-left:10px;
}
-.admin_area input.action_button,
-.admin_area a.action_button {
+.admin_area input.action-button,
+.admin_area a.action-button {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
background-color:#cccccc;
-webkit-box-shadow: none;
-moz-box-shadow: none;
}
-.admin_area input.action_button:hover,
-.admin_area a.action_button:hover,
-.admin_area input.action_button:focus,
-.admin_area a.action_button:focus {
+.admin_area input.action-button:hover,
+.admin_area a.action-button:hover,
+.admin_area input.action-button:focus,
+.admin_area a.action-button:focus {
background-position:0 -15px;
background-image: url(<?php echo elgg_get_site_url(); ?>_graphics/button_background.gif);
background-repeat: repeat-x;
background-color:#cccccc;
border:1px solid #999999;
}
-.admin_area .action_button:active {
+.admin_area .action-button:active {
background-image:none;
}
-.admin_area .action_button.disabled {
+.admin_area .action-button.disabled {
color:#999999;
padding:2px 7px 2px 7px;
}
-.admin_area .action_button.disabled:hover {
+.admin_area .action-button.disabled:hover {
background-position:0 -15px;
color:#111111;
border:1px solid #999999;
}
-.admin_area .action_button.disabled:active {
+.admin_area .action-button.disabled:active {
background-image:none;
}
-.admin_area .action_button.download {
+.admin_area .action-button.download {
padding: 5px 9px 5px 6px;
}
-.admin_area .action_button.download:hover {
+.admin_area .action-button.download:hover {
}
-.admin_area .action_button.download img {
+.admin_area .action-button.download img {
margin-right:6px;
position:relative;
top:5px;
}
-.admin_area .action_button.small {
+.admin_area .action-button.small {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
width: auto;
font-size: 0.9em;
line-height: 0.6em;
}
-.admin_area .action_button.small:hover {
+.admin_area .action-button.small:hover {
background-color: #0054A7;
background-image: none;
border-color: #0054A7;
.content_header_options {
float:right;
}
-.content_header_options .action_button {
+.content_header_options .action-button {
float:right;
margin:0 0 5px 10px;
}
float: left;
width: 150px;
}
-form.admin_plugins_simpleview .submit_button {
+form.admin_plugins_simpleview .submit-button {
margin-right:20px;
}
.plugin_info {
.configure_menuitems {
margin-bottom:30px;
}
-.admin_settings.menuitems .input_pulldown {
+.admin_settings.menuitems .input-pulldown {
margin-right:15px;
margin-bottom:10px;
}
Form Elements
*************************************** */
/* default elgg core input field classes */
-.input_text,
-.input_tags,
-.input_url,
-.input_textarea {
+.input-text,
+.input-tags,
+.input-url,
+.input-textarea {
width:98%;
}
-.input_access {
+.input-access {
margin:5px 0 0 0;
}
-.input_password {
+.input-password {
width:200px;
}
-.input_textarea {
+.input-textarea {
height: 200px;
width:718px;
}
input[type="checkbox"],
-input.input_radio {
+input.input-radio {
margin:0 3px 0 0;
padding:0;
border:none;
background: #e4ecf5;
color:#333333;
}
-.input_textarea.monospace {
+.input-textarea.monospace {
font-family:Monaco,"Courier New",Courier,monospace;
font-size:13px;
}
-a.longtext_control {
+a.longtext-control {
float:right;
margin-left:14px;
}
-.submit_button {
+.submit-button {
font-size: 14px;
font-weight: bold;
color: white;
-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 {
+.submit-button:hover {
color: white;
border-color: #0054a7;
text-decoration:none;
background-repeat: repeat-x;
background-position: left 10px;
}
-.submit_button.disabled {
+.submit-button.disabled {
background-color:#999999;
border-color:#999999;
color:#dedede;
}
-.submit_button.disabled:hover {
+.submit-button.disabled:hover {
background-color:#999999;
border-color:#999999;
color:#dedede;
background-repeat: repeat-x;
background-position: left 10px;
}
-.cancel_button {
+.cancel-button {
font-size: 14px;
font-weight: bold;
text-decoration:none;
margin:10px 0 10px 10px;
cursor: pointer;
}
-.cancel_button:hover {
+.cancel-button:hover {
background-color: #999999;
background-position: left 10px;
text-decoration:none;
color:white;
}
-input.action_button,
-a.action_button {
+input.action-button,
+a.action-button {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
background-color:#cccccc;
-webkit-box-shadow: none;
-moz-box-shadow: none;
}
-input.action_button:hover,
-a.action_button:hover,
-input.action_button:focus,
-a.action_button:focus {
+input.action-button:hover,
+a.action-button:hover,
+input.action-button:focus,
+a.action-button:focus {
background-position:0 -15px;
background-image: url(<?php echo elgg_get_site_url(); ?>_graphics/button_background.gif);
background-repeat: repeat-x;
background-color:#cccccc;
border:1px solid #999999;
}
-.action_button:active {
+.action-button:active {
background-image:none;
}
-.action_button.disabled {
+.action-button.disabled {
color:#999999;
padding:2px 7px 2px 7px;
}
-.action_button.disabled:hover {
+.action-button.disabled:hover {
background-position:0 -15px;
color:#111111;
border:1px solid #999999;
}
-.action_button.disabled:active {
+.action-button.disabled:active {
background-image:none;
}
-.action_button.download {
+.action-button.download {
padding: 5px 9px 5px 6px;
}
-.action_button.download:hover {
+.action-button.download:hover {
}
-.action_button.download img {
+.action-button.download img {
margin-right:6px;
position:relative;
top:5px;
}
-.action_button.small {
+.action-button.small {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
width: auto;
font-size: 0.9em;
line-height: 0.6em;
}
-.action_button.small:hover {
+.action-button.small:hover {
background-color: #4690d6;
background-image: none;
border-color: #4690d6;
text-shadow:0 -1px 0 black;
}
/* small round delete button */
-.delete_button {
+.delete-button {
width:14px;
height:14px;
margin:0;
float:right;
}
-.delete_button a {
+.delete-button a {
display:block;
cursor: pointer;
width:14px;
text-indent: -9000px;
text-align: left;
}
-.delete_button a:hover {
+.delete-button a:hover {
background-position: -200px -16px;
}
.likes_list {display:none;}
.likes_list_holder .likes_list {top:20px !important;} /* position likes list below link in IE to prevent clipping */
-.elgg_likes_user .entity_metadata .delete_button {float:none;}
+.elgg_likes_user .entity_metadata .delete-button {float:none;}
/* profile */
.elgg_horizontal_tabbed_nav.profile .profile_name {margin-left: -260px;}
-#profile_content .river_comment_form.hidden .input_text { width:510px; }
+#profile_content .river_comment_form.hidden .input-text { width:510px; }
/* notifications */
.friends_picker_navigation {margin:0;padding:0;}
#riverdashboard_updates {clear:both;}
#riverdashboard_updates a.update_link {margin:0 0 9px 0;}
.riverdashboard_filtermenu {margin:10px 0 0 0;}
-.river_comment_form.hidden .input_text {
+.river_comment_form.hidden .input-text {
width:530px;
float:left;
}
.navigation li.navigation_more ul li a {width:150px;background-color: #dedede;}
/* @todo check this one */
-.delete_button a { background-position-y: 2px; }
-.delete_button a:hover { background-position-y: -14px; }
\ No newline at end of file
+.delete-button a { background-position-y: 2px; }
+.delete-button a:hover { background-position-y: -14px; }
\ No newline at end of file
font-weight:normal;
font-size:100%;
}
-.loginbox .submit_button {
+.loginbox .submit-button {
margin-right: 15px;
}
#login .persistent_login {
font-weight:normal;
font-size: 100%;
}
-#login_dropdown #signin_menu .submit_button {
+#login_dropdown #signin_menu .submit-button {
margin-right:15px;
}
.content_header_options {
float:right;
}
-.content_header_options .action_button {
+.content_header_options .action-button {
float:right;
margin:0 0 5px 10px;
}
.entity_metadata .entity_edit a:hover {
color:#555555;
}
-.entity_metadata .delete_button {
+.entity_metadata .delete-button {
margin-top:3px;
}
/* override hover for lists of site users/members */
.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 .submit-button,
+.friendspicker_savebuttons .cancel-button {
margin:5px 20px 5px 5px;
}
#collectionMembersTable {
margin-top:5px;
border-bottom:1px solid #cccccc;
}
-.user_picker_entry .delete_button {
+.user_picker_entry .delete-button {
margin-right:10px;
}
?>
<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="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();" />
<br /></div>
</form>
*
*/
-$class = "input_access";
+$class = "input-access";
if (isset($vars['class'])) {
$class = $vars['class'];
}
$defaults = array(
'type' => 'button',
- 'class' => 'submit_button',
+ 'class' => 'submit-button',
);
$vars = array_merge($defaults, $vars);
*/
$defaults = array(
- 'class' => 'input_checkbox',
+ 'class' => 'input-checkbox',
);
$vars = array_merge($defaults, $vars);
$vars['value'] = elgg_get_sticky_value($vars['internalname']);
}
-$class = (isset($vars['class'])) ? $vars['class'] : 'input_checkboxes';
+$class = (isset($vars['class'])) ? $vars['class'] : 'input-checkboxes';
$value = (isset($vars['value'])) ? $vars['value'] : NULL;
$value_array = (is_array($value)) ? array_map('strtolower', $value) : array(strtolower($value));
$internalname = (isset($vars['internalname'])) ? $vars['internalname'] : '';
*/
$defaults = array(
- 'class' => 'input_text', //@todo input_email?
+ 'class' => 'input-text', //@todo input-email?
'disabled' => FALSE,
);
echo elgg_echo('fileexists') . "<br />";
}
-$class = "input_file";
+$class = "input-file";
if (isset($vars['class'])) {
$class = $vars['class'];
}
* @uses $vars['disabled'] Is the input field disabled?
*/
-$class = "input_textarea";
+$class = "input-textarea";
if (isset($vars['class'])) {
$class = $vars['class'];
}
$class = $vars['class'];
if (!$class) {
- $class = "input_password";
+ $class = "input-password";
}
?>
$class = $vars['class'];
if (!$class) {
- $class = "input_textarea";
+ $class = "input-textarea";
}
if (!isset($vars['value']) || $vars['value'] === FALSE) {
$class = $vars['class'];
if (!$class) {
- $class = "input_pulldown";
+ $class = "input-pulldown";
}
if (!isset($vars['value'])) {
$class = $vars['class'];
if (!$class) {
- $class = "input_radio";
+ $class = "input-radio";
}
if (!isset($vars['value']) || $vars['value'] === FALSE) {
*/
$defaults = array(
- 'class' => 'input_tags',
+ 'class' => 'input-tags',
'disabled' => FALSE,
);
*/
$defaults = array(
- 'class' => 'input_text',
+ 'class' => 'input-text',
'disabled' => FALSE,
);
*/
$defaults = array(
- 'class' => 'input_url',
+ 'class' => 'input-url',
);
$vars = array_merge($defaults, $vars);
$code = '<li class="user_picker_entry">';
$code .= "<img class=\"livesearch_icon\" src=\"$icon\" />";
$code .= "$user->name - $user->username";
- $code .= '<div class="delete_button">';
+ $code .= '<div class="delete-button">';
$code .= "<a onclick=\"userPickerRemoveUser(this, $user_id)\"><strong>X</strong></a>";
$code .= '</div>';
$code .= "<input type=\"hidden\" name=\"members[]\" value=\"$user_id\">";
var formatted = userPickerFormatItem(data);
// add guid as hidden input and to list.
- var li = formatted + ' <div class="delete_button"><a onclick="userPickerRemoveUser(this, ' + info.guid + ')"><strong>X</strong></a></div>'
+ var li = formatted + ' <div class="delete-button"><a onclick="userPickerRemoveUser(this, ' + info.guid + ')"><strong>X</strong></a></div>'
+ '<input type="hidden" name="' + internalName + '[]" value="' + info.guid + '" />';
$('<li class="user_picker_entry">').html(li).appendTo(users);
var o,el;
o = document.getElementById('option_container');
title_label = "<?php echo elgg_echo("title"); ?>";
- bit = file_generate_bit(title_label,'title_','input_text','text',0);
+ bit = file_generate_bit(title_label,'title_','input-text','text',0);
o.appendChild(bit);
file_label = "<?php echo elgg_echo("file:file"); ?>";
bit = file_generate_bit(file_label,'upload_','input-file','file',30);
if (elgg_can_edit_widget_layout($context)) {
if ($show_add_widgets) {
- echo elgg_view('widgets/add_button');
+ echo elgg_view('widgets/add-button');
}
$params = array(
'widgets' => $widgets,
// @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='action_button'>" . elgg_echo('videolist:browsemenu') . '</a>';
+ $new_button = "<a href=\"{$video_link}\" class='action-button'>" . 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='action_button'>" . elgg_echo($type . ':new') . '</a>';
+ $new_button = "<a href=\"{$new_link}\" class='action-button'>" . elgg_echo($type . ':new') . '</a>';
}
$new_button = "<div class='content_header_options'>$new_button</div>";
}
-moz-box-shadow: none;
box-shadow: none;
}
-.walledgardenlogin .input_password {
+.walledgardenlogin .input-password {
width:200px;
}
-.walledgardenlogin input.input_password:focus {
+.walledgardenlogin input.input-password:focus {
border: solid 1px #4690d6;
background-color: #e4ecf5;
color:#333333;
*/
$form_body = elgg_view("usersettings/user");
-$form_body .= "<div class='divider'></div>".elgg_view('input/submit', array('value' => elgg_echo('save'), 'class' => 'submit_button usersettings_save'));
+$form_body .= "<div class='divider'></div>".elgg_view('input/submit', array('value' => elgg_echo('save'), 'class' => 'submit-button usersettings_save'));
echo elgg_view('input/form', array('action' => "action/usersettings/save", 'body' => $form_body));
\ No newline at end of file
$options = array(
'href' => '#',
'text' => elgg_echo('widgets:add'),
- 'class' => 'action_button',
+ 'class' => 'action-button',
);
echo elgg_view('output/url', $options);
?>
$class = $vars['class'];
}
if (!$class) {
- $class = "input_access";
+ $class = "input-access";
}
if ((!isset($vars['options'])) || (!is_array($vars['options']))) {
$class = $vars['class'];
if (!$class) {
- $class = "submit_button";
+ $class = "submit-button";
}
if (isset($vars['type'])) {
$class = $vars['class'];
if (!$class) {
- $class = "input_textarea";
+ $class = "input-textarea";
}
?>
$class = $vars['class'];
if (!$class) {
- $class = "input_password";
+ $class = "input-password";
}
?>
$class = $vars['class'];
if (!$class) {
- $class = "input_text";
+ $class = "input-text";
}
?>