Пример #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');
echo form_open_multipart($this->uri->uri_string(), array('class' => 'yform full'));
echo form_item('title', 'Sayfa başlığı', 'input', array('value' => set_value('title', isset($title) ? $title : '')));
echo form_item('content', 'Sayfa içeriği', 'textarea', array('rows' => 50, 'value' => set_value('content', isset($content) ? $content : '')));
echo form_item('meta_title', 'Meta title', 'input', array('value' => set_value('meta_title', isset($meta_title) ? $meta_title : '')));
echo form_item('meta_description', 'Meta description', 'textarea', array('rows' => 4, 'value' => set_value('meta_description', isset($meta_description) ? $meta_description : '')));
echo form_item('meta_keyword', 'Anahtar kelimeler', 'textarea', array('rows' => 4, 'value' => set_value('meta_keyword', isset($meta_keyword) ? $meta_keyword : '')));
?>
<div class="actions">
    <button type="submit" class="btn primary">Gönder</button>
</div>
<?php 
echo form_close();
Пример #2
0
<?php

add_js_jquery('
$(function() {
        $("#sort tbody").sortable({
            opacity: 0.6,
            cursor: "move",
            helper: fixHelper
        });
        var fixHelper = function(e, ui) {
        ui.children().each(function() {$(this).width($(this).width());});
        return ui;
    };
    });
', 'assets/js/jquery.ui.js');
$access_level = array('0' => 'Herkes', '1' => 'Üye Olmayanlar', '2' => 'Üyeler', '3' => 'Yöneticiler');
$target = array('' => 'Aynı Sayfada', 'blank' => 'Yeni Sayfada');
echo form_open_multipart($this->uri->uri_string());
echo form_item('title', 'Menü Adı', 'input', array('value' => set_value('title', isset($title) ? $title : '')));
echo form_item('slug', 'Menü Etiketi', 'input', array('value' => set_value('slug', isset($slug) ? $slug : '')));
?>
<table class="zebra-striped" id="sort">
    <thead>
        <tr>
            <th>#</th>
            <th>Başlık</th>
            <th>Bağlantı</th>
            <th>Kimler Görebilir?</th>
            <th>Açılma Şekli</th>
            <th><a class="btn add" onclick="add_row();">Ekle</a></th>
        </tr>
Пример #3
0
<?php

add_js_jquery('
$(function() {
        $("#sort-category tbody").sortable({
            opacity: 0.6,
            cursor: "move",
            helper: fixHelper,
            update: function() {
                var order = $(this).sortable("serialize");
                console.log(order);
                $.get("admin/category/sort", $(this).sortable("serialize") );
            }
        });
        var fixHelper = function(e, ui) {
        ui.children().each(function() {$(this).width($(this).width());});
        return ui;
    };
    });
', 'assets/js/jquery.ui.js');
?>
<table class="condensed-table zebra-striped" id="sort-category">
    <thead>
        <tr>
            <th>#</th>
            <th>Kategori</th>
            <th class="action">İşlem </th>
        </tr>
    </thead>
    <tbody>
        <?php 
Пример #4
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'];
    }
Пример #5
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();
}
Пример #6
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;
?>
Пример #7
0
<?php

$item_size = array(5 => 5, 10 => 10, 15 => 15, 20 => 20, 50 => 50);
add_js_jquery('$(".tabs").tabs();', 'js/bootstrap-tabs.js');
echo validation_errors('<div class="error">', '</div>');
echo form_open($this->uri->uri_string());
?>
<ul class="tabs">
    <li class="active"><a href="#site">Site Ayarları</a></li>
    <li><a href="#seo">SEO Ayarları</a></li>
    <li><a href="#other">Diğer</a></li>
</ul>           
<div class="tab-content">
    <div id="site" class="tab-pane active">
        <?php 
echo form_item('site_name', 'Site Adı', 'input', array('value' => set_value('site_name', get_option('site_name'))));
?>
        <?php 
echo form_item('site_email', 'E-Posta Adresi', 'input', array('value' => set_value('site_email', get_option('site_email'))));
?>
        <div class="clearfix">
            <?php 
echo form_label('Sayfa başına öğe sayısı', 'per_page');
?>
            <div class="input">
                <?php 
echo form_dropdown('per_page', $item_size, set_value('per_page', get_option('per_page')), 'id="per_page"');
?>
            </div>
        </div>
        <div class="clearfix">
Пример #8
0
                        <?php 
    echo form_checkbox('permissions[' . $perm . ']', 1, isset($permissions[$perm]) ? TRUE : FALSE, 'class="module-role"' . $disabled);
    ?>
                        <span><?php 
    echo $module['module_name'];
    ?>
</span>
                    </label>
                </li>
            <?php 
}
?>
        </ul>
    </div>
</div>
<div class="actions">
    <button type="submit" class="btn primary">Gönder</button>
</div>
<?php 
echo form_close();
echo add_js_jquery('$("#check-all").live("click", function () {
        var all = $(this);
        all.closest("ul").find(".module-role").each(function () {
            if (all.is(":checked")) {
                $(this).attr("disabled", true);
            } else if ( ! all.is(":checked")) {
                $(this).attr("disabled", false);
            }
            
        });
    });');