Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo correction #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion inc/svgmap_shortcode.inc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function svgmap_shortcode($args) {
$attr .= ' ' . $key . '="' . esc_attr($value) . '"';
}

return '<svg' . $attr . '><use xlink:href="' . esc_url($svgmap->svg_url . '#:'. $sprite) . '"></svg>';
return '<svg xmlns="http://www.w3.org/2000/svg"' . $attr . '><use xlink:href="' . esc_url($svgmap->svg_url . '#:'. $sprite) . '"></use></svg>';
} else {
return false;
}
Expand Down
6 changes: 4 additions & 2 deletions inc/svgmap_shortcode.settings.inc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ function svgmap_shortcode_init() {
);
}

function svgmap_settings_shortcode_description() { ?>
<p>SVG Sprites can be embedded in posts and pages using the <code>[svgicon sprite="&hellip;"]</code> shortcode. The <code>sprite</code> attribute is required to tell the shortcode which SVG to include. Additional attributes on the shortcode are passed to the inserted <code>&lt;svg&gt;</code> element, allowing you to set the <code>width</code>, <code>height</code>, <code>fill</code> and other attributes.</p>
function svgmap_settings_shortcode_description() {
global $svgmap;
?>
<p>SVG Sprites can be embedded in posts and pages using the <code>[<?php echo $svgmap->id; ?> sprite="&hellip;"]</code> shortcode. The <code>sprite</code> attribute is required to tell the shortcode which SVG to include. Additional attributes on the shortcode are passed to the inserted <code>&lt;svg&gt;</code> element, allowing you to set the <code>width</code>, <code>height</code>, <code>fill</code> and other attributes.</p>
<?php
}

Expand Down
2 changes: 1 addition & 1 deletion index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Plugin Name: SVG Spritemap Manager
Plugin URI: http://github.com/jonathantneal/wp-svg-store
Description: Easily create and manage your SVG spritemap in Wordpress
Version: 0.4
Version: 0.4.1
Author: Jonathan Neal
Author URI: http://jonathantneal.com
Min WP Version: 2.0
Expand Down