File: //home/globfdxw/diasporameetsafrica.com/wp-content/themes/DA10/framework/design/add/add-series.php
<?php
/*
* Theme: PREMIUMPRESS CORE FRAMEWORK FILE
* Url: www.premiumpress.com
* Author: Mark Fail
*
* THIS FILE WILL BE UPDATED WITH EVERY UPDATE
* IF YOU WANT TO MODIFY THIS FILE, CREATE A CHILD THEME
*
* http://codex.wordpress.org/Child_Themes
*/
if (!defined('THEME_VERSION')) { header('HTTP/1.0 403 Forbidden'); exit; }
global $CORE, $userdata;
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
?>
<div class="block-header mt-4">
<h3 class="block-header__title"><?php echo __("Video Series","premiumpress"); ?></h3>
<div class="block-header__divider"></div>
</div>
<p class="text-muted"><?php echo __("Enter the full website link for the next video in this series.","premiumpress"); ?></p>
<?php
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
$editID=0;
if(isset($_GET['eid']) && is_numeric($_GET['eid'])){
$editID = $_GET['eid'];
}
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
$series = get_post_meta($editID,"series",true);
?>
<div class="row">
<?php
$i =1; while($i < 22){ ?>
<div class="col-md-4 mt-3">
<label><?php echo __("Episode","premiumpress"); ?> <?php echo $i; ?></label>
<input type="text" name="series[<?php echo $i; ?>]" class="form-control" value="<?php if(isset($series[$i])){ echo $series[$i]; } ?>" />
</div>
<?php $i++; } ?>
</div>
<?php
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
?>