public function index() { $content = new View('admin/testimonials/install'); $content->embed_code = t_build::embed_code($this->owner->apikey, 'fake'); $content->embed_code_lite = t_build::embed_code($this->owner->apikey, 'fake', FALSE); $tstmls = new Testimonials_Controller($this->owner); $content->html = $tstmls->export_html(); $stylesheet = t_paths::css($this->owner->apikey) . '/' . $this->owner->tconfig->theme . '.css'; $content->css = file_exists($stylesheet) ? file_get_contents($stylesheet) : '/* no custom file */'; if (request::is_ajax()) { die($content); } $this->shell->content = $content; $this->shell->child_nav = array(array('main', '/admin/testimonials/install', 'Main Panel', '')); $this->shell->grandchild_nav = array(array('main', '/admin/testimonials/install', 'Main Panel', ''), array('help', '#help-page', '(help)', 'fb-help')); die($this->shell); }
public function index() { $content = new View("admin/testimonials/display"); $content->embed_code = t_build::embed_code($this->owner->apikey, NULL, FALSE); #$tstmls = new Testimonials_Controller($this->owner); #$content->testimonials_html = $tstmls->get_html(); $stylesheet = t_paths::css($this->owner->apikey) . '/' . $this->owner->tconfig->theme . '.css'; $stock = DOCROOT . 'static/css/testimonials/stock/' . $this->owner->tconfig->theme . '.css'; if (file_exists($stock) and !file_exists($stylesheet)) { copy($stock, $stylesheet); } $content->stylesheet = file_exists($stylesheet) ? file_get_contents($stylesheet) : '/* no custom file */'; $content->stock = file_exists(DOCROOT . 'static/css/testimonials/stock/' . $this->owner->tconfig->theme . '.css') ? file_get_contents(DOCROOT . 'static/css/testimonials/stock/' . $this->owner->tconfig->theme . '.css') : '/* no stock file */'; if (request::is_ajax()) { die($content); } $this->shell->content = $content; $this->shell->child_nav = array(array('main', '/admin/testimonials/display', 'Configure Layout', ''), array('tags', '/admin/testimonials/tags', 'Set Categories', '')); $this->shell->grandchild_nav = array(array('main', '/admin/testimonials/display', 'Main Panel', ''), array('css', '#css', 'Edit CSS', 'show-css'), array('help', '#help-page', '(help)', 'fb-help')); die($this->shell); }
echo t_build::embed_code(Kohana::config('core.apikey'), NULL, FALSE); ?> </div> <h2 class="home-header" style="margin-top:20px;">Benefits at a Glance</h2> <div class="demo-text left"> <h6>Installs in One Minute.</h6> <div> PlusPanda works like a widget. Just add a piece of custom code wherever you want your testimonials to appear and that's it! <br/><br/>Sample Code:<br/> <textarea style="width:99%; height:80px; border:1px solid #777; background:#ffffcc;font-size:0.9em"><?php echo t_build::embed_code('abcd', 'fake'); ?> </textarea> </div> <h6>Categorize Your Testimonials.</h6> <div> Specifying categories helps visitors to your website home in on use-cases specific to them. <br/><br/> A mother selling part-time from a yahoo store front would better identify with testimonials tagged "part-time ecommerce sales" as opposed to reading about how your product helped Oracle's internal IT deptartment. </div>