common_element_end('p');
}
-function common_submit($id, $label) {
+function common_submit($id, $label, $cls='submit') {
global $xw;
common_element_start('p');
common_element('input', array('type' => 'submit',
'id' => $id,
'name' => $id,
- 'class' => 'submit',
+ 'class' => $cls,
'value' => $label));
common_element_end('p');
}
'action' => common_local_url('disfavor')));
common_hidden('token', common_session_token());
common_hidden('notice', $notice->id);
- common_submit('disfavor-submit-' . $notice->id, '♥');
+ common_submit('disfavor-submit-' . $notice->id, '♥', 'disfavor');
common_element_end('form');
}
'action' => common_local_url('favor')));
common_hidden('token', common_session_token());
common_hidden('notice', $notice->id);
- common_submit('favor-submit-' . $notice->id, '♡');
+ common_submit('favor-submit-' . $notice->id, '♡', 'favor');
common_element_end('form');
}
background-color: #f7ebcc;
}
+/* ----- favor/disfavor -----*/
+
+input#disfavor, input.disfavor {
+ display: inline;
+ color: #C15D42;
+ background-color: white;
+ cursor: pointer;
+ border: 0;
+ width: auto;
+ }
+
+input#favor, input.favor {
+ display: inline;
+ color: #C15D42;
+ background-color: white;
+ cursor: pointer;
+ border: 0;
+ width: auto;
+ }
+
/* ===== End Forms Styling ===== */
line-height: 15px;
}
+/* ----- favor/disfavor -----*/
+
+input#disfavor, input.disfavor {
+ display: inline;
+ color: #C15D42;
+ background-color: white;
+ cursor: pointer;
+ border: 0;
+ width: auto;
+ }
+
+input#favor, input.favor {
+ display: inline;
+ color: #C15D42;
+ background-color: white;
+ cursor: pointer;
+ border: 0;
+ width: auto;
+ }
+
/* ===== End Forms Styling ===== */
/* ===== Tag Cloud Styling ===== */