</div>
                                </div>
                                <!-- /.content -->
                            </div>
                            <!-- /#slideSetting -->

                            <div id="tabSettings" class="tabcontent">
                                <h3 class="title"> <i class="fa fa-toggle-on"> </i> Welcome Tab Settings </h3>
                                <!-- /.title -->

                                <div class="section">

                                        <?php 
global $main_db;
$posts = new posts();
$allTab = $posts->get_post_by('tab');
if (NULL != $allTab) {
    $i = 0;
    foreach ($allTab as $tab) {
        $i++;
        ?>
                                            <div class="fb-section update" id="update_<?php 
        echo $tab->id;
        ?>
">
                                                <div class="siteTabs">
                                                    <div class="form-group">
                                                        <div class="control">
                                                            <span class="trash-panel" data-ID="<?php 
        echo $tab->id;
        ?>
示例#2
0
function social_urls()
{
    $post = new posts();
    $socials = $post->get_post_by('social');
    $icons = $post->social_icons;
    for ($i = 0; $i < count($icons); $i++) {
        $data[$icons[$i]] = isset($socials[$i]) ? $icons[$i] == $socials[$i]->post_title ? $socials[$i]->post_content : '#' : '#';
    }
    return $data;
}
示例#3
0
<?php

/**
 * Advance template
 */
$post = new posts();
$advances = $post->get_post_by('advance');
if ($advances != NULL) {
    ?>
<div class="col-md-3 advantage">
    <p> <i class="fa fa-plus fa-1x"></i> <?php 
    echo isset($advances[0]) ? strtoupper($advances[0]->post_title) : 'Post Empty';
    ?>
 </p>
</div>
<div class="col-md-9 printbox">
    <p> <span class="txt"> <?php 
    echo isset($advances[1]) ? strtoupper($advances[1]->post_title) : '';
    ?>
 </span> <i class="fa fa-caret-down fa-2x"></i></p>
</div>
<div class="col-md-12 advantage-content">
    <div class="col-md-8 content-advantage-left">
        <div class="content">
            <?php 
    echo isset($advances[0]) ? $advances[0]->post_content : '';
    ?>
        </div>
    </div>
    <div class="col-md-4 content-advantage-right">
        <div class="content">
示例#4
0
        }
    } else {
        if ($post->insert_posts($data)) {
            $session->message("Your tab has been created!");
            safe_redirect(admin_url('new-post') . '?post=tab&id=' . $main_db->insert_id);
        } else {
            var_dump($main_db->last_query);
            exit;
        }
    }
}
$current_post = NULL;
if (isset($_GET['id'])) {
    $current_post = $post->get_post_by_id($_GET['id']);
}
$allPosts = $post->get_post_by('address');
?>

<div class="row main-content special">

    <div class="col-md-8 col-md-offset-1">
        <h3 class="title"> <i class="fa fa-toggle-on"></i> <?php 
echo isset($_GET['id']) ? 'Update Tab' : 'Create A New Tab';
?>
            <?php 
if (isset($_GET['id'])) {
    ?>
                <a class="control" href="<?php 
    echo admin_url('new-post');
    ?>
?post=tab"> <small>+ New </small></a>
示例#5
0
        }
    } else {
        if ($post->insert_posts($data)) {
            $session->message("Your social link has been created!");
            safe_redirect(admin_url('new-post') . '?post=social&id=' . $main_db->insert_id);
        } else {
            var_dump($main_db->last_query);
            exit;
        }
    }
}
$current_post = NULL;
if (isset($_GET['id'])) {
    $current_post = $post->get_post_by_id($_GET['id']);
}
$allPosts = $post->get_post_by('social');
?>

<div class="row main-content special">

    <div class="col-md-8 col-md-offset-1">
        <h3 class="title"> <i class="fa fa-toggle-on"></i> <?php 
echo isset($_GET['id']) ? 'Update Social' : 'Create A New Social Link';
?>
            <?php 
if (isset($_GET['id'])) {
    ?>
                <a class="control" href="<?php 
    echo admin_url('new-post');
    ?>
?post=social"> <small>+ New </small></a>
                                            <input type="file"   class="upload" name="files[]" multiple="multiple">
                                        </div>
                                    </form>
                                    <div id="progressContainer" class="hide">
                                        <div class="progress">
                                            <div class="progress-bar" role="progressbar" aria-valuenow="0"
                                                 aria-valuemin="0" aria-valuemax="100" style="width:0%">
                                                <span class="sr-only">0% Complete</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="filelist" class="upload_file_lists">

                                        <ul>
                                        <?php 
$slide_images = $post->get_post_by('slide');
if ($slide_images != NULL) {
    ?>
                                        <?php 
    foreach ($slide_images as $img) {
        ?>
                                            <li>
                                                <a href="#" data-id="<?php 
        echo $img->id;
        ?>
">
                                                    <span class="media_edit"> <i class="fa fa-edit"></i></span>
                                                    <!-- /.media_edit -->
                                                    <span class="media_trash"> <i class="fa fa-times"></i></span>
                                                    <img src="<?php 
        echo upload_dir() . $img->post_content;
示例#7
0
        }
    } else {
        if ($post->insert_posts($data)) {
            $session->message("Your tab has been created!");
            safe_redirect(admin_url('new-post') . '?post=advance&id=' . $main_db->insert_id);
        } else {
            var_dump($main_db->last_query);
            exit;
        }
    }
}
$current_post = NULL;
if (isset($_GET['id'])) {
    $current_post = $post->get_post_by_id($_GET['id']);
}
$allPosts = $post->get_post_by('advance');
?>

<div class="row main-content special">

    <div class="col-md-8 col-md-offset-1">
        <h3 class="title"> <i class="fa fa-toggle-on"></i> <?php 
echo isset($_GET['id']) ? 'Update Post' : 'Create A New Post';
?>
            <?php 
if (isset($_GET['id'])) {
    ?>
                <a class="control" href="<?php 
    echo admin_url('new-post');
    ?>
?post=advance"> <small>+ New </small></a>
<?php

/**
 * Home welcome tab
 */
$post = new posts();
$tabs = $post->get_post_by('tab');
if ($tabs != NULL) {
    ?>
<div class="col-md-3 col-xs-12 leftbar-tab">
        <ul class="tab_lists left-tab-list">
            <?php 
    $i = 0;
    foreach ($tabs as $tab) {
        $i++;
        ?>
            <li data-target="<?php 
        echo str_replace(' ', '_', $tab->post_title) . '_' . $i;
        ?>
"  class="<?php 
        echo $i == 1 ? 'active' : '';
        ?>
">  <?php 
        echo strtoupper($tab->post_title);
        ?>
 </li>
            <?php 
    }
    ?>
        </ul>
    </div>
示例#9
0
        }
    } else {
        if ($post->insert_posts($data)) {
            $session->message("Your tab has been created!");
            safe_redirect(admin_url('new-post') . '?post=tab&id=' . $main_db->insert_id);
        } else {
            var_dump($main_db->last_query);
            exit;
        }
    }
}
$current_post = NULL;
if (isset($_GET['id'])) {
    $current_post = $post->get_post_by_id($_GET['id']);
}
$allPosts = $post->get_post_by('tab');
?>

<div class="row main-content special">

    <div class="col-md-8 col-md-offset-1">
        <h3 class="title"> <i class="fa fa-toggle-on"></i> <?php 
echo isset($_GET['id']) ? 'Update Tab' : 'Create A New Tab';
?>
            <?php 
if (isset($_GET['id'])) {
    ?>
                <a class="control" href="<?php 
    echo admin_url('new-post');
    ?>
?post=tab"> <small>+ New </small></a>