| 1 |
<?php |
| 2 |
class HC_Html_Element_Styler_Theme_Rewrite |
| 3 |
{ |
| 4 |
function btn_success( $el ) |
| 5 |
{ |
| 6 |
$el |
| 7 |
->set_skip_css_pref(1) |
| 8 |
->add_attr('class', 'page-title-action') |
| 9 |
->set_skip_css_pref(0) |
| 10 |
->add_style('padding', 'x2', 'y1') |
| 11 |
; |
| 12 |
return $el; |
| 13 |
} |
| 14 |
|
| 15 |
function btn_primary( $el ) |
| 16 |
{ |
| 17 |
$el |
| 18 |
->set_skip_css_pref(1) |
| 19 |
->add_attr('class', 'button') |
| 20 |
->add_attr('class', 'button-primary') |
| 21 |
->set_skip_css_pref(0) |
| 22 |
|
| 23 |
// ->add_style('padding', 1) |
| 24 |
// ->add_style('padding', 'x2', 'y1') |
| 25 |
; |
| 26 |
return $el; |
| 27 |
} |
| 28 |
|
| 29 |
function btn_secondary( $el ) |
| 30 |
{ |
| 31 |
$el |
| 32 |
->set_skip_css_pref(1) |
| 33 |
->add_attr('class', 'button') |
| 34 |
->add_attr('class', 'button-secondary') |
| 35 |
->set_skip_css_pref(0) |
| 36 |
; |
| 37 |
return $el; |
| 38 |
} |
| 39 |
|
| 40 |
function btn_danger( $el ) |
| 41 |
{ |
| 42 |
$el |
| 43 |
->add_style('btn') |
| 44 |
->add_style('btn-submit', 1) |
| 45 |
->add_style('border-color', 'red') |
| 46 |
->add_style('color', 'red') |
| 47 |
; |
| 48 |
return $el; |
| 49 |
} |
| 50 |
} |
| 51 |
?> |