本文整理汇总了PHP中theme_img函数的典型用法代码示例。如果您正苦于以下问题:PHP theme_img函数的具体用法?PHP theme_img怎么用?PHP theme_img使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了theme_img函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct($content)
{
//set the content appropriately
$this->content = $content;
$loader = new \Twig_Loader_String();
$twig = new \Twig_Environment($loader);
//baseURL & siteURL filter
$filter = new \Twig_SimpleFilter('*URL', function ($name, $string) {
$f = $name . '_url';
return $f($string);
});
$twig->addFilter($filter);
//themeImg filter
$filter = new \Twig_SimpleFilter('themeImg', function ($string) {
return theme_img($string);
});
$twig->addFilter($filter);
foreach ($GLOBALS['themeShortcodes'] as $shortcode) {
$function = new \Twig_SimpleFunction($shortcode['shortcode'], function () use($shortcode) {
if (is_array($shortcode['method'])) {
$class = new $shortcode['method'][0]();
return call_user_func_array([$class, $shortcode['method'][1]], func_get_args());
} else {
return call_user_func_array($shortcode['method'], func_get_args());
}
});
$twig->addFunction($function);
}
//render the subject and content to a variable
$this->content = $twig->render($this->content);
}
示例2: site_url
</div>
<tr>
<td>Belum terdaftar? <a href="<?php
echo site_url('home/pendaftaran_mitra/');
?>
">Daftar disini</a>
</td>
</tr>
</div>
</li>
</ul>
<ul class="form-kanan">
<li class="quest">
<div>
Pertanyaan Terkait<br/>
1. Apa itu Affiliate System<br/>
2. Berapa Komisi yang akan didapatkan member Affiliate apabila telah berhasil menjual prdouk <b>kueibuhasan</b>.com<br/>
3. Kapan Komisi Affiliate akan diberikan<br/>
4. Berapa besar minimal komisi pembayaran yang dapat dipilih oleh member Affiliate<br/>
5. Apa saja metode pembayaran komisi Affiliate yang disediakan di <b>kueibuhasan</b>.com<br/><br/>
<img src="<?php
echo theme_img('affiliate.png', false);
?>
" style="width:60%; height:60%">
</div>
</li>
</ul>
</div>
示例3: foreach
//echo base_url("assets/img/ajax_loader.gif");
?>
"></span>
<span style="float:right"><b style="color: #e32322;font-size:14px;font-family: 'Lato',sans-serif">25 CLASSES</b></span>
</div-->
<?php
foreach ($courses_row1->result() as $courses) {
$entrenadorNombre = $courses->firstname;
$entrenadorApellido = $courses->lastname;
$fecha = $courses->data;
$date = str_replace(" ", ".", $fecha);
?>
<div class="col-md-4 classbox" id="groupal">
<?php
$places_left = 1;
$photo = theme_img('no_picture.png', lang('no_image_available'));
$photoUrl = theme_url('assets/img/no_picture.png');
if ($courses->images != "false") {
$image1 = explode("{", $courses->images);
$image2 = explode(":", $image1[2]);
$image3 = explode("\"", $image2[1]);
$photo = '<img src="' . base_url('uploads/images/thumbnails/' . $image3[1]) . '" style="width:auto; height:150px;"/>';
$photoUrl = base_url('uploads/images/full/' . $image3[1]);
}
?>
<a data-toggle="modal" data-target="#modal_description_class" onclick="descriptionClass(<?php
echo $courses->id_course;
?>
);" class="thumbnail linkThumb" style="border: none;cursor: pointer;">
<?php
echo $photo;
示例4: search_map
function search_map()
{
$this->load->helper('form');
$param = array('SOURCE' => $this->input->post('source', true), 'DESTINATION' => $this->input->post('destination', true), 'fromlatlng' => $this->input->post('formlatlng', true), 'tolatlng' => $this->input->post('tolatlng', true), 'frequency' => date('w', strtotime(str_replace("/", "-", $this->input->get('journey_date', true)))), 'date' => $this->input->post('journey_date', true), 'vechiclecategory' => $this->input->post('VECHICATEGORY_FILTER', true), 'vechicletype' => $this->input->post('VECHITYPE_FILTER', true), 'filter' => $this->input->post('FILTER', true), 'amenities' => $this->input->post('AMENITIES_FILTER', true), 'traveltype' => $this->input->post('TRAVELTYPE_FILTER', true), 'frquencytype' => $this->input->post('FREQUENCY_FILTER', true), 'allowtype' => $this->input->post('TRAVELALLOW_FILTER', true), 'return' => $this->input->post('Return_Type', true));
$data['vechicletype'] = $this->vechicle_model->getvechicletype_list();
$data['selparam'] = $param;
if (!empty($param['fromlatlng']) && !empty($param['tolatlng']) && !empty($param['date'])) {
$data = $this->search_model->getSearchResults($param, $offset = 'null', $data, $map_view = 1);
$data = $this->search_model->SearchResults_count($param, $data);
if ($data['count'] != 0) {
$this->load->library('googlemaps');
$config['center'] = $param['fromlatlng'];
$config['zoom'] = '10';
$this->googlemaps->initialize($config);
if ($data['map_details']) {
if ($data['search_results']) {
foreach ($data['search_results'] as $result) {
$marker = array();
$marker['position'] = $data['map_details']['latlng_' . $result['trip_id']];
$marker['infowindow_content'] = $data['map_details']['source_' . $result['trip_id']];
$marker['icon'] = theme_img('map-marker-ico.png');
$this->googlemaps->add_marker($marker);
}
}
}
$data['map'] = $this->googlemaps->create_map();
$this->load->view('search_map', $data);
} else {
echo false;
}
}
}
示例5: theme_img
<div id="wrapper">
<div id="content">
<?php
$this->load->view('header_menu');
?>
<div class="sliderbg">
<div class="pages_container">
<?php
echo $profile['service'];
?>
<div class="clearfix"></div>
<div class="scrolltop radius20">
<a
onClick="jQuery('html, body').animate( { scrollTop: 0 }, 'slow' );"
href="javascript:void(0);"><img
src="<?php
echo theme_img('/icons/top.png');
?>
" alt="Go on top"
title="Go on top" />
</a>
</div>
</div>
<!--End of page container-->
</div>
</div>
</div>
示例6: theme_img
</button>
<button type="button" class="btn btn-cart">
Add to cart
<i class="fa fa-shopping-cart"></i>
</button>
</div>
</div>
</div>
</div>
<!-- Product #3 Ends -->
<!-- Product #4 Starts -->
<div class="col-md-3 col-sm-6">
<div class="product-col">
<div class="image">
<img src="<?php
echo theme_img('product-images/5.jpg');
?>
" alt="product" class="img-responsive" />
</div>
<div class="caption">
<h4><a href="product.html">Fashion Garments</a></h4>
<div class="description">
We are so lucky living in such a wonderful time. Our almost unlimited ...
</div>
<div class="price">
<span class="price-new">$199.50</span>
<span class="price-old">$249.50</span>
</div>
<div class="cart-button button-group">
<button type="button" title="Wishlist" class="btn btn-wishlist">
<i class="fa fa-heart"></i>
示例7: theme_img
echo $error;
?>
</div>
<?php
}
?>
</div>
<div class="col-xs-12">
<div id="login-box">
<div id="login-box-holder">
<div class="row">
<div class="col-xs-12">
<header id="login-header">
<div id="login-logo">
<img src="<?php
echo theme_img('logo.png');
?>
" alt=""/>
</div>
</header>
<div id="login-box-inner" class="with-heading">
<h4>Forgot your password?</h4>
<div id="resend">
<p>
Enter your email address to recover your password.
</p>
<form role="form" id="resendForm">
<div id="resendStatus">
</div>
示例8: base_url
<a href="<?php
echo base_url('addtrip/delete/' . $trip['trip_id']);
?>
" class="red-bg"> <img src="<?php
echo theme_img('cancel-ico.png');
?>
"> <?php
echo lang('delete_all_trips');
?>
</a>
<a href="<?php
echo base_url('addtrip/form/' . $trip['trip_id']);
?>
"> <img src="<?php
echo theme_img('edit-ico.png');
?>
"> Edit trips </a>
</div>
</div>
</div>
<?php
$i++;
}
}
?>
<!-- Ena Main Trip -->
</div>
</div>
示例9: form_open
<?php
include 'header.php';
?>
<?php
echo form_open('cart/giftcard');
?>
<div class="row" style="margin-top:20px;">
<div class="span4">
<div id="primary-img">
<?php
echo theme_img('giftcard.jpg', lang('giftcard'));
?>
</div>
</div>
<div class="span8">
<div class="row">
<div class="span8">
<h2 style="font-weight:normal"><?php
echo lang('giftcard');
?>
</h2>
</div>
</div>
<?php
if (is_array($preset_values)) {
?>
<div class="row">
<div class="span8">
示例10: date
<div id="kemitraan">
<ul class="form-kiri2">
<li class="box_content">
<div class="space_blog">
<div class="blog">
<div class="box_news">
<div class="isi">
<div class="wrap_author">
<p>by kueibuhasan| <?php
echo $newDate = date("M d, Y", strtotime($artikel->date_input));
?>
| kueibuhasan Tips</p>
</div>
<div align="center">
<img src="<?php
echo theme_img('Blog_03.png', false);
?>
">
</div>
<?php
echo $artikel->content;
?>
</div>
</div>
</div>
</div>
</div>
</li>
</ul>
示例11: foreach
?>
</option>
</select>
</div>
<div style="float:left;"><?php
echo $this->pagination->create_links();
?>
</div>
<br style="clear:both;"/>
<ul class="thumbnails category_container">
<?php
foreach ($products as $product) {
?>
<li class="span3 product">
<?php
$photo = !empty($product->eelly_thumb_img) ? '<img src="' . $product->eelly_thumb_img . '" alt="' . $product->seo_title . '"/>' : theme_img('no_picture.png', lang('no_image_available'));
$product->images = array_values($product->images);
if (!empty($product->images[0])) {
$primary = $product->images[0];
foreach ($product->images as $photo) {
if (isset($photo->primary)) {
$primary = $photo;
}
}
$photo = '<img src="' . base_url('uploads/images/thumbnails/' . $primary->filename) . '" alt="' . $product->seo_title . '"/>';
}
?>
<a class="thumbnail" href="<?php
echo site_url(implode('/', $base_url) . '/' . $product->slug);
?>
">
示例12: theme_js
});
});
</script>
<?php
echo theme_js('jquery.wallform.js', true);
?>
<div id="nav-col">
<section id="col-left" class="col-left-nano">
<div id="col-left-inner" class="col-left-nano-content">
<div id="user-left-box" class="clearfix hidden-sm hidden-xs dropdown profile2-dropdown">
<div id="ProfilePic">
<img alt="" id="previousImage" src="<?php
if (!empty($admin_img['admin_img'])) {
echo admin_profile_img($admin_img['admin_img']);
} else {
echo theme_img('default.png');
}
?>
" />
</div>
<div class="user-box">
<span class="name">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Welcome <?php
echo $name;
?>
<i class="fa fa-angle-down"></i>
</a>
<ul class="dropdown-menu">
<li><a href="#" id="profile_pic"><i class="fa fa-user"></i>Edit Photo</a></li>
示例13: theme_img
</li>
<li>
<img src="<?php
echo theme_img('payment-icon/visa.png');
?>
" alt="PaymentGateway" />
</li>
<li>
<img src="<?php
echo theme_img('payment-icon/mastercard.png');
?>
" alt="PaymentGateway" />
</li>
<li>
<img src="<?php
echo theme_img('payment-icon/americanexpress.png');
?>
" alt="PaymentGateway" />
</li>
</ul>-->
<!-- Payment Gateway Links Ends -->
</div>
<!-- Container Ends -->
</div>
<!-- Copyright Area Ends -->
</footer>
<!-- Footer Section Ends -->
<script>
setInterval(function(){
resizeCategories();
}, 200);
示例14: theme_img
<ul>
<li align="center">
<img src="<?php
echo theme_img('Sistem-Pengiriman.png', false);
?>
">
</li>
<li class="sistem_pengiriman">
<p>
Berdasarkan ilustrasi diatas, sehingga sistem pengiriman produk yang disediakan di qplasa.com dibagi menjadi 3 poin utama, diantaranya adalah proses check out dari produk yang dipesan, setelah itu proses 'packaging' dan baru kemudian proses pengiriman produk pesanan ke alamat Customer.
</p><br>
<p>
Kami bekerja sama dengan TIKI dan JNE selaku salah satu layanan pengiriman barang yang terpercaya di Indonesia untuk mengirimkan produk ke alamat rumah Anda.
</p><br>
<p>
<img src="<?php
echo theme_img('tiki.png', false);
?>
">
<img src="<?php
echo theme_img('jne.png', false);
?>
">
</p><br>
<p>
Silahkan Anda gunakan layanan Calculator Shipping yang telah kami sediakan untuk mengetahui berapa biaya perkiraan pengiriman produk yang dipesan ke alamat rumah Anda. <div class="merah">Klik disini untuk mengakses halaman Calculator </div>
</p><br>
</li>
</ul>
</div>
</div>
示例15: theme_img
<?php
}
?>
</div>
</div>
<div class="col-nest">
<div class="col" data-cols="2/5" data-medium-cols="2/5">
<div class="productImg">
<!--<img src="http://dev.gonline.com/themes/default/assets/img/pic_generator.png" alt="No Image Available">-->
<?php
if ($product->primary_category == 1 || $product->primary_category == 4) {
$photo = theme_img('pic_generator.png', lang('no_image_available'));
}
if ($product->primary_category == 2) {
$photo = theme_img('pic_alternator.png', lang('no_image_available'));
}
if (!empty($product->images[0])) {
foreach ($product->images as $photo) {
if (isset($photo['primary'])) {
$primary = $photo;
}
}
if (!isset($primary)) {
$tmp = $product->images;
//duplicate the array so we don't lose it.
$primary = array_shift($tmp);
}
$photo = '<img src="' . base_url('uploads/images/full/' . $primary['filename']) . '" alt="' . $product->seo_title . '" data-caption="' . htmlentities(nl2br($primary['caption'])) . '"/>';
}
echo $photo;