예제 #1
0
<?php

$redis_functions = new Redisfunctions();
if (!isset($meta_title)) {
    $meta_title = $redis_functions->get_site_setting('SITE_TITLE');
}
if (!isset($meta_keywords)) {
    $meta_keywords = $redis_functions->get_site_setting('SEO_KEYWORDS');
}
if (!isset($meta_description)) {
    $meta_description = $redis_functions->get_site_setting('SEO_DESCRIPTION');
}
if (!isset($meta_logo_image)) {
    $meta_logo_image = IMAGES_PATH . "/logo.jpg";
}
//clearstatcache();
//$this->output->set_header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
//$this->output->set_header('Last-Modified:' . gmdate('D, d M Y H:i:s') . 'GMT');
//$this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate');
//$this->output->set_header('Cache-Control: post-check=0, pre-check=0', false);
//$this->output->set_header('Pragma: no-cache');
//    prd($meta_logo_image);
$controller = $this->router->fetch_class();
$action = $this->router->fetch_method();
$path = $controller . "/" . $action;
?>
<!DOCTYPE html>
<!--[if lt IE 8]>      <html class="no-js lt-ie10 lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9]>         <html class="no-js lt-ie10"> <![endif]-->
<!--[if gt IE 8]><!-->
예제 #2
0
    public function invoice_template($invoice_data_array)
    {
        $email_subject = 'Payment confirmed #' . $invoice_data_array['payment_reference_number'];
        $redis_functions = new Redisfunctions();
        $str = '<!doctype html>
                    <html>
                    <head>
                        <meta charset="utf-8">
                        <title>A simple, clean, and responsive HTML invoice template</title>

                        <style>
                        .invoice-box{
                            max-width:800px;
                            margin:auto;
                            padding:30px;
                            border:1px solid #eee;
                            box-shadow:0 0 10px rgba(0, 0, 0, .15);
                            font-size:16px;
                            line-height:24px;
                            font-family:"Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
                            color:#555;
                        }

                        .invoice-box table{
                            width:100%;
                            line-height:inherit;
                            text-align:left;
                        }

                        .invoice-box table td{
                            padding:5px;
                            vertical-align:top;
                        }

                        .invoice-box table tr td:nth-child(2){
                            text-align:right;
                        }

                        .invoice-box table tr.top table td{
                            padding-bottom:20px;
                        }

                        .invoice-box table tr.top table td.title{
                            font-size:45px;
                            line-height:45px;
                            color:#333;
                        }

                        .invoice-box table tr.information table td{
                            padding-bottom:40px;
                        }

                        .invoice-box table tr.heading td{
                            background:#eee;
                            border-bottom:1px solid #ddd;
                            font-weight:bold;
                        }

                        .invoice-box table tr.details td{
                            padding-bottom:20px;
                        }

                        .invoice-box table tr.item td{
                            border-bottom:1px solid #eee;
                        }

                        .invoice-box table tr.item.last td{
                            border-bottom:none;
                        }

                        .invoice-box table tr.total td:nth-child(2){
                            border-top:2px solid #eee;
                            font-weight:bold;
                        }

                        @media only screen and (max-width: 600px) {
                            .invoice-box table tr.top table td{
                                width:100%;
                                display:block;
                                text-align:center;
                            }

                            .invoice-box table tr.information table td{
                                width:100%;
                                display:block;
                                text-align:center;
                            }
                        }
                        </style>
                    </head>

                    <body>
                        <div class="invoice-box">
                            <table cellpadding="0" cellspacing="0">
                                <tr class="top">
                                    <td colspan="2">
                                        <table>
                                            <tr>
                                                <td class="title"><img src="' . IMAGES_PATH . '/logo.png" style="width:100%; max-width:300px;"></td>

                                                <td>
                                                    Invoice #: ' . $invoice_data_array['payment_reference_number'] . '<br>
                                                    Created: ' . $invoice_data_array['payment_created_on'] . '
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>

                                <tr class="information">
                                    <td colspan="2">
                                        <table>
                                            <tr>
                                                <td>' . $redis_functions->get_site_setting('SITE_NAME') . '</td>
                                                <td>' . stripslashes($invoice_data_array['payer_user_fullname']) . '<br>' . $invoice_data_array['payer_user_email'] . '</td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>

                                <tr class="heading">
                                    <td>Payment Method</td>
                                    <td>Transaction #</td>
                                </tr>

                                <tr class="details">
                                    <td>Paypal</td>
                                    <td>' . $invoice_data_array['payment_txn_id'] . '</td>
                                </tr>

                                <tr class="heading">
                                    <td>
                                        Trip to feature
                                    </td>

                                    <td>
                                        Price
                                    </td>
                                </tr>

                                <tr class="item">
                                    <td>' . stripslashes($invoice_data_array['post_title']) . ' <small>(' . $invoice_data_array['pfm_title'] . ')</small></td>
                                    <td>' . get_currency_symbol($invoice_data_array['payment_currency']) . number_format($invoice_data_array['payment_amount'], 2) . '</td>
                                </tr>

                                <tr class="total">
                                    <td></td>
                                    <td>Total: ' . get_currency_symbol($invoice_data_array['payment_currency']) . number_format($invoice_data_array['payment_amount'], 2) . '</td>
                                </tr>
                            </table>
                        </div>
                    </body>
                    </html>';
        return array('email_subject' => $email_subject, 'email_message' => $str);
    }
예제 #3
0
" onclick="open_authorize_popup();">Login</a></li>
                    <?php 
    }
}
?>
        </ul>
    </nav>	
</div>
<!-- \\ mobile menu \\ -->

<div class="wrapper-padding">
    <div class="header-logo"><a href="<?php 
echo base_url();
?>
"><img alt="<?php 
echo $redis_functions->get_site_setting('SITE_NAME');
?>
" src="<?php 
echo IMAGES_PATH;
?>
/logo.png" /></a></div>
    <div class="header-right">
        <div class="hdr-srch">
            <a href="#" class="hdr-srch-btn"></a>
        </div>
        <div class="hdr-srch-overlay">
            <div class="hdr-srch-overlay-a">
                <form action="<?php 
echo base_url('trip/search/query');
?>
">
예제 #4
0
                        </div>
                        <?php 
        $i++;
        if ($i > 4) {
            break;
        }
    }
}
?>
            </div>
        </div>
        <div class="section">
            <div class="footer-lbl">Facebook Page</div>
            <div class="twitter-wiget">
                <div class="fb-page" data-href="<?php 
echo $redis_functions->get_site_setting('FACEBOOK_SOCIAL_LINK');
?>
" data-tabs="timeline" data-height="280" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><div class="fb-xfbml-parse-ignore"><blockquote cite="<?php 
echo $redis_functions->get_site_setting('FACEBOOK_SOCIAL_LINK');
?>
"><a href="<?php 
echo $redis_functions->get_site_setting('FACEBOOK_SOCIAL_LINK');
?>
"><?php 
echo $redis_functions->get_site_setting('SITE_NAME');
?>
</a></blockquote></div></div>
            </div>
        </div>
        <div class="section">
            <div class="footer-lbl">Company</div>