viewData['creative'];
function formatType($type)
{
switch ($type)
{
case 'image': return __( 'Image', 'affiliates-manager' );
case 'text': return __( 'Text Link', 'affiliates-manager' );
default: wp_die( __('Unknown creative type.', 'affiliates-manager' ) );
}
}
?>
type === 'image') { ?>
 && !empty($model->image)){ //new way of retrieving an image URL
$img_url = $model->image;
}
else if(isset($model->imagePostId) && !empty($model->imagePostId)){ //old way for backwards compatiblity
$img_url = wp_get_attachment_url($model->imagePostId);
}
//$url = wp_get_attachment_image_src($model->imagePostId);
echo esc_url($img_url);
?>)
type === 'text') { ?>
linkText)?>
name)?>
viewData['updateMessage'])) {?>
viewData['updateMessage']?>
|
|
|
|
creativeId)?> |
|
status)?> |
|
name)?> |
|
type))?> |
slug);
$aff_landing_page = get_option(WPAM_PluginConfig::$AffLandingPageURL);
if(isset($aff_landing_page) && !empty($aff_landing_page)){
$aff_landing_page = trailingslashit($aff_landing_page);
$home_url = $aff_landing_page.trim($model->slug);
}
?>
|
|
type == 'text') { ?>
type == 'image') { ?>
|
|
 && !empty($model->image)){ //new way of retrieving an image URL
$img_url = $model->image;
}
else if(isset($model->imagePostId) && !empty($model->imagePostId)){ //old way for backwards compatiblity
$img_url = wp_get_attachment_url($model->imagePostId);
}
//$url = wp_get_attachment_image_src($model->imagePostId);
echo esc_url($img_url);?>) |
|
altText)?> |