Exemplo n.º 1
0
function contact_information()
{
    $contact = new Contact();
    $post = new posts();
    global $session, $main_db;
    $admin_mail = $post->get_single_post_by('sender_email');
    $sender = isset($admin_mail->post_content) ? $admin_mail->post_content : '*****@*****.**';
    if (isset($_POST['user_contact_form'])) {
        $data['u_name'] = $_POST['u_name'];
        $data['u_mail'] = $_POST['u_email'];
        $data['msg_type'] = $_POST['u_msg_type'];
        $data['comment'] = $_POST['u_comment'];
        $message = '<h3> A user try to contact you! </h3>';
        $message .= '<p>   Name : ' . $_POST['u_name'] . ' </p>';
        $message .= '<p> Email : ' . $_POST['u_email'] . ' </p>';
        $message .= '<p> Message Type: ' . $_POST['u_msg_type'] . ' </p>';
        $message .= '<p> Comment : ' . $_POST['u_comment'] . ' </p>';
        $contact->send_email($_POST['u_email'], 'User contact Information', $message, $sender);
        if ($contact->insert_contact($data)) {
            $session->message("Thank you for your contact! We will touch you very soon! ");
            safe_redirect(get_home_url());
        } else {
            echo $main_db->last_query;
            exit;
        }
    }
}
Exemplo n.º 2
0
 private function sender_email()
 {
     $post = new posts();
     $getEmail = $post->get_single_post_by('sender_email');
     if ($getEmail != NULL) {
         return $getEmail->post_content;
     }
     return '*****@*****.**';
 }
Exemplo n.º 3
0
<?php

global $session, $main_db;
$user = new User();
$post = new posts();
$p_user = new PublicUser();
$hotline = $post->get_single_post_by('hotline');
$logo = $post->get_single_post_by('logo');
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title> Ink City </title>
<!--    Twitter bootstrap -->
    <link rel="stylesheet" href="<?php 
echo get_stylesheet_files('bootstrap');
?>
">
     <link rel="stylesheet" href="<?php 
echo get_stylesheet_files('bootstrap-theme');
?>
">
<!--    Font Awesome -->
     <link rel="stylesheet" href="<?php 
echo get_stylesheet_files('font-awesome');
?>
">
Exemplo n.º 4
0
<?php

$post = new posts();
$logo = $post->get_single_post_by('footer_logo');
$socials = social_urls();
?>
<!-- Footer section -->

<footer class="container-fluid bg-red">
    <div class="container footer-padding">
        <div class="col-md-4 copyright">
            <p class="text-left">
                <a href="<?php 
echo get_home_url();
?>
">
                    <?php 
if (isset($logo->post_content)) {
    ?>
                        <img src="<?php 
    echo upload_dir() . $logo->post_content;
    ?>
" alt="">
                    <?php 
} else {
    ?>
                        <img src="<?php 
    echo get_stylesheet_uri('img');
    ?>
footer-logo.png" alt="">
                    <?php 
Exemplo n.º 5
0
<script type="text/javascript" src="<?php 
echo admin_stylesheet();
?>
js/drawonmaps_markers.js"></script>
<script type="text/javascript" src="<?php 
echo admin_stylesheet();
?>
js/drawonmaps.js"></script>
<script type="text/javascript" src="<?php 
echo admin_stylesheet();
?>
js/drawonmaps_map_display.js"></script>

<?php 
$post = new posts();
$footer_map = $post->get_single_post_by('contact');
$lat = '44.5403';
$lang = '-78.5463';
if ($footer_map != NULL) {
    $footer_map = explode('&', $footer_map->post_content);
    if (is_array($footer_map)) {
        $lat = $footer_map[1];
        $lang = $footer_map[0];
    }
}
/*
 * Get all map location
 * */
$map_obj = new SiteMaps();
$map_objects = $map_obj->getMapsObjects();
// get availble map objects for using
Exemplo n.º 6
0
                     <?php 
/*
 * Partner Slide
 * */
include 'templates/partner-slide.php';
?>
                </div>
            </div>
        </div>
    </div>
</section>

<section class="container-fluid bd-white section contact-section" id="contact">
    <div class="container">
        <?php 
$contact = $post->get_single_post_by('address');
?>
        <h3 class="title color-red text-center"> <?php 
echo isset($contact->post_title) ? strtoupper($contact->post_title) : 'CONTACT';
?>
 </h3>
        <div class="row">
            <div class="col-md-5">
                <div class="contact-form">
                    <address>
                        <?php 
echo isset($contact->post_content) ? $contact->post_content : 'Post your contact details';
?>
                    </address>

                    <form class="form-horizontal" id="send_contact" method="post">
Exemplo n.º 7
0
<?php

include 'header.php';
include 'sidebar.php';
$post = new posts();
$admin_email = $post->get_single_post_by('sender_email');
$location = $post->get_single_post_by('location');
$contact = $post->get_single_post_by('contact');
?>
    <!-- Page content -->
    <div id="page-content-wrapper">
        <!-- Keep all page content within the page-content inset div! -->
        <div class="page-content inset">
            <div class="row">
                <div class="col-md-12">
                    <h1 class="title gray"> Welcome To Admin Page</h1>
                    <div class="col-md-4">
                        <div class="main_panel">
                            <div class="panel-header">
                                <div class="controls">
                                    <a href="#" class="control-btn control-btn-info"> <i class="fa fa-plus"></i></a>
                                </div>
                                <!-- /.control -->
                                <h3 class="panel-title"> <i class="fa fa-envelope"></i> Email Setting </h3>
                            </div>
                            <div class="panel-body">
                                <p class="message-success color-success hide text-center"> </p>
                                <div class="panel-form">
                                    <div class="input-group">
                                        <input type="email" class="form-control" placeholder="Email ID" value="<?php 
echo isset($admin_email->post_content) ? $admin_email->post_content : '';
function check_hotline()
{
    global $main_db;
    $post = new posts();
    if (isset($_POST['action'])) {
        $data['post_content'] = $_POST['hotline'];
        $data['post_type'] = 'hotline';
        $hotline = $post->get_single_post_by('hotline');
        if ($hotline == NULL) {
            if ($post->insert_posts($data)) {
                echo '1';
            }
        } else {
            if ($post->update_post($data, array('id' => $hotline->id))) {
                echo '2';
            }
        }
    }
}
Exemplo n.º 9
0
                <h3 class="title gray"> <i class="fa fa-home fa-1x"></i> Setup Your Home Page </h3>
                <p class="message message-success"> <?php 
echo $session->message();
?>
 </p>
                <div class="display_tables">


                    <div class="row all_settings_metarial">

                        <div class="col-md-12">
                            <h3 class="title">Setup your home page </h3>
                            <div class="fb-section home-setting">
                                <h3 class="title"> Upload Website Logo <small> ( Upload new logo first delete it )</small></h3>
                                <?php 
$logo = $post->get_single_post_by('logo');
if ($logo == NULL) {
    ?>

                                <p class="logo_message color-red"></p>
                                <form enctype="multipart/form-data" class="upload_form" id="logo_form">
                                    <div class="fileUpload btn btn-primary">
                                        <span>Upload</span>
                                        <input type="file" class="upload" name="logo">
                                    </div>
                                </form>
                                <div id="logo_progress" 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%</span>
Exemplo n.º 10
0
<?php

/**
 * forget password page
 *
 */
include 'header.php';
$post = new posts();
$term = $post->get_single_post_by('terms');
?>

    <!-- Breadcrumb area -->
    <div class="container-fluid bg-red breadcrumb">
        <div class="container">
            <h3 class="breadcrumb-title"> <?php 
echo isset($term->post_title) ? strtoupper($term->post_title) : 'TERM & SERVICES';
?>
  </h3>
        </div>
    </div>


    <section class="container-fluid section bg-gray-img">
        <div class="container">
            <div class="term-main">
                <div class="term-title bg-gray-dark"> <h3 class="title"><?php 
echo isset($term->post_title) ? strtoupper($term->post_title) : 'TERM & SERVICES';
?>
 </h3> </div>
                <div class="term-body">
                    <?php 
Exemplo n.º 11
0
<?php

include 'header.php';
include 'sidebar.php';
global $session;
$post = new posts();
$current_post = $post->get_single_post_by('terms');
if (isset($_POST['submit']) || isset($_POST['update'])) {
    $data['post_content'] = $_POST['term_content'];
    $data['post_title'] = $_POST['term_title'];
    $data['post_type'] = 'terms';
    if (isset($_POST['update'])) {
        if ($post->update_post($data, array('id' => $current_post->id))) {
            $session->message('Term and service update successfull');
            safe_redirect(admin_url('terms'));
        }
    } else {
        if ($post->insert_posts($data)) {
            $session->message('Terms and services posts successfull! ');
            safe_redirect(admin_url('terms'));
        } else {
            $session->message($main_db->last_query);
            safe_redirect(admin_url('terms'));
        }
    }
}
?>
    <!-- Page content -->
    <div id="page-content-wrapper">
        <!-- Keep all page content within the page-content inset div! -->
        <div class="page-content inset">
Exemplo n.º 12
0
<?php

include 'header.php';
include 'sidebar.php';
global $session;
$post = new posts();
$current_post = $post->get_single_post_by('address');
if (isset($_POST['submit']) || isset($_POST['update'])) {
    $data['post_content'] = $_POST['address_content'];
    $data['post_title'] = $_POST['contact_title'];
    $data['post_type'] = 'address';
    if (isset($_POST['update'])) {
        if ($post->update_post($data, array('id' => $current_post->id))) {
            $session->message('Contact page update successfull');
            safe_redirect(admin_url('contact'));
        }
    } else {
        if ($post->insert_posts($data)) {
            $session->message('Address posts successfull! ');
            safe_redirect(admin_url('contact'));
        } else {
            $session->message($main_db->last_query);
            safe_redirect(admin_url('contact'));
        }
    }
}
?>
    <!-- Page content -->
    <div id="page-content-wrapper">
        <!-- Keep all page content within the page-content inset div! -->
        <div class="page-content inset">