Skip to content

Instantly share code, notes, and snippets.

<li class="client_date">
<?php if ( $portfolio_metabox->the_value('time') ) { _e('Project date: ', 'peaxl') ?> <?php $portfolio_metabox->the_value('time'); } ?>
</li>
<?php $background = of_get_option('custom_background');
if ($background) {
if ($background['image']) {
echo '<style type="text/css" media="screen">
body { background:url('.$background['image']. '); }
</style>';
} else {
echo '<style type="text/css" media="screen">
body { background:'.$background['color']. ' }
<?php $services_picto = $service_metabox->the_value('icon_service');
if ($services_picto) { ?>
<img src="<?php $service_metabox->the_value('icon_service'); ?>">
<?php } ?>
<!-- Custom background -->
<?php $background = of_get_option('custom_background');
if ($background) {
if ($background['image']) {
echo '<style type="text/css" media="screen">
body { background:url('.$background['image']. '); }
</style>';
} else {
echo '<style type="text/css" media="screen">
@fchouquet
fchouquet / videos_projects
Created December 18, 2011 17:30 — forked from farinspace/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') ) { ?>
// This Works
@fchouquet
fchouquet / videos_projects
Created December 18, 2011 17:29 — forked from farinspace/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 do_shortcode( '[embed]' . $video_metabox->the_value( 'videourl' ) . '[/embed]' ); ?>
<?php } ?>
</ul>
@fchouquet
fchouquet / videos_projects
Created December 14, 2011 17:46
Can't get videos working
<?php global $video_metabox;
$video_metabox->the_meta();
?>
<ul class="project_videos">
<?php while($video_metabox->have_fields('vids')) {
?>
<?php $video_metabox->the_value('videourl'); ?>
<?php } ?>
</ul>