Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

function bersih_harga($harga) { $harga = preg_replace('/\D/','',$harga); return $harga; ..

Decoded Output download

<?  function bersih_harga($harga) { 
$harga = preg_replace('/\D/','',$harga); 
return $harga; 
} 
function invoice_id() { 
$blogtime = current_time('mysql'); 
list( $today_year,$today_month,$today_day,$hour,$minute,$second ) = split( '([^0-9])',$blogtime ); 
echo  $today_month; 
echo $today_day; 
echo '/'; 
echo of_get_option('nama_toko'); 
echo '/'; 
echo $hour; 
echo $minute; 
echo $second; 
} 
function shorttitle_fastestwp() 
{ 
global $post; 
$the_title = $post->post_title; 
$getlength = strlen($the_title); 
$thelength = 35; 
echo substr($the_title,0,$thelength); 
if ($getlength >$thelength) ; 
} 
function shorttitle2_fastestwp() 
{ 
global $post; 
$the_title = $post->post_title; 
$getlength = strlen($the_title); 
$thelength = 60; 
echo substr($the_title,0,$thelength); 
if ($getlength >$thelength) ; 
} 
function harga_coret_fastestwp() 
{global $post; 
if(get_post_meta($post->ID,"harga_diskon",true)){ 
$harga = get_post_meta($post->ID,"harga",true); 
echo $harga;} 
} 
function pilihan_fastestwp() 
{ 
global $post; 
if(get_post_meta($post->ID,"pilihan",true)) {;echo '';if(get_post_meta($post->ID,"pilihan1",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan1",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan1",true);;echo '</td></tr> 
';};echo ' 
';if(get_post_meta($post->ID,"pilihan2",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan2",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan2",true);;echo '</td></tr> 
';};echo ' 
';if(get_post_meta($post->ID,"pilihan3",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan3",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan3",true);;echo '</td></tr> 
';};echo ' 
';if(get_post_meta($post->ID,"pilihan4",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan4",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan4",true);;echo '</td></tr> 
';};echo ' 
';if(get_post_meta($post->ID,"pilihan5",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan5",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan5",true);;echo '</td></tr> 
';};echo '';}else {;echo '<tr><td >Harga </td><td>Rp ';harga_fastestwp();;echo ' <span class="coret">';harga_coret_fastestwp();;echo '</span></td></tr> 
';} 
} 
function get_harga_fastestwp( $post ) 
{ 
$harga = '(hubungi cs)'; 
if ( get_post_meta( $post->ID,"harga_diskon",true ) ){$harga = get_post_meta( $post->ID,"harga_diskon",true );} 
elseif (get_post_meta($post->ID,"harga",true)){$harga = get_post_meta($post->ID,"harga",true);} 
return $harga; 
} 
function harga_fastestwp() 
{global $post; 
$harga = get_harga_fastestwp( $post ); 
echo $harga;} 
function harga_input_fastestwp() 
{global $post; 
$harga = get_harga_fastestwp( $post ); 
$harga = str_replace (',','',$harga); 
$harga = str_replace ('.','',$harga); 
echo $harga;} 
function small_thumb_fastestwp(){ 
global $post,$posts; 
$first_img = ''; 
ob_start(); 
ob_end_clean(); 
$output = preg_match_all('/<img.+src=['"]([^'"]+)['"].*>/i',$post->post_content,$matches); 
if(isset($matches [1] [0])){ 
$first_img = $matches [1] [0]; 
$img_url = $first_img;$image = aq_resize( $img_url,75,75,false );;echo '<img src="';echo $image[0] ;echo '" alt="';the_title();;echo '" width="';echo $image[1] ;echo '" height="';echo $image[2] ;echo '" /> 
';}else {;echo '<img src="';echo get_template_directory_uri();;echo '/images/thumb70.png" alt="';the_title();;echo '" width="70" height="70" /> 
';} 
} 
function thumb_fastestwp(){ 
global $post,$posts; 
$first_img = ''; 
ob_start(); 
ob_end_clean(); 
$output = preg_match_all('/<img.+src=['"]([^'"]+)['"].*>/i',$post->post_content,$matches); 
if(isset($matches [1] [0])){ 
$first_img = $matches [1] [0]; 
$img_url = $first_img;$image = aq_resize( $img_url,150,150,false );;echo '<img src="';echo $image[0] ;echo '" alt="';the_title();;echo '" width="';echo $image[1] ;echo '" height="';echo $image[2] ;echo '" /> 
';}else {;echo '<img src="';echo get_template_directory_uri();;echo '/images/thumb150.png" alt="';the_title();;echo '" width="135" height="150" /> 
';} 
} 
function big_thumb_fastestwp(){ 
global $post,$posts; 
$first_img = ''; 
ob_start(); 
ob_end_clean(); 
$output = preg_match_all('/<img.+src=['"]([^'"]+)['"].*>/i',$post->post_content,$matches); 
if(isset($matches [1] [0])){ 
$first_img = $matches [1] [0]; 
$img_url = $first_img;$image = aq_resize( $img_url,300,300,false );;echo '<img src="';echo $image[0] ;echo '" alt="';the_title();;echo '" width="';echo $image[1] ;echo '" height="';echo $image[2] ;echo '" /> 
';}else {;echo '<img src="';echo get_template_directory_uri();;echo '/images/thumb300.png" alt="';the_title();;echo '" width="300" height="300" title="triumph" /> 
';} 
} 
function label_fastestwp() 
{ 
global $post; 
if(get_post_meta($post->ID,"habis",true)){;echo '<div class="wpgrosir-lable"><img src="';echo get_template_directory_uri();;echo '/images/habis.png" alt="download"  width="86" height="86" /></div> 
';}else if(get_post_meta($post->ID,"label",true) == 'sale') {;echo ' <div class="wpgrosir-lable"><img src="';echo get_template_directory_uri();;echo '/images/sale.png" alt="download"  width="86" height="86" /></div> 
';}else if(get_post_meta($post->ID,"label",true) == 'best') {;echo ' <div class="wpgrosir-lable"><img src="';echo get_template_directory_uri();;echo '/images/best.png" alt="download"  width="86" height="86" /></div> 
';}} 
function buynow_fastestwp() 
{ 
global $post; 
if(get_post_meta($post->ID,"habis",$single = true)){;echo '<div class="habis">Stok habis</div> 
';}else if(of_get_option('button_order_act') == '1') {;echo '<a class="small beli blue" href="';echo of_get_option('order_page');;echo '" title="';the_title();;echo '">Beli</a> 
';}else if(of_get_option('button_order_act') == '0') {;echo '<input type="submit" name="my-add-button" value="Beli" class="small beli blue" /> 
';}} 
function buynow_single_fastestwp() 
{ 
global $post; 
if(get_post_meta($post->ID,"habis",true)){;echo '<div class="habis-single">Stok habis</div> 
';}else if(of_get_option('button_order_act') == '1') {;echo '<a class="large beli blue" href="';echo of_get_option('order_page');;echo '" title="';the_title();;echo '" target="_blank">Beli Sekarang</a> 
';}else if(get_post_meta($post->ID,"dropship",true)) {;echo '<a class="large beli blue" href="';echo of_get_option('order_page');;echo '" title="';the_title();;echo '" target="_blank">Beli Sekarang</a> 
';}else if(of_get_option('button_order_act') == '0') {;echo '<input type="submit" name="my-add-button" value="Tambah Ke Keranjang" class="large beli blue" /> 
 
';}} 
function pilihan_single_fastestwp() 
{ 
global $post; 
if(get_post_meta($post->ID,"habis",$single = true)){;echo '';}else {;echo ' 
';if(get_post_meta($post->ID,"pilihan",true)){;echo '<select id="my_select" name="my_select_box"> 
<option value="">- Pilih Warna -</option> 
';if(get_post_meta($post->ID,"pilihan1",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan1",true));;echo '"> 
';echo get_post_meta($post->ID,"pilihan1",true);;echo '</option>';};echo ' 
';if(get_post_meta($post->ID,"pilihan2",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan2",true));;echo '"> 
';echo get_post_meta($post->ID,"pilihan2",true);;echo '</option>';};echo ' 
';if(get_post_meta($post->ID,"pilihan3",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan3",true));;echo '"> 
';echo get_post_meta($post->ID,"pilihan3",true);;echo '</option>';};echo ' 
';if(get_post_meta($post->ID,"pilihan4",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan4",true));;echo '"> 
';echo get_post_meta($post->ID,"pilihan4",true);;echo '</option>';};echo ' 
';if(get_post_meta($post->ID,"pilihan5",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan5",true));;echo '"> 
';echo get_post_meta($post->ID,"pilihan5",true);;echo '</option>';};echo '</select> 
';};echo ' 
';}} 
function bersih_harga($harga) { 
$harga = preg_replace('/\D/','',$harga); 
return $harga; 
} 
function invoice_id() { 
$blogtime = current_time('mysql'); 
list( $today_year,$today_month,$today_day,$hour,$minute,$second ) = split( '([^0-9])',$blogtime ); 
echo  $today_month; 
echo $today_day; 
echo '/'; 
echo of_get_option('nama_toko'); 
echo '/'; 
echo $hour; 
echo $minute; 
echo $second; 
} 
function shorttitle_fastestwp() 
{ 
global $post; 
$the_title = $post->post_title; 
$getlength = strlen($the_title); 
$thelength = 35; 
echo substr($the_title,0,$thelength); 
if ($getlength >$thelength) ; 
} 
function shorttitle2_fastestwp() 
{ 
global $post; 
$the_title = $post->post_title; 
$getlength = strlen($the_title); 
$thelength = 60; 
echo substr($the_title,0,$thelength); 
if ($getlength >$thelength) ; 
} 
function harga_coret_fastestwp() 
{global $post; 
if(get_post_meta($post->ID,"harga_diskon",true)){ 
$harga = get_post_meta($post->ID,"harga",true); 
echo $harga;} 
} 
;echo ''; 
function pilihan_fastestwp() 
{ 
global $post; 
if(get_post_meta($post->ID,"pilihan",true)) {;echo '';if(get_post_meta($post->ID,"pilihan1",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan1",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan1",true);;echo '</td></tr> 
';};echo ' 
';if(get_post_meta($post->ID,"pilihan2",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan2",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan2",true);;echo '</td></tr> 
';};echo ' 
';if(get_post_meta($post->ID,"pilihan3",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan3",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan3",true);;echo '</td></tr> 
';};echo ' 
';if(get_post_meta($post->ID,"pilihan4",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan4",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan4",true);;echo '</td></tr> 
';};echo ' 
';if(get_post_meta($post->ID,"pilihan5",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan5",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan5",true);;echo '</td></tr> 
';};echo '';}else {;echo '<tr><td >Harga </td><td>Rp ';harga_fastestwp();;echo ' <span class="coret">';harga_coret_fastestwp();;echo '</span></td></tr> 
';} 
} 
;echo ''; 
function get_harga_fastestwp( $post ) 
{ 
$harga = '(hubungi cs)'; 
if ( get_post_meta( $post->ID,"harga_diskon",true ) ){$harga = get_post_meta( $post->ID,"harga_diskon",true );} 
elseif (get_post_meta($post->ID,"harga",true)){$harga = get_post_meta($post->ID,"harga",true);} 
return $harga; 
} 
function harga_fastestwp() 
{global $post; 
$harga = get_harga_fastestwp( $post ); 
echo $harga;} 
function harga_input_fastestwp() 
{global $post; 
$harga = get_harga_fastestwp( $post ); 
$harga = str_replace (',','',$harga); 
$harga = str_replace ('.','',$harga); 
echo $harga;} 
;echo ''; 
function small_thumb_fastestwp(){ 
global $post,$posts; 
$first_img = ''; 
ob_start(); 
ob_end_clean(); 
$output = preg_match_all('/<img.+src=['"]([^'"]+)['"].*>/i',$post->post_content,$matches); 
if(isset($matches [1] [0])){ 
$first_img = $matches [1] [0]; 
$img_url = $first_img;$image = aq_resize( $img_url,75,75,false );;echo '<img src="';echo $image[0] ;echo '" alt="';the_title();;echo '" width="';echo $image[1] ;echo '" height="';echo $image[2] ;echo '" /> 
';}else {;echo '<img src="';echo get_template_directory_uri();;echo '/images/thumb70.png" alt="';the_title();;echo '" width="70" height="70" /> 
';} 
} 
;echo ''; 
function thumb_fastestwp(){ 
global $post,$posts; 
$first_img = ''; 
ob_start(); 
ob_end_clean(); 
$output = preg_match_all('/<img.+src=['"]([^'"]+)['"].*>/i',$post->post_content,$matches); 
if(isset($matches [1] [0])){ 
$first_img = $matches [1] [0]; 
$img_url = $first_img;$image = aq_resize( $img_url,150,150,false );;echo '<img src="';echo $image[0] ;echo '" alt="';the_title();;echo '" width="';echo $image[1] ;echo '" height="';echo $image[2] ;echo '" /> 
';}else {;echo '<img src="';echo get_template_directory_uri();;echo '/images/thumb150.png" alt="';the_title();;echo '" width="135" height="150" /> 
';} 
} 
;echo ''; 
function big_thumb_fastestwp(){ 
global $post,$posts; 
$first_img = ''; 
ob_start(); 
ob_end_clean(); 
$output = preg_match_all('/<img.+src=['"]([^'"]+)['"].*>/i',$post->post_content,$matches); 
if(isset($matches [1] [0])){ 
$first_img = $matches [1] [0]; 
$img_url = $first_img;$image = aq_resize( $img_url,300,300,false );;echo '<img src="';echo $image[0] ;echo '" alt="';the_title();;echo '" width="';echo $image[1] ;echo '" height="';echo $image[2] ;echo '" /> 
';}else {;echo '<img src="';echo get_template_directory_uri();;echo '/images/thumb300.png" alt="';the_title();;echo '" width="300" height="300" title="triumph" /> 
';} 
} 
;echo ''; 
function label_fastestwp() 
{ 
global $post; 
if(get_post_meta($post->ID,"habis",true)){;echo '<div class="wpgrosir-lable"><img src="';echo get_template_directory_uri();;echo '/images/habis.png" alt="download"  width="86" height="86" /></div> 
';}else if(get_post_meta($post->ID,"label",true) == 'sale') {;echo ' <div class="wpgrosir-lable"><img src="';echo get_template_directory_uri();;echo '/images/sale.png" alt="download"  width="86" height="86" /></div> 
';}else if(get_post_meta($post->ID,"label",true) == 'best') {;echo ' <div class="wpgrosir-lable"><img src="';echo get_template_directory_uri();;echo '/images/best.png" alt="download"  width="86" height="86" /></div> 
';}};echo ''; 
function buynow_fastestwp() 
{ 
global $post; 
if(get_post_meta($post->ID,"habis",$single = true)){;echo '<div class="habis">Stok habis</div> 
';}else if(of_get_option('button_order_act') == '1') {;echo '<a class="small beli blue" href="';echo of_get_option('order_page');;echo '" title="';the_title();;echo '">Beli</a> 
';}else if(of_get_option('button_order_act') == '0') {;echo '<input type="submit" name="my-add-button" value="Beli" class="small beli blue" /> 
';}};echo ''; 
function buynow_single_fastestwp() 
{ 
global $post; 
if(get_post_meta($post->ID,"habis",true)){;echo '<div class="habis-single">Stok habis</div> 
';}else if(of_get_option('button_order_act') == '1') {;echo '<a class="large beli blue" href="';echo of_get_option('order_page');;echo '" title="';the_title();;echo '" target="_blank">Beli Sekarang</a> 
';}else if(get_post_meta($post->ID,"dropship",true)) {;echo '<a class="large beli blue" href="';echo of_get_option('order_page');;echo '" title="';the_title();;echo '" target="_blank">Beli Sekarang</a> 
';}else if(of_get_option('button_order_act') == '0') {;echo '<input type="submit" name="my-add-button" value="Tambah Ke Keranjang" class="large beli blue" /> 
 
';}};echo ''; 
function pilihan_single_fastestwp() 
{ 
global $post; 
if(get_post_meta($post->ID,"habis",$single = true)){;echo '';}else {;echo ' 
';if(get_post_meta($post->ID,"pilihan",true)){;echo '<select id="my_select" name="my_select_box"> 
<option value="">-Pilih Ukuran-</option> 
';if(get_post_meta($post->ID,"pilihan1",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan1",true));;echo '"> 
';echo get_post_meta($post->ID,"pilihan1",true);;echo '</option>';};echo ' 
';if(get_post_meta($post->ID,"pilihan2",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan2",true));;echo '"> 
';echo get_post_meta($post->ID,"pilihan2",true);;echo '</option>';};echo ' 
';if(get_post_meta($post->ID,"pilihan3",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan3",true));;echo '"> 
';echo get_post_meta($post->ID,"pilihan3",true);;echo '</option>';};echo ' 
';if(get_post_meta($post->ID,"pilihan4",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan4",true));;echo '"> 
';echo get_post_meta($post->ID,"pilihan4",true);;echo '</option>';};echo ' 
';if(get_post_meta($post->ID,"pilihan5",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan5",true));;echo '"> 
';echo get_post_meta($post->ID,"pilihan5",true);;echo '</option>';};echo '</select> 
';};echo ' 
';}}; ?>

Did this file decode correctly?

Original Code

function bersih_harga($harga) {
$harga = preg_replace('/\D/','',$harga);
return $harga;
}
function invoice_id() {
$blogtime = current_time('mysql');
list( $today_year,$today_month,$today_day,$hour,$minute,$second ) = split( '([^0-9])',$blogtime );
echo  $today_month;
echo $today_day;
echo '/';
echo of_get_option('nama_toko');
echo '/';
echo $hour;
echo $minute;
echo $second;
}
function shorttitle_fastestwp()
{
global $post;
$the_title = $post->post_title;
$getlength = strlen($the_title);
$thelength = 35;
echo substr($the_title,0,$thelength);
if ($getlength >$thelength) ;
}
function shorttitle2_fastestwp()
{
global $post;
$the_title = $post->post_title;
$getlength = strlen($the_title);
$thelength = 60;
echo substr($the_title,0,$thelength);
if ($getlength >$thelength) ;
}
function harga_coret_fastestwp()
{global $post;
if(get_post_meta($post->ID,"harga_diskon",true)){
$harga = get_post_meta($post->ID,"harga",true);
echo $harga;}
}
function pilihan_fastestwp()
{
global $post;
if(get_post_meta($post->ID,"pilihan",true)) {;echo '';if(get_post_meta($post->ID,"pilihan1",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan1",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan1",true);;echo '</td></tr>
';};echo '
';if(get_post_meta($post->ID,"pilihan2",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan2",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan2",true);;echo '</td></tr>
';};echo '
';if(get_post_meta($post->ID,"pilihan3",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan3",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan3",true);;echo '</td></tr>
';};echo '
';if(get_post_meta($post->ID,"pilihan4",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan4",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan4",true);;echo '</td></tr>
';};echo '
';if(get_post_meta($post->ID,"pilihan5",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan5",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan5",true);;echo '</td></tr>
';};echo '';}else {;echo '<tr><td >Harga </td><td>Rp ';harga_fastestwp();;echo ' <span class="coret">';harga_coret_fastestwp();;echo '</span></td></tr>
';}
}
function get_harga_fastestwp( $post )
{
$harga = '(hubungi cs)';
if ( get_post_meta( $post->ID,"harga_diskon",true ) ){$harga = get_post_meta( $post->ID,"harga_diskon",true );}
elseif (get_post_meta($post->ID,"harga",true)){$harga = get_post_meta($post->ID,"harga",true);}
return $harga;
}
function harga_fastestwp()
{global $post;
$harga = get_harga_fastestwp( $post );
echo $harga;}
function harga_input_fastestwp()
{global $post;
$harga = get_harga_fastestwp( $post );
$harga = str_replace (',','',$harga);
$harga = str_replace ('.','',$harga);
echo $harga;}
function small_thumb_fastestwp(){
global $post,$posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/<img.+src=['"]([^'"]+)['"].*>/i',$post->post_content,$matches);
if(isset($matches [1] [0])){
$first_img = $matches [1] [0];
$img_url = $first_img;$image = aq_resize( $img_url,75,75,false );;echo '<img src="';echo $image[0] ;echo '" alt="';the_title();;echo '" width="';echo $image[1] ;echo '" height="';echo $image[2] ;echo '" />
';}else {;echo '<img src="';echo get_template_directory_uri();;echo '/images/thumb70.png" alt="';the_title();;echo '" width="70" height="70" />
';}
}
function thumb_fastestwp(){
global $post,$posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/<img.+src=['"]([^'"]+)['"].*>/i',$post->post_content,$matches);
if(isset($matches [1] [0])){
$first_img = $matches [1] [0];
$img_url = $first_img;$image = aq_resize( $img_url,150,150,false );;echo '<img src="';echo $image[0] ;echo '" alt="';the_title();;echo '" width="';echo $image[1] ;echo '" height="';echo $image[2] ;echo '" />
';}else {;echo '<img src="';echo get_template_directory_uri();;echo '/images/thumb150.png" alt="';the_title();;echo '" width="135" height="150" />
';}
}
function big_thumb_fastestwp(){
global $post,$posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/<img.+src=['"]([^'"]+)['"].*>/i',$post->post_content,$matches);
if(isset($matches [1] [0])){
$first_img = $matches [1] [0];
$img_url = $first_img;$image = aq_resize( $img_url,300,300,false );;echo '<img src="';echo $image[0] ;echo '" alt="';the_title();;echo '" width="';echo $image[1] ;echo '" height="';echo $image[2] ;echo '" />
';}else {;echo '<img src="';echo get_template_directory_uri();;echo '/images/thumb300.png" alt="';the_title();;echo '" width="300" height="300" title="triumph" />
';}
}
function label_fastestwp()
{
global $post;
if(get_post_meta($post->ID,"habis",true)){;echo '<div class="wpgrosir-lable"><img src="';echo get_template_directory_uri();;echo '/images/habis.png" alt="download"  width="86" height="86" /></div>
';}else if(get_post_meta($post->ID,"label",true) == 'sale') {;echo ' <div class="wpgrosir-lable"><img src="';echo get_template_directory_uri();;echo '/images/sale.png" alt="download"  width="86" height="86" /></div>
';}else if(get_post_meta($post->ID,"label",true) == 'best') {;echo ' <div class="wpgrosir-lable"><img src="';echo get_template_directory_uri();;echo '/images/best.png" alt="download"  width="86" height="86" /></div>
';}}
function buynow_fastestwp()
{
global $post;
if(get_post_meta($post->ID,"habis",$single = true)){;echo '<div class="habis">Stok habis</div>
';}else if(of_get_option('button_order_act') == '1') {;echo '<a class="small beli blue" href="';echo of_get_option('order_page');;echo '" title="';the_title();;echo '">Beli</a>
';}else if(of_get_option('button_order_act') == '0') {;echo '<input type="submit" name="my-add-button" value="Beli" class="small beli blue" />
';}}
function buynow_single_fastestwp()
{
global $post;
if(get_post_meta($post->ID,"habis",true)){;echo '<div class="habis-single">Stok habis</div>
';}else if(of_get_option('button_order_act') == '1') {;echo '<a class="large beli blue" href="';echo of_get_option('order_page');;echo '" title="';the_title();;echo '" target="_blank">Beli Sekarang</a>
';}else if(get_post_meta($post->ID,"dropship",true)) {;echo '<a class="large beli blue" href="';echo of_get_option('order_page');;echo '" title="';the_title();;echo '" target="_blank">Beli Sekarang</a>
';}else if(of_get_option('button_order_act') == '0') {;echo '<input type="submit" name="my-add-button" value="Tambah Ke Keranjang" class="large beli blue" />

';}}
function pilihan_single_fastestwp()
{
global $post;
if(get_post_meta($post->ID,"habis",$single = true)){;echo '';}else {;echo '
';if(get_post_meta($post->ID,"pilihan",true)){;echo '<select id="my_select" name="my_select_box">
<option value="">- Pilih Warna -</option>
';if(get_post_meta($post->ID,"pilihan1",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan1",true));;echo '">
';echo get_post_meta($post->ID,"pilihan1",true);;echo '</option>';};echo '
';if(get_post_meta($post->ID,"pilihan2",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan2",true));;echo '">
';echo get_post_meta($post->ID,"pilihan2",true);;echo '</option>';};echo '
';if(get_post_meta($post->ID,"pilihan3",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan3",true));;echo '">
';echo get_post_meta($post->ID,"pilihan3",true);;echo '</option>';};echo '
';if(get_post_meta($post->ID,"pilihan4",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan4",true));;echo '">
';echo get_post_meta($post->ID,"pilihan4",true);;echo '</option>';};echo '
';if(get_post_meta($post->ID,"pilihan5",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan5",true));;echo '">
';echo get_post_meta($post->ID,"pilihan5",true);;echo '</option>';};echo '</select>
';};echo '
';}}
function bersih_harga($harga) {
$harga = preg_replace('/\D/','',$harga);
return $harga;
}
function invoice_id() {
$blogtime = current_time('mysql');
list( $today_year,$today_month,$today_day,$hour,$minute,$second ) = split( '([^0-9])',$blogtime );
echo  $today_month;
echo $today_day;
echo '/';
echo of_get_option('nama_toko');
echo '/';
echo $hour;
echo $minute;
echo $second;
}
function shorttitle_fastestwp()
{
global $post;
$the_title = $post->post_title;
$getlength = strlen($the_title);
$thelength = 35;
echo substr($the_title,0,$thelength);
if ($getlength >$thelength) ;
}
function shorttitle2_fastestwp()
{
global $post;
$the_title = $post->post_title;
$getlength = strlen($the_title);
$thelength = 60;
echo substr($the_title,0,$thelength);
if ($getlength >$thelength) ;
}
function harga_coret_fastestwp()
{global $post;
if(get_post_meta($post->ID,"harga_diskon",true)){
$harga = get_post_meta($post->ID,"harga",true);
echo $harga;}
}
;echo '';
function pilihan_fastestwp()
{
global $post;
if(get_post_meta($post->ID,"pilihan",true)) {;echo '';if(get_post_meta($post->ID,"pilihan1",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan1",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan1",true);;echo '</td></tr>
';};echo '
';if(get_post_meta($post->ID,"pilihan2",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan2",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan2",true);;echo '</td></tr>
';};echo '
';if(get_post_meta($post->ID,"pilihan3",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan3",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan3",true);;echo '</td></tr>
';};echo '
';if(get_post_meta($post->ID,"pilihan4",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan4",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan4",true);;echo '</td></tr>
';};echo '
';if(get_post_meta($post->ID,"pilihan5",true)){;echo '<tr><td >';echo get_post_meta($post->ID,"pilihan5",true);;echo '</td><td>Rp ';echo get_post_meta($post->ID,"harga_pilihan5",true);;echo '</td></tr>
';};echo '';}else {;echo '<tr><td >Harga </td><td>Rp ';harga_fastestwp();;echo ' <span class="coret">';harga_coret_fastestwp();;echo '</span></td></tr>
';}
}
;echo '';
function get_harga_fastestwp( $post )
{
$harga = '(hubungi cs)';
if ( get_post_meta( $post->ID,"harga_diskon",true ) ){$harga = get_post_meta( $post->ID,"harga_diskon",true );}
elseif (get_post_meta($post->ID,"harga",true)){$harga = get_post_meta($post->ID,"harga",true);}
return $harga;
}
function harga_fastestwp()
{global $post;
$harga = get_harga_fastestwp( $post );
echo $harga;}
function harga_input_fastestwp()
{global $post;
$harga = get_harga_fastestwp( $post );
$harga = str_replace (',','',$harga);
$harga = str_replace ('.','',$harga);
echo $harga;}
;echo '';
function small_thumb_fastestwp(){
global $post,$posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/<img.+src=['"]([^'"]+)['"].*>/i',$post->post_content,$matches);
if(isset($matches [1] [0])){
$first_img = $matches [1] [0];
$img_url = $first_img;$image = aq_resize( $img_url,75,75,false );;echo '<img src="';echo $image[0] ;echo '" alt="';the_title();;echo '" width="';echo $image[1] ;echo '" height="';echo $image[2] ;echo '" />
';}else {;echo '<img src="';echo get_template_directory_uri();;echo '/images/thumb70.png" alt="';the_title();;echo '" width="70" height="70" />
';}
}
;echo '';
function thumb_fastestwp(){
global $post,$posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/<img.+src=['"]([^'"]+)['"].*>/i',$post->post_content,$matches);
if(isset($matches [1] [0])){
$first_img = $matches [1] [0];
$img_url = $first_img;$image = aq_resize( $img_url,150,150,false );;echo '<img src="';echo $image[0] ;echo '" alt="';the_title();;echo '" width="';echo $image[1] ;echo '" height="';echo $image[2] ;echo '" />
';}else {;echo '<img src="';echo get_template_directory_uri();;echo '/images/thumb150.png" alt="';the_title();;echo '" width="135" height="150" />
';}
}
;echo '';
function big_thumb_fastestwp(){
global $post,$posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/<img.+src=['"]([^'"]+)['"].*>/i',$post->post_content,$matches);
if(isset($matches [1] [0])){
$first_img = $matches [1] [0];
$img_url = $first_img;$image = aq_resize( $img_url,300,300,false );;echo '<img src="';echo $image[0] ;echo '" alt="';the_title();;echo '" width="';echo $image[1] ;echo '" height="';echo $image[2] ;echo '" />
';}else {;echo '<img src="';echo get_template_directory_uri();;echo '/images/thumb300.png" alt="';the_title();;echo '" width="300" height="300" title="triumph" />
';}
}
;echo '';
function label_fastestwp()
{
global $post;
if(get_post_meta($post->ID,"habis",true)){;echo '<div class="wpgrosir-lable"><img src="';echo get_template_directory_uri();;echo '/images/habis.png" alt="download"  width="86" height="86" /></div>
';}else if(get_post_meta($post->ID,"label",true) == 'sale') {;echo ' <div class="wpgrosir-lable"><img src="';echo get_template_directory_uri();;echo '/images/sale.png" alt="download"  width="86" height="86" /></div>
';}else if(get_post_meta($post->ID,"label",true) == 'best') {;echo ' <div class="wpgrosir-lable"><img src="';echo get_template_directory_uri();;echo '/images/best.png" alt="download"  width="86" height="86" /></div>
';}};echo '';
function buynow_fastestwp()
{
global $post;
if(get_post_meta($post->ID,"habis",$single = true)){;echo '<div class="habis">Stok habis</div>
';}else if(of_get_option('button_order_act') == '1') {;echo '<a class="small beli blue" href="';echo of_get_option('order_page');;echo '" title="';the_title();;echo '">Beli</a>
';}else if(of_get_option('button_order_act') == '0') {;echo '<input type="submit" name="my-add-button" value="Beli" class="small beli blue" />
';}};echo '';
function buynow_single_fastestwp()
{
global $post;
if(get_post_meta($post->ID,"habis",true)){;echo '<div class="habis-single">Stok habis</div>
';}else if(of_get_option('button_order_act') == '1') {;echo '<a class="large beli blue" href="';echo of_get_option('order_page');;echo '" title="';the_title();;echo '" target="_blank">Beli Sekarang</a>
';}else if(get_post_meta($post->ID,"dropship",true)) {;echo '<a class="large beli blue" href="';echo of_get_option('order_page');;echo '" title="';the_title();;echo '" target="_blank">Beli Sekarang</a>
';}else if(of_get_option('button_order_act') == '0') {;echo '<input type="submit" name="my-add-button" value="Tambah Ke Keranjang" class="large beli blue" />

';}};echo '';
function pilihan_single_fastestwp()
{
global $post;
if(get_post_meta($post->ID,"habis",$single = true)){;echo '';}else {;echo '
';if(get_post_meta($post->ID,"pilihan",true)){;echo '<select id="my_select" name="my_select_box">
<option value="">-Pilih Ukuran-</option>
';if(get_post_meta($post->ID,"pilihan1",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan1",true));;echo '">
';echo get_post_meta($post->ID,"pilihan1",true);;echo '</option>';};echo '
';if(get_post_meta($post->ID,"pilihan2",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan2",true));;echo '">
';echo get_post_meta($post->ID,"pilihan2",true);;echo '</option>';};echo '
';if(get_post_meta($post->ID,"pilihan3",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan3",true));;echo '">
';echo get_post_meta($post->ID,"pilihan3",true);;echo '</option>';};echo '
';if(get_post_meta($post->ID,"pilihan4",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan4",true));;echo '">
';echo get_post_meta($post->ID,"pilihan4",true);;echo '</option>';};echo '
';if(get_post_meta($post->ID,"pilihan5",true)){;echo '<option value="';echo bersih_harga(get_post_meta($post->ID,"harga_pilihan5",true));;echo '">
';echo get_post_meta($post->ID,"pilihan5",true);;echo '</option>';};echo '</select>
';};echo '
';}};

Function Calls

None

Variables

None

Stats

MD5 1aa73238999161c90ae9ce236a6a0e34
Eval Count 0
Decode Time 376 ms