Пример #1
0
<?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'];
    }
Пример #2
0
<?php

add_js_jquery("\$('select').chosen(); ", 'assets/js/chosen.jquery.min.js');
add_css_minify('assets/css/chosen.css');
?>
<table class="condensed-table zebra-striped">
    <thead>
    <tr>
        <th>
            <?php 
echo form_open($this->uri->uri_string(), 'method="get"');
?>
            <?php 
echo form_dropdown('status', array('' => 'Hepsi', 'publish' => 'Yayında', 'draft' => 'Taslak'), set_value('status', isset($status) ? $status : ''), 'id="status"');
?>
            <?php 
echo form_input('q', set_value('q', isset($title) ? $title : ''), 'class="span4" placeholder="Ara"');
?>
            <input type="submit" value="Ara" class="btn primary">
            <?php 
echo form_close();
?>
        </th>
        <th>Durum</th>
        <th>Tarih</th>
        <th class="action">İşlem</th>
    </tr>
    </thead>
    <tbody>
    <?php 
if (count($posts)) {
Пример #3
0
<?php

$this->template->add_meta(array('name' => 'description', 'content' => $this->template->get_description()));
$this->template->add_meta(array('name' => 'keywords', 'content' => $this->template->get_keywords()));
if (get_option('google_verify') != '') {
    $this->template->add_meta(array('name' => 'google-site-verification', 'content' => get_option('google_verify')));
}
$this->load->helper('category/category');
$this->template->add_more(link_tag('http://feeds.feedburner.com/' . get_option('feedburner_username'), 'alternate', 'application/rss+xml', 'RSS Feed'));
add_css_minify('styles.css');
add_js_jquery('', 'themes/default/js/default.js');
if (ENVIRONMENT == 'production') {
    analytics_code();
}
Пример #4
0
<?php

$content = parse_smileys($content, site_url() . 'assets/img/smilies/');
if (strpos($content, '<code class="') !== FALSE) {
    add_css_minify('assets/css/github.css');
    add_js_jquery('
  hljs.tabReplace = "    ";
  hljs.initHighlightingOnLoad();', 'assets/js/highlight.pack.js', 'link');
}
?>
<h1><?php 
echo $title;
?>
</h1>

<div class="content">
    <?php 
if (isset($image)) {
    ?>
    <?php 
    echo post_image($image, $created_at->sec, $title);
    ?>
    <?php 
}
?>
    <?php 
echo $content;
?>
    <?php 
$last_update = $updated_at->sec != '' ? $updated_at->sec : $created_at->sec;
?>