File indexing completed on 2024-12-29 05:24:48

0001 <?php 
0002 /**
0003  *  ocs-webserver
0004  *
0005  *  Copyright 2016 by pling GmbH.
0006  *
0007  *    This file is part of ocs-webserver.
0008  *
0009  *    This program is free software: you can redistribute it and/or modify
0010  *    it under the terms of the GNU Affero General Public License as
0011  *    published by the Free Software Foundation, either version 3 of the
0012  *    License, or (at your option) any later version.
0013  *
0014  *    This program is distributed in the hope that it will be useful,
0015  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  *    GNU Affero General Public License for more details.
0018  *
0019  *    You should have received a copy of the GNU Affero General Public License
0020  *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
0021  **/
0022 ?>
0023 
0024 <div class="panel-collapse " id="website-collapse">
0025     <div class="panel-body">
0026         <form class="standard-form well partial" action="<?= $this->homepageform->getAction(); ?>"
0027               method="<?= $this->homepageform->getMethod(); ?>" data-target="#form-website"
0028               data-trigger="#website-trigger">
0029             <?= $this->homepageform->csrf; ?>
0030             <div class="row">
0031                 <div class="col-md-8 col-lg-8 col-sm-8 col-xs-8">
0032                   <?= $this->homepageform->link_website->setAttrib('tabindex', 19)->setAttrib('class', 'form-control')->setAttrib('style', 'width:92%;display:inline-block;') ?>
0033                   <p class="help-block small">Insert the full URL for your website here.</p>
0034                 </div>
0035             </div>
0036             <!-- /.row-fluid -->
0037             <?php
0038             $linkWebsite = $this->homepageform->link_website->getValue();
0039             if (false === empty($linkWebsite)) {
0040                 ?>
0041                 <hr>
0042                 <p class="italic">
0043                     <?=
0044                     $this->translate('Copy the meta tag below and paste it into your site home page.<br>
0045                 It should go in the <span class="lightblue">&lt;head&gt;</span> section, before the first <span
0046                     class="lightblue">&lt;body&gt;</span> section.') ?>
0047                 </p>
0048 
0049                 <div class="clipboard-copy clearfix well embed-code" id="container-verification-code">
0050                     <div class="left purple clipboard-code light"
0051                          id="clipboard-code"><?= $this->homepageform->html_verifier ?></div>
0052                     <button class="btn btn-purple right" data-clipboard-target="#clipboard-code" onclick="return false;"
0053                             tabindex="20"><?= $this->translate('COPY TO CLIPBOARD') ?></button>
0054                 </div>
0055                 <?php
0056             }
0057             ?>
0058             <hr>
0059             <div class="row">
0060                 <div class="box pull-left margin-left-15"  style="padding-left: 15px;"><?php echo $this->formResult($this->homepageform, $this->save); ?></div>
0061                 <button type="submit" class="btn btn-native pull-right"
0062                         tabindex="21"><?= $this->translate('Save &amp; Update') ?></button>
0063             </div>
0064         </form>
0065         <!-- /.standard-form -->
0066     </div>
0067     <!-- /.section-body -->
0068 </div>
0069 <?php $this->inlineScript()->appendScript(
0070     '    $(document).ready(function(){
0071             ButtonCode.setupClipboardCopy(\'#container-verification-code\');
0072         });
0073     ');