snipt

Ctrl+h for KB shortcuts

PHP

image

1
2
3
4
5
6
7
8
<?php 
$path = "images/arr_leggi_blu.gif"; 
$theme_name = 'pmsth';
$img_alt = '';
$img_title = '';
$img = theme('image',  drupal_get_path('theme', $theme_name). "/$path", $img_alt, $img_title); 
print $img;
?>
https://snipt.net/embed/78805a221a988e79ef3f42d7c5bfd418/
/raw/78805a221a988e79ef3f42d7c5bfd418/
78805a221a988e79ef3f42d7c5bfd418
php
PHP
8
2019-06-06T11:03:24
True
False
False
/api/public/snipt/12017/
image
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a><span class="nv">$path</span> <span class="o">=</span> <span class="s2">&quot;images/arr_leggi_blu.gif&quot;</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a><span class="nv">$theme_name</span> <span class="o">=</span> <span class="s1">&#39;pmsth&#39;</span><span class="p">;</span> </span><span id="L-4"><a name="L-4"></a><span class="nv">$img_alt</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span> </span><span id="L-5"><a name="L-5"></a><span class="nv">$img_title</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span> </span><span id="L-6"><a name="L-6"></a><span class="nv">$img</span> <span class="o">=</span> <span class="nx">theme</span><span class="p">(</span><span class="s1">&#39;image&#39;</span><span class="p">,</span> <span class="nx">drupal_get_path</span><span class="p">(</span><span class="s1">&#39;theme&#39;</span><span class="p">,</span> <span class="nv">$theme_name</span><span class="p">)</span><span class="o">.</span> <span class="s2">&quot;/</span><span class="si">$path</span><span class="s2">&quot;</span><span class="p">,</span> <span class="nv">$img_alt</span><span class="p">,</span> <span class="nv">$img_title</span><span class="p">);</span> </span><span id="L-7"><a name="L-7"></a><span class="k">print</span> <span class="nv">$img</span><span class="p">;</span> </span><span id="L-8"><a name="L-8"></a><span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>
drupal, image, img

Text only

get image header information

identify -verbose
https://snipt.net/embed/2050218938cf163b8464db9c8cabdcd4/
/raw/2050218938cf163b8464db9c8cabdcd4/
2050218938cf163b8464db9c8cabdcd4
text
Text only
1
2019-06-13T15:42:59
True
False
False
/api/public/snipt/6544/
get-image-header-information
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>identify -verbose </span></pre></div> </td></tr></table>
header, image, iso, jpeg, resolution

CSS

Fix for mir image replacement (IE6)

.mir {letter-spacing : -1000em; text-indent : -999em; overflow : hidden;}
https://snipt.net/embed/df907a1d2b2ced8b5b511a991f73b00e/
/raw/df907a1d2b2ced8b5b511a991f73b00e/
df907a1d2b2ced8b5b511a991f73b00e
css
CSS
1
2019-06-11T18:11:31
True
False
False
/api/public/snipt/6043/
fix-for-mir-image-replacement-ie6
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nc">.mir</span> <span class="p">{</span><span class="nb">letter-spacing</span> <span class="o">:</span> <span class="m">-1000em</span><span class="p">;</span> <span class="nb">text-indent</span> <span class="o">:</span> <span class="m">-999em</span><span class="p">;</span> <span class="nb">overflow</span> <span class="o">:</span> <span class="nb">hidden</span><span class="p">;}</span> </span></pre></div> </td></tr></table>
css, hack, ie, image, replacement