Public Gists by cristiansans

Gravatar
Fri Sep 11 15:39:18 -0700 2009
1
2
3
Next Gen Gallery hacks for ibai's web
 
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($image)) : ?>
Gravatar
Wed Sep 09 12:09:18 -0700 2009
1
2
3
// Get thumbnail
function get_thumb() {
$files = get_children('post_parent='.get_the_ID().'&post_type=attachment&post_mime_type=image');
Gravatar
Wed Sep 09 12:08:25 -0700 2009
1
2
3
//return the first image, <img/> tag and all.
function first_image($width=100,$height=100,$zoomcrop=1){
$timthumb_url = get_first_image($width, $height, $zoomcrop);
Gravatar
Tue Aug 11 05:43:19 -0700 2009
1
2
3
<!-- Random project -->
<?php if (have_posts()) : ?>
<?php query_posts('showposts=1&cat=3&orderby=rand'); ?>
Gravatar
Tue Mar 31 04:54:59 -0700 2009
1
2
ereg_replace( "<[^>]+>", '',$cadena);
$nueva_cadena=ereg_replace( "<[^>]+>", '',$cadena);
Gravatar
Sun Mar 29 07:15:57 -0700 2009
1
<?php echo gold_shpcrt_search_form(); ?>
Gravatar
Sun Mar 29 07:10:33 -0700 2009
1
2
3
In gold_shopping_cart.php, in the section for function gold_shpcrt_search_sql
(Line 466 or thereabouts)
 
Gravatar
Sun Mar 29 07:08:01 -0700 2009
1
2
3
gold_shopping_cart.php - lines 538/539
 
from...
Gravatar
Sun Mar 29 07:06:49 -0700 2009
1
2
3
gold_shopping_cart.php - lines 538/539
 
from...
Gravatar
Sun Mar 29 04:30:06 -0700 2009
1
2
3
Windows XP, Firefox 3
3008ds1-ryv.0.fullrate.dk
Mozilla/5.0 (Windows; U; Windows NT 5.1; da; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 Creative ZENcast v1.02.10
Gravatar
Fri Mar 27 12:35:29 -0700 2009
1
2
3
<?php
//Para usar dentro del Loop, muestra 5 artículos relacionados.
if ($tags) {
Gravatar
Mon Mar 16 16:55:42 -0700 2009
1
2
3
function getImage( $postID, $size = "thumbnail" ) {
    $images = get_children( "post_parent=$postID&post_type=attachment&post_mime_type=image" );
    if ( $images ) {
Gravatar
Mon Mar 16 15:05:13 -0700 2009
1
2
3
<?php
$post_parent = get_post($post->ID, ARRAY_A);
$parent = $post_parent['post_parent'];
Gravatar
Sun Feb 22 17:33:12 -0800 2009
1
<a href="<a href="javascript:history.back()">" class="back">Volver</a>
Gravatar
Fri Jan 23 17:16:43 -0800 2009
1
2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Gravatar
Tue Dec 02 11:30:58 -0800 2008
1
2
3
sudo apachectl stop
sudo mkdir /var/log/apache2
sudo chown -R root:wheel /var/log/apache2
gist: 2700 CSS Dropdown Menu
Gravatar
Sat Jul 26 15:37:11 -0700 2008
1
2
3
<!--
CSS Dropdown Menu
Cristian Sans
Gravatar
Fri Jul 25 15:14:12 -0700 2008
1
<li id="custom"><a href="/"><?=TXT_PERSONALIZA_LINK?><span><?=TXT_ZAPATILLAS_LINK?><span></span></a></li>