Skip to content

Commit

Permalink
custom view styling implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
nightflyza committed Apr 4, 2024
1 parent 34b49a1 commit 59f906f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/general/procrast/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@


if (ubRouting::checkGet('rinvoke')) {
//invocing remote app here
//invoking remote app here
$remoteInvokedApp = ubRouting::get('rinvoke', 'vf');
if (isset($invocableApps[$remoteInvokedApp])) {
$appData = $invocableApps[$remoteInvokedApp];
if ($appData) {
$invokeCode = '';
$style = 'style="width: 70vw; height: 70vh;"';
if (ispos($appData['params'],'CUSTOMVIEW:')) {
$style=str_replace('CUSTOMVIEW:','',$appData['params']);
}
$options = 'id="dos" src="' . $cdnUrl . $appData['url'] . '" frameborder="0" ' . $style . ' allowfullscreen';
$invokeCode .= wf_tag('iframe', false, '', $options);
$invokeCode .= wf_tag('iframe', true);
Expand Down

0 comments on commit 59f906f

Please sign in to comment.