From 11f608dc9183bc27d620558e798b961955977054 Mon Sep 17 00:00:00 2001 From: Greg Rickaby Date: Thu, 20 Jul 2017 21:35:46 -0500 Subject: [PATCH] update svg function throughout theme --- assets/images/svg-icons/README.md | 4 ++-- inc/template-tags.php | 6 +++--- template-parts/scaffolding/scaffolding-icons.php | 4 ++-- template-parts/sharing-icons.php | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/assets/images/svg-icons/README.md b/assets/images/svg-icons/README.md index a1938d420..d6ff7e70a 100644 --- a/assets/images/svg-icons/README.md +++ b/assets/images/svg-icons/README.md @@ -9,7 +9,7 @@ All of the starter SVG icons included in this repo are from [IcoMoon App](https: ### Inline SVG helper functions -[`_s_get_svg( $args = array() ); // Return SVG markup`](../../blob/master/inc/template-tags.php#L125) +[`_s_display_svg( $args = array() ); // Return SVG markup`](../../blob/master/inc/template-tags.php#L125) ``` /** * Return SVG markup. @@ -26,7 +26,7 @@ All of the starter SVG icons included in this repo are from [IcoMoon App](https: ``` Example usage: -` 'twitter' ) ); ?>` +` 'twitter' ) ); ?>` Output: ``` diff --git a/inc/template-tags.php b/inc/template-tags.php index 2c5758080..352d803d4 100755 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -163,8 +163,8 @@ function _s_get_the_title( $args = array() ) { // Set defaults. $defaults = array( - 'length' => 12, - 'more' => '...', + 'length' => 12, + 'more' => '...', ); // Parse args. @@ -333,7 +333,7 @@ function _s_display_social_network_links() { if ( ! empty( $network_url ) ) : ?>
  • - $network . '-square', 'title' => /* translators: the social network name */ sprintf( esc_html_e( 'Link to %s', '_s' ), ucwords( esc_html( $network ) ) ), ) ); ?> diff --git a/template-parts/scaffolding/scaffolding-icons.php b/template-parts/scaffolding/scaffolding-icons.php index 59d54a535..aaa939bae 100644 --- a/template-parts/scaffolding/scaffolding-icons.php +++ b/template-parts/scaffolding/scaffolding-icons.php @@ -14,7 +14,7 @@ _s_display_scaffolding_section( array( 'title' => 'SVG', 'description' => 'Display inline SVGs.', - 'usage' => ' \'facebook-square\' ) ); ?>', + 'usage' => ' \'facebook-square\' ) ); ?>', 'parameters' => array( '$args' => '(required) Configuration arguments.', ), @@ -23,6 +23,6 @@ 'title' => '(optional) The title of the icon. Default: none', 'desc' => '(optional) The description of the icon. Default: none', ), - 'output' => _s_get_svg( array( 'icon' => 'facebook-square' ) ), + 'output' => _s_display_svg( array( 'icon' => 'facebook-square' ) ), ) ); ?> diff --git a/template-parts/sharing-icons.php b/template-parts/sharing-icons.php index fcd9fe7de..b84252d40 100644 --- a/template-parts/sharing-icons.php +++ b/template-parts/sharing-icons.php @@ -12,7 +12,7 @@