Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make "icon-copy.png", image path dynamically according to the theme.

The copy icon is broken (if you didn't with theme name "pear" or when it's not installed in first level).
Therefore, i made the image path dynamically according to the theme path.

in loop-single.php

/ /Line 36

<img src="<?php bloginfo('template_directory'); ?>/images/icon-copy.png" title="" alt="copy" />

// Line 43

<img src="<?php bloginfo('template_directory'); ?>/images/icon-copy.png" title="" alt="copy" />

Signed-off-by: Danny Chang <me@imdanny.com>
  • Loading branch information...
commit dff83f7413d0766cd45f7642b96d521e8013c59e 1 parent ee19cd6
@gogodanny authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 loop-single.php
View
4 loop-single.php
@@ -33,14 +33,14 @@
<div class="group">
<div id="markup" class="mod">
- <h3 class="label">HTML</h3> <a href="#" class="clip" title="select code for copying"><img src="/wp-content/themes/pears/images/icon-copy.png" alt="copy" /></a>
+ <h3 class="label">HTML</h3> <a href="#" class="clip" title="select code for copying"><img src="<?php bloginfo('template_directory'); ?>/images/icon-copy.png" alt="copy" /></a>
<textarea class="mod-ta">
<?php $key="html"; echo get_post_meta($post->ID, $key, true); ?>
</textarea>
</div>
<div id="style" class="mod">
- <h3 class="label">CSS</h3> <a href="#" class="clip" title="select code for copying"><img src="/wp-content/themes/pears/images/icon-copy.png" alt="copy" /></a>
+ <h3 class="label">CSS</h3> <a href="#" class="clip" title="select code for copying"><img src="<?php bloginfo('template_directory'); ?>/images/icon-copy.png" alt="copy" /></a>
<textarea id="css-code" class="mod-ta">
<?php $key="css"; echo get_post_meta($post->ID, $key, true); ?>
</textarea>
Please sign in to comment.
Something went wrong with that request. Please try again.