This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript"> | |
<?php | |
$url = "http://google.com"; | |
echo 'alert("Hello world");'; | |
echo 'window.location="',$url,'"'; | |
?> | |
</script> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Chương trình chuyển đổi từ Tiếng Việt có dấu sang Tiếng Việt không dấu | |
Chỉnh sửa từ mã nguồn của anh NamNT | |
http://www.vithon.org/2009/06/14/x%E1%BB%AD-ly-ti%E1%BA%BFng-vi%E1%BB%87t-trong-python | |
""" | |
import re | |
INTAB = "ạảãàáâậầấẩẫăắằặẳẵóòọõỏôộổỗồốơờớợởỡéèẻẹẽêếềệểễúùụủũưựữửừứíìịỉĩýỳỷỵỹđẠẢÃÀÁÂẬẦẤẨẪĂẮẰẶẲẴÓÒỌÕỎÔỘỔỖỒỐƠỜỚỢỞỠÉÈẺẸẼÊẾỀỆỂỄÚÙỤỦŨƯỰỮỬỪỨÍÌỊỈĨÝỲỶỴỸĐ" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
static function format_price( $price = '', $no_price_text = 'Contact for price' ) { | |
/** | |
* @var PGL_Options $pgl_options | |
*/ | |
global $pgl_options; | |
if ( ! $price ) { | |
return apply_filters( 'estate/format_price/noprice', $no_price_text ); | |
} | |
else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$html .= '<div class="row ' . ( $i < $items_per_big_column ? 'col-home' : '' ) . '"> | |
<div class="span6"> | |
<div class="container-big"><a href="'.get_permalink($the_id).'"> | |
' . self::get_estate_thumbnail( $the_id, 'estate-showcase-big-thumbnail' ) . '</a> | |
<article class="text-big"> | |
<div class="infotexthv"> | |
<h3><a href="' . get_permalink( $the_id ) . '">' . get_the_title( $the_id ) . '</a></h3> | |
<p>' . PGL_Addon_Estate::the_excerpt( FALSE ) . '</p> | |
</div> | |
</article> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// open | |
_media.frame.on('open',function() { | |
// add class | |
_media.frame.$el.closest('.media-modal').addClass('acf-media-modal acf-expanded'); | |
//console.log( _media.frame.state() ); | |
// set selection | |
var selection = _media.frame.state().get('selection'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function is_right_format_col_1($val) { | |
// var_dump($val); | |
return is_numeric($val); | |
} | |
function is_right_format_col_2($val) { | |
return ! preg_match('/[^A-Za-z\s]/', $val); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[estate_search] | |
[estate_horizontal_slide count="10"] | |
[estate_list display="grid"] | |
[container extra_classes="ouragents"] | |
<h3>Our Agent</h3> | |
<div class="our-content"> | |
[row][block size="6"][agent title="NO.1" name="JOHN SMITH" desc="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin rutrum nisi eu ante mattis sit amet luctus nisl tempus." mail="[email protected]" phone="012.666.999" img="http://pixelgeeklab.com/realestast/img/our1.jpg"][/block][block size="6"][agent title="NO.2" name="ANDREW MCCARTHY" desc="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin rutrum nisi eu ante mattis sit amet luctus nisl tempus." mail="[email protected]" phone="012.666.999" img="http://pixelgeeklab.com/realestast/img/our2.jpg"][/block][/row] | |
</div> | |
[/container] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@color: #666; | |
@type: 'bold'; | |
body{ | |
background-color: @color; | |
font-weight: @type; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO admin_user SELECT | |
NULL `user_id`, | |
"Dung" `firstname`, | |
"Pham" `lastname`, | |
"[email protected]" `email`, | |
"dungpt.sutunam" `username`, | |
"9684dfd577831f73890e88fe18ca9072:Hs" `password`, | |
NOW() `created`, | |
NULL `modified`, | |
NULL `logdate`, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<richcart_product_view> | |
<label>Catalog Product View (Any)</label> | |
<!-- Mage_Catalog --> | |
<remove name="right"/> | |
<remove name="left"/> | |
<!-- <reference name="root"> | |
<action method="setTemplate"><template>page/2columns-right.phtml</template></action> | |
</reference> --> | |
<reference name="head"> | |
<action method="addJs"><script>varien/product.js</script></action> |
OlderNewer