';
$slides = array();
@@ -991,26 +991,34 @@ class theme_admin_form_ui extends e_admin_form_ui
'price' => $theme['price']
);
-
e107::getSession()->set('thememanager/online/'.$theme['id'], $theme);
$d = http_build_query($srcData,false,'&');
$base64 = base64_encode($d);
-
$id = $this->name2id($theme['name']);
- $LAN_DOWNLOAD = (!empty($theme['price'])) ? LAN_PURCHASE."/".LAN_DOWNLOAD : LAN_DOWNLOAD;
- $downloadUrl = e_SELF.'?mode=main&iframe=1&action=download&src='.base64_encode($d);//$url.'&action=download';
+ if(!empty($theme['price'])) // Premium Theme
+ {
+ $LAN_DOWNLOAD = LAN_PURCHASE."/".LAN_DOWNLOAD;
+ $downloadUrl = e_SELF.'?mode=main&action=download&src='.base64_encode($d); // no iframe.
+ $mainTarget = '_blank';
+ $mainClass = '';
+ $modalCaption = ' '.LAN_PURCHASE.' '.$theme['name']." ".$theme['version'];
+ }
+ else // Free Theme
+ {
+ $LAN_DOWNLOAD = LAN_DOWNLOAD;
+ $downloadUrl = e_SELF.'?mode=main&iframe=1&action=download&src='.base64_encode($d);//$url.'&action=download';
+ $mainTarget = '_self';
+ $mainClass = 'e-modal';
+ $modalCaption = ' '.LAN_DOWNLOADING.' '.$theme['name']." ".$theme['version'];
+ }
// $url = e_SELF."?src=".$base64;
$infoUrl = e_SELF.'?mode=main&iframe=1&action=info&src='.$base64;
-
// $viewUrl = $theme['url'];
-
- $modalCaption = (empty($theme['price'])) ? ' '.LAN_DOWNLOADING.' '.$theme['name']." ".$theme['version'] :' '.LAN_PURCHASE.' '.$theme['name']." ".$theme['version'];
- $main_icon = "
".$tp->toGlyph('fa-download',array('size'=>'2x'))."";
-
+ $main_icon = "
".$tp->toGlyph('fa-download',array('size'=>'2x'))."";
$info_icon = "
".$tp->toGlyph('fa-info-circle',array('size'=>'2x'))."";
if(!empty($theme['preview'][0]))
@@ -1704,6 +1712,7 @@ TEMPLATE;
}
+ return null;
}
@@ -1754,4 +1763,4 @@ function headerjs() // needed for the checkboxes - how can we remove the need to
return e107::getAdminUI()->getHeader();
}
*/
-?>
+