function privacy() { $this->output->cache(30); //We need to retreive the page content from the DB and parse it $Content = new ifx_PageData(); data('Content', $Content->get(PD_PRIVACY)); $this->display('page'); }
function edit($Key) { $PageData = new ifx_PageData(); if (isset($_POST['value'])) { if ($PageData->set($Key, $_POST['value'])) { data('info_success', 'Updated'); } else { data('info_errors', 'Couldn\'t save that'); } $this->output->delete_cache('/'); } data('key', $Key); data('value', $PageData->get($Key)); $this->display('pagedata/edit'); }
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?> <div class="block-quote page-section"> <div class="row"> <div class="section-inner col-xs-10 col-xs-offset-1"> <p class="heading"><?php echo ifx_PageData::item('home_tagline'); ?> </p> <p class="block-text"><?php echo ifx_PageData::item('home_tagline_text'); ?> </p> <p class="block-logo"><img src="/assets/images/logo/handmade-2.png" /></p> </div> </div> </div> <div id="callouts" class="page-section"> <div class="row"> <h2 class="heading col-xs-12">How we work</h2> <?php foreach (mHomepageImage::active() as $HomepageImage) { ?> <div class="display-box col-xs-4"> <div class="head-image" style="background-image: url('<?php echo IMAGE_ROOT . $HomepageImage->filename; ?> ');"> <!---<img src="<?php
</div> </div> <div class="col-xs-4 quick-links"> <nav> <?php echo ifx_PageData::item('footer_morelinks'); ?> </nav> </div> </div> </div> <div class="page-section row"> <div class="section-inner col-xs-12 trailing-footer"> <img src="/assets/images/logo/spanner.png" /> <?php echo ifx_PageData::item('footer_tagline'); ?> </div> <div class="section-inner col-xs-12 footnote"> <p>2016 <?php echo COMPANY_NAME; ?> All Rights Reserved. Site by <a>Infizi Media</a></p> </div> </div> </div> </footer> </body> </html>