public function view($view, $data = array(), $true = TRUE) { if ($true) { $this->ci->load->vars($data); } $this->view = $this->_find_view($view, $data); if ($this->ci->input->is_ajax_request()) { $this->ci->session->keep_all_flashdata(); } else { $messages = $this->ci->session->flashdata('messages'); if (is_array($messages) && count($messages)) { $_messages = array(); foreach ($messages as $message) { $_messages[] = '<div class="alert-message ' . $message['type'] . '" data-alert="alert"><a class="close">×</a>' . $message['message'] . '</div>'; } $this->view = implode("\n", $_messages) . $this->view; add_js_link('js/bootstrap-alerts.js'); } } if (file_exists($this->theme_path . $this->theme . '/views/' . $this->ci->module . '/layout.php')) { $this->view = $this->_load_view($this->theme_path . $this->theme . '/views/' . $this->ci->module . '/layout', array('content' => $this->view)); } elseif (file_exists(APPPATH . 'modules/' . $this->ci->module . '/views/layout.php')) { $this->view = $this->ci->load->view('layout', array('content' => $this->view), TRUE); } return $this; }
<?php $content = parse_smileys($content, site_url() . 'assets/img/smilies/'); ?> <h1><?php echo $title; ?> </h1> <div class="content"> <?php echo $content; ?> </div> <div class="page-share"> <div> <g:plusone size="tall"></g:plusone> <a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="navruzm" data-lang="tr">Tweet</a> <?php add_js_link('//apis.google.com/js/plusone.js'); ?> <?php add_js_link('//platform.twitter.com/widgets.js'); ?> </div> </div>
<?php add_js_jquery('CKEDITOR.replace("content"); CKEDITOR.instances["content"].on("instanceReady", function(){ this.document.on("keyup", function(){CKEDITOR.instances.content.updateElement();}); this.document.on("paste", function(){CKEDITOR.instances.content.updateElement();}); }); ', 'assets/ckeditor/ckeditor.js'); add_js_jquery("\$('#tags').tagsInput({\n\tautocomplete_url:'admin/post/get_tags','width':'530px','height':'60px'\n});", 'assets/js/jquery.tagsinput.min.js'); add_js_jquery("\$('select').chosen(); ", 'assets/js/chosen.jquery.min.js'); add_css_minify('assets/css/chosen.css'); add_js_link('assets/js/jquery.ui.js', 'ready'); add_css_minify('assets/css/jquery.tagsinput.css'); add_css_minify('assets/css/aristo.css'); $_categories = array(); if (isset($all_categories)) { foreach ($all_categories as $category) { $_categories[(string) $category['_id']] = $category['title']; } } $current_categories = array(); if (isset($categories)) { foreach ($categories as $category) { $current_categories[] = (string) $category; } } $current_tags = array(); if (isset($tags)) { foreach ($tags as $tag) { $current_tags[] = (string) $tag['tag']; }
<span><?php echo $comment['author_name']; ?> </span> <?php } ?> </cite> <div><?php echo $comment['message']; ?> </div> </li> <?php } ?> </ul> </div> <?php } ?> </div> <?php add_js_inline("\nfunction disqus_config() {\n this.callbacks.onNewComment = [function(comment) {\n \$.get('" . site_url('post/sync?id=' . $_id . '&ident=' . $disqus_identifier) . "');\n }];\n}\nvar disqus_shortname = '" . get_option('disqus') . "';\nvar disqus_identifier = '" . $disqus_identifier . "';\nvar disqus_url = '" . site_url($slug) . "';", 'before'); add_js_link('//' . get_option('disqus') . '.disqus.com/embed.js'); ?> <a href="http://disqus.com" class="dsq-brlink" rel="nofollow">blog comments powered by <span class="logo-disqus">Disqus</span></a> <?php }