Skip to content

Instantly share code, notes, and snippets.

working ...

Dimas Begunoff farinspace

working ...
View GitHub Profile
farinspace / project-meta.php
Created Jan 19, 2012 — forked from kirstenkeister/project-meta.php
WPAlchemy meta definitions for project-meta
View project-meta.php
<div class="my_meta_control">
<a style="float:right; margin:0 10px;" href="#" class="dodelete-links button remove-all">Remove All</a>
<label>Project Staff<span>(current Staff associated with the project)</span></label>
<p>Add staff to project by selecting them from the dropdown. Add addtional staff by clicking the "Add Staff" button.</p>
farinspace / videos_projects
Created Dec 17, 2011 — forked from fchouquet/videos_projects
Can't get videos working
View videos_projects
<?php global $video_metabox; $video_metabox->the_meta(); ?>
<?php if ( $video_metabox->have_value( 'vids' ) ) { ?>
<ul class="project_videos">
<?php while( $video_metabox->have_fields('vids') ) { ?>
<?php echo wp_oembed_get( $video_metabox->the_value( 'videourl' ) ); ?>
<?php } ?>
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 / 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>
View testimonial-meta-output.php
global $testimonial_metabox;
$testimonial_bg = $testimonial_metabox->get_the_value( 'background' );
$testimonials = $testimonial_metabox->get_the_value( 'testimonials' );
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">
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 Links metabox code