Skip to content

Instantly share code, notes, and snippets.

working ...

Dimas Begunoff farinspace

working ...
View GitHub Profile
View upcoming list
global $am_option;
<div class="post">
<h2 class="home_title">UPCOMING:</h2>
<div class="box">
<div class="holder">
<div class="frame">
<?php global $custom_metabox; ?>
<?php query_posts('post_type=events&showposts=3'); ?>
farinspace / functions.php
Created Jul 31, 2011 — forked from anonymous/functions.php
WPAlchemy - Issue getting value pulled into page template
View functions.php
// add Gallery Images custom meta box
$mgallery = new WPAlchemy_MetaBox(array
'id' => '_gallery_main',
'title' => 'Gallery Images',
'types' => array('gallery_main'), // added only for pages
'context' => 'normal', // same as above, defaults to "normal"
'priority' => 'high', // same as above, defaults to "high"
View testimonial-meta.php
* NOTE: The radio buttons which determine a css style in my program are CURRENTLY inside the group.
* I am trying to do this OUTSIDE of the group. If I leave it inside the group, I have to define the settings for each testimonial I have. I want to set it once and
* have it define each instance.
<div class="mcms_optinpage">
View testimonial-meta-output.php
global $testimonial_metabox;
$testimonial_bg = $testimonial_metabox->get_the_value( 'background' );
$testimonials = $testimonial_metabox->get_the_value( 'testimonials' );
farinspace / gif.php
Created Oct 9, 2011
PHP function to write a blank 1px gif
View gif.php
function writeGif()
header( 'Content-type: image/gif' );
header( 'Expires: Wed, 11 Nov 1998 11:11:11 GMT' );
header( 'Cache-Control: no-cache' );
header( 'Cache-Control: must-revalidate' );
farinspace / functions.php
Created Oct 11, 2011
Includes that might be needed when the wordpress editor is not enabled
View functions.php
farinspace / simple-meta.php
Created Oct 13, 2011
Quick code fix for Locke
View simple-meta.php
<div class="my_meta_control">
<a style="float:right; margin:0 10px;" href="#" class="dodelete-docs button">Remove All</a>
<p>Add Product Guide</p>
<?php while($mb->have_fields_and_multi('_nb_docs')): ?>
<?php $mb->the_group_open(); ?>
<?php $mb->the_field('_nb_title'); ?>
farinspace / dates-meta.php
Created Oct 25, 2011 — forked from emzo/dates-meta.php
WPAlchemy: Modify cloned item of repeating field group
View dates-meta.php
<a style="float:right; margin:0 10px;" href="#" class="dodelete-dates button">Remove All Dates</a>
<p>Add dates on which this course will run.</p>
<?php while($mb->have_fields_and_multi('dates')): ?>
<?php $mb->the_group_open(); ?>
<?php $mb->the_field('date'); ?>
<p><input type="text" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>" class="datepicker" />
<a href="#" class="dodelete button">Remove Date</a></p>
farinspace / people-links-meta.php
Created Nov 10, 2011 — forked from kirstenkeister/people-links-meta.php
WPAlchemy meta definitions for people-links
View people-links-meta.php
farinspace / is_array.js
Created Nov 23, 2011
Javascript function to check if obj is an array
View is_array.js
function isArray( obj )
if ( obj ) === '[object Array]' ) return true;
return false;