From 09e1c5e9d6678fd73458ae9cd5a4dfd053992903 Mon Sep 17 00:00:00 2001 From: Matt Cromwell Date: Fri, 10 Oct 2014 18:39:39 -0700 Subject: [PATCH] Swap images for dashicons Swapped out the images for Dashicons since they're almost identical (except the "move" one) and are much easier to work with than static images. Simplifies the markup as well. --- meta-box-class/my-meta-box-class.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/meta-box-class/my-meta-box-class.php b/meta-box-class/my-meta-box-class.php index 23f0bd3..0d0379a 100644 --- a/meta-box-class/my-meta-box-class.php +++ b/meta-box-class/my-meta-box-class.php @@ -413,23 +413,17 @@ public function show_field_repeater( $field, $meta ) { } echo ''; if ($field['sortable']) - echo 'sort'; + echo ''; echo' - Edit - '.__('Remove','mmb').' + + '; $c = $c + 1; } } - echo ''.__('Add','mmb').'
'; + echo '
'; //create all fields once more for js function and catch with object buffer ob_start(); @@ -456,7 +450,7 @@ public function show_field_repeater( $field, $meta ) { if ($field['inline']){ echo ''; } - echo ''.__('Remove','mmb').''; + echo '
'; $counter = 'countadd_'.$field['id']; $js_code = ob_get_clean (); $js_code = str_replace("\n","",$js_code); @@ -1873,4 +1867,4 @@ public function load_textdomain(){ load_textdomain( 'mmb', dirname(__FILE__) . '/lang/' . get_locale() .'.mo' ); } } // End Class -endif; // End Check Class Exists \ No newline at end of file +endif; // End Check Class Exists