54 lines
1.3 KiB
PHP
Executable File
54 lines
1.3 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Cognito Forms WordPress Plugin.
|
|
*
|
|
* The Cognito Forms WordPress Plugin is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License, version 2, as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* The Cognito Forms WordPress Plugin is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
$url = CognitoAPI::$formsBase;
|
|
|
|
if ($_GET['page'] == 'CognitoCreateForm') {
|
|
$url = $url . 'forms/new';
|
|
} elseif ($_GET['page'] == "CognitoTemplates") {
|
|
$url = $url . 'templates';
|
|
} else {
|
|
$url = $url . 'forms';
|
|
}
|
|
?>
|
|
|
|
<iframe id="cognito-frame" src="<?= $url ?>"></iframe>
|
|
|
|
<style>
|
|
body {
|
|
overflow: hidden;
|
|
}
|
|
#wpcontent {
|
|
padding-left: 0!important;
|
|
}
|
|
#wpfooter {
|
|
display: none;
|
|
}
|
|
#wpwrap, #wpcontent, #wpbody, #wpbody-content {
|
|
height: 100%;
|
|
}
|
|
#wpbody-content *:not(#cognito-frame) {
|
|
display: none!important;
|
|
}
|
|
#cognito-frame {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow-x: hidden;
|
|
}
|
|
</style>
|