gulp-assetpaths
Version:
A Gulp plugin to change asset paths from one environment to another.
24 lines (23 loc) • 1.14 kB
HTML
<img src=" echo $imagePath " />
<img src="<%= obj.imagePath %>" />
<script src="<% scriptname %>" />
<img style="display:none;" src="<%= obj.imagePath %>" />
background: url(<% imagepath %>)
background-image : url(<%= imagepath %>)
<a href="<%= assetpath %>" download="<%= assetname %>" />
$pattern = '/src="(.*js)"/';
$replacement = 'src="restylegc-js.php?$1"';
<a href="https://www.oldDomain.com/ echo $test; ">TEST</a>
<a href="/cart_checkout.php"><img src="/images/navigation_cart.png" alt="Shopping cart" width="30" height="33" />
<link rel="stylesheet" href="/css/pages/products/ echo $thisPage; .css" type="text/css" />
<img src="{{object.image}}" />
function my_custom_login_logo()
{
document.write('<style type="text/css"> .login h1 a { background-image:url(' + get_imagepath('template_directory') + ') !important;} </style>';
}
add_action('login_head', 'my_custom_login_logo');
function my_custom_login_logo()
{
echo '<style type="text/css"> .login h1 a { background-image:url('.get_imagepath('template_directory').') !important;} </style>';
}
add_action('login_head', 'my_custom_login_logo');