Ejemplo n.º 1
0
		}
	}
}
*/
if ($promo_info) {
    $image_obj->src = $promo_info['small_image_url'];
    $image_obj->alt = $promo_info['small_image_url'];
    $small_img = $image_obj->paint();
    $image_obj->src = $promo_info['medium_image_url'];
    $image_obj->alt = $promo_info['medium_image_url'];
    $medium_img = $image_obj->paint();
    $image_obj->src = $promo_info['large_image_url'];
    $image_obj->alt = $promo_info['large_image_url'];
    $large_img = $image_obj->paint();
}
$alert_output .= $fileops->check_or_make_dir('..' . $image_path);
/*
$mobile_content = <<<EOL
	$small_img
	<label for="small_image_url">Replace image</label>
	<input type="file" id="small_image_url" name="small_image_url" value=""/>

EOL;

$tablet_content = <<<EOL
	$medium_img
	<label for="medium_image_url">Replace image</label>
	<input type="file" id="medium_image_url" name="medium_image_url" value=""/>

EOL;
*/
Ejemplo n.º 2
0
        ${$val} = register_variable($val);
    }
}
// Hold it — no ID, no entrance.
if (!$page_id) {
    header('location:sttc.page-list.php');
    die;
}
$view = new GrlxView();
$link = new GrlxLinkStyle();
$message = new GrlxAlert();
$form = new GrlxForm();
$fileops = new GrlxFileOps();
$sl = new GrlxSelectList();
// Make sure the image folder exists and is accessible.
$alert_output .= $fileops->check_or_make_dir('../' . DIR_STATIC_IMG);
/*****
 * ! Updates
 */
// This comes from sttc.xml-new.php.
if ($msg == 'created') {
    $link1 = new GrlxLinkStyle();
    $link1->url('sttc.xml-new.php');
    $link1->tap('Create another new page');
    $link->url('site.nav.php');
    $link->tap('Add this page to the site’s menu');
    $alert_output .= $message->success_dialog('Page created. <ul><li>Make changes below</li><li>' . $link->paint() . '</li><li>' . $link1->paint() . '</li>');
}
// ! Upload images
// If the static images’ folder exists (that’s $folder_check),
// then loop through the artist-submitted files (if any).