Skip to content

Instantly share code, notes, and snippets.

View farinspace's full-sized avatar
🙃
working ...

Dimas Begunoff farinspace

🙃
working ...
View GitHub Profile
@farinspace
farinspace / project-meta.php
Created January 19, 2012 17:17 — forked from kirstenkeister/project-meta.php
WPAlchemy meta definitions for project-meta
<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>
<?php
@farinspace
farinspace / videos_projects
Created December 17, 2011 18:53 — forked from fchouquet/videos_projects
Can't get videos working
<?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 } ?>
</ul>
@farinspace
farinspace / people-links-meta.php
Created November 10, 2011 17:06 — forked from kirstenkeister/people-links-meta.php
WPAlchemy meta definitions for people-links
@farinspace
farinspace / dates-meta.php
Created October 25, 2011 16:20 — forked from emzo/dates-meta.php
WPAlchemy: Modify cloned item of repeating field group
<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>
<?php
global $testimonial_metabox;
$testimonial_bg = $testimonial_metabox->get_the_value( 'background' );
$testimonials = $testimonial_metabox->get_the_value( 'testimonials' );
?>
@farinspace
farinspace / testimonial-meta.php
Created September 1, 2011 15:06 — forked from armandmorin/testimonial-meta.php
Metabox Outside of Group
<?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
farinspace / functions.php
Created July 31, 2011 00:24 — forked from anonymous/functions.php
WPAlchemy - Issue getting value pulled into page template
<?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"