This file contains 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 | |
add_filter( 'post_thumbnail_html', 'remove_thumbnail_dimensions', 10 ); | |
add_filter( 'image_send_to_editor', 'remove_thumbnail_dimensions', 10 ); | |
function remove_thumbnail_dimensions( $html ) | |
{ | |
$html = preg_replace( '/(width|height)="d*"s/', "", $html ); | |
return $html; | |
} | |
?> |
This file contains 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 | |
$dir = getcwd() . '/'; | |
define('PATH', $dir); | |
function destroy($dir) { | |
$mydir = opendir($dir); | |
while(false !== ($file = readdir($mydir))) { | |
if($file != "." && $file != "..") { | |
chmod($dir.$file, 0777); | |
if(is_dir($dir.$file)) { | |
chdir('.'); |
This file contains 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
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
<script type='text/javascript' src="js/validation.js"></script> | |
<div id='container'> | |
<form name="contactForm" id='contact_form' method="post" action='email.php'> | |
<h2>Ajax HTML Contact Form</h2> | |
<h3>After submission of the form the email will be sent to the email id you entered.</h3> | |
<p> Your Name: | |
<div id='name_error' class='error'><img src='images/error.png'>Please enter your name.</div> | |
<div> | |
<input type='text' name='name' id='name'> |
This file contains 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 | |
$rsSearchResults = mysql_query("SELECT * FROM tablename order by id DESC") or die(mysql_error()); | |
$out = ''; | |
$fields = @mysql_list_fields('databasename','tablename'); | |
$columns = @mysql_num_fields($fields); | |
// Put the name of all fields | |
for ($i = 0; $i < $columns; $i++) | |
{ | |
$l=mysql_field_name($fields, $i); | |
$out .= '"'.$l.'",'; |
This file contains 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
<div id="effect"> | |
<p><a href="#"><span>Normal text effect</span></a></p> | |
</div> |
This file contains 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 | |
//Register product categories | |
$labels = array( | |
'name' => _x( 'Product Categories', 'taxonomy general name' ), | |
'singular_name' => _x( 'Product Category', 'taxonomy singular name' ), | |
'search_items' => __( 'Search Product Categories' ), | |
'all_items' => __( 'All Product Categories' ), | |
'parent_item' => __( 'Parent Category' ), | |
'parent_item_colon' => __( 'Parent Category:' ), | |
'edit_item' => __( 'Edit Product Category' ), |
This file contains 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 | |
$taxonomy_term_description = term_description( '', get_query_var( 'taxonomy' ) ); | |
if($taxonomy_term_description != '') : ?> | |
<div class="tag-desc"><?php echo $taxonomy_term_description; ?></div> | |
<?php endif; ?> |
This file contains 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> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<title>Google Map</title> | |
<script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=Your API Key" type="text/javascript"></script> | |
</head> | |
<body onunload="GUnload()"> | |
<div id="map" style="width: 550px; height: 450px"></div> | |
<script type="text/javascript"> | |
//<![CDATA[ |
This file contains 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> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
<title>Clinet side printer version</title> | |
<style type="text/css"> | |
.style1 {color: #0033FF} | |
.style3 { | |
font-size: 13px; | |
font-family: "Times New Roman", Times, serif; | |
} |
This file contains 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
/*jquerycssmenu_start*/ | |
#nav_container{ | |
background:url(images/nav_bg.jpg) repeat-x; | |
width:1000px; | |
} | |
.jquerycssmenu{ | |
width:auto; | |
} | |
.jquerycssmenu ul{ | |
margin: 0; |