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

Already on GitHub? Sign in to your account

Removed hardcoded path to theme #4

Open
wants to merge 3 commits into
from
Jump to file or symbol
Failed to load files and symbols.
+4 −4
Split
View
@@ -6,7 +6,7 @@
<p class="cc">This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License</a>.</p>
- <p><a href="http://simplebits.com" id="sb"><img src="/wp-content/themes/pears/images/sb-black.png" /></a></p>
+ <p><a href="http://simplebits.com" id="sb"><img src="<?php echo get_template_directory_uri();?>/images/sb-black.png" /></a></p>
</div> <!-- /footer -->
<!-- jQuery -->
View
@@ -24,7 +24,7 @@
<body <?php body_class(); ?>>
<header role="banner" class="group">
- <a href="/" id="logo">
+ <a href="<?php echo home_url(); ?>" id="logo">
Pears <em>are common patterns of markup &amp; style</em>
</a>
</header>
View
@@ -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 echo get_template_directory_uri();?>/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 echo get_template_directory_uri();?>/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>