本文整理汇总了PHP中theme_url函数的典型用法代码示例。如果您正苦于以下问题:PHP theme_url函数的具体用法?PHP theme_url怎么用?PHP theme_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了theme_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: send_format_template
function send_format_template($template_key, $params = array(), $toadmin = '')
{
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html;charset=utf-8\n";
$headers .= "From: " . $params['{{sender_email}}'];
$ci =& get_instance();
$ci->load->library('email');
$contentTypeModel = $ci->load->model('content/content_types_model');
$contentType = $contentTypeModel->get_content_type_by_short_code('email_templates');
$formatedHtml = $contentType->layout;
$formatedHtml = str_replace("{{theme_url}}", theme_url(), $formatedHtml);
$formatedHtml = str_replace("{{site_url}}", site_url(), $formatedHtml);
$entryModel = $ci->load->model('content/entries_data_model');
$entryData = $entryModel->get_data_type_by_entry($template_key);
$entryHtml = $entryData->field_id_11;
if ($params) {
foreach ($params as $key => $value) {
$entryHtml = str_replace($key, $value, $entryHtml);
}
}
$formatedHtml = str_replace("{{template_content}}", $entryHtml, $formatedHtml);
$ci->email->from($params['{{sender_email}}'], $params['{{sender_name}}']);
$ci->email->to($params['{{reciever_email}}']);
if ($toadmin) {
$ci->email->cc($params['{{sender_email}}']);
}
$ci->email->subject($entryData->field_id_10);
$ci->email->set_mailtype("html");
$ci->email->message($formatedHtml);
// $ci->email->send();
// mail($params['{{reciever_email}}'], $entryData->field_id_10, $formatedHtml,$headers,"-f" . $params['{{sender_email}}']);
mail($params['{{reciever_email}}'], $entryData->field_id_10, $formatedHtml, $headers);
}
示例2: _parse
/**
* Parse
*
* Parses short tags contained in the specified template,
* replacing them with the data in the second param
*
* @param string
* @param array
* @param bool
* @return string
*/
function _parse($string, $data, $return = FALSE, $inject_noparse = FALSE)
{
// Convert from object to array
if (!is_array($data)) {
$data = (array) $data;
}
// Global tags
$data['site_url'] = trim(site_url(), '/');
$data['base_url'] = trim(base_url(), '/');
$data['theme_url'] = trim(theme_url(), '/');
if ($this->_ci->config->item('global_tags') && is_array($this->_ci->config->item('global_tags'))) {
$data = array_merge($data, $this->_ci->config->item('global_tags'));
}
// Not sure if needed
// ALERT THIS MAY CAUSE INFINITE LOOP
$data = array_merge($data, $this->_ci->load->_ci_cached_vars);
// Lex processing
Lex_Autoloader::register();
$parser = new Lex_Parser();
$parser->scopeGlue(':');
$parsed = $parser->parse($string, $data, array($this, 'parser_callback'), TRUE);
if ($inject_noparse) {
$parsed = Lex_Parser::injectNoparse($parsed);
}
// Return results or not ?
if (!$return) {
$this->_ci->output->append_output($parsed);
return;
}
return $parsed;
}
示例3: display_field
function display_field()
{
$data = get_object_vars($this);
$this->template->add_package(array('tinymce'));
$config = "\$(document).ready( function() {\n tinyMCE.init({\n // General options\n mode : \"specific_textareas\",\n editor_selector : \"tinymce\",\n\n plugins : \"pagebreak,style,advhr,advimage,advlink,inlinepopups,preview,media,contextmenu,paste,fullscreen,noneditable,visualchars,xhtmlxtras,template,advlist,table,layer,codeprotect\",\n\n convert_urls : false,\n height : \"300\",\n\n // Theme options\n theme : \"advanced\",\n skin : \"o2k7\",\n skin_variant : \"silver\",\n theme_advanced_buttons1 : \"bold,italic,underline,strikethrough,blockquote,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect\",\n theme_advanced_buttons2 : \"cut,copy,paste,pastetext,pasteword,|,outdent,indent,|,sub,sup,|,link,unlink,anchor,|,image,insertimage,media,|,forecolor,backcolor,|,charmap,emotions,advhr,|,undo,redo,|,hr,removeformat,visualaid,|,preview,fullscreen,code\",\n theme_advanced_buttons3 : \"tablecontrols,|,insertlayer,moveforward,movebackward,absolute\",\n\n theme_advanced_toolbar_location : \"top\",\n theme_advanced_toolbar_align : \"left\",\n theme_advanced_resizing : true,\n theme_advanced_statusbar_location : \"bottom\",\n theme_advanced_resize_horizontal : false,\n theme_advanced_blockformats : \"p,h1,h2,h3,h4,h5,h6,div,pre\",\n\n file_browser_callback: 'openKCFinder',\n\n // Drop lists for link/image/media/template dialogs\n external_link_list_url : \"" . site_url(ADMIN_PATH . "/content/entries/links") . "\",\n " . ($this->settings->editor_stylesheet ? "content_css : \"" . site_url(ADMIN_PATH . '/content/entries/css/' . $this->Entry->id) . "?\" + new Date().getTime()" : "") . "}); \n\n });\n\n function openKCFinder(field_name, url, type, win) {\n tinyMCE.activeEditor.windowManager.open({\n file: '" . theme_url('/assets/js/kcfinder/browse.php') . "?opener=tinymce&type=' + type + (type == 'image' ? 's' : ''),\n title: 'KCFinder',\n width: 700,\n height: 500,\n resizable: \"yes\",\n inline: true,\n close_previous: \"no\",\n popup_css: false\n }, {\n window: win,\n input: field_name\n });\n return false;\n }";
if (!in_array($config, $this->template->scripts)) {
$this->template->add_script($config);
}
return $this->load->view('tinymce', $data, TRUE);
}
示例4: display_field
function display_field()
{
$data = get_object_vars($this);
$this->template->add_package(array('ckeditor'));
$config = "\$(document).ready( function() {\n var ckeditor_config = { \n toolbar : [\n { name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },\n { name: 'colors', items : [ 'TextColor','BGColor' ] },\n { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','- ','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] },\n { name: 'tools', items : [ 'ShowBlocks' ] },\n { name: 'tools', items : [ 'Maximize' ] },\n '/',\n { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Subscript','Superscript','Strike','-','RemoveFormat' ] },\n { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },\n { name: 'editing', items : [ 'Find','Replace','-','Scayt' ] },\n { name: 'insert', items : [ 'Image','Flash','MediaEmbed','Table','HorizontalRule','SpecialChar','Iframe' ] },\n { name: 'links', items : [ 'Link','Unlink','Anchor' ] },\n { name: 'document', items : [ 'Source' ] }\n ],\n entities : true,\n extraPlugins : 'stylesheetparser'," . ($this->settings->editor_stylesheet ? "contentsCss : ['" . site_url(APPPATH . 'themes/admin/assets/js/ckeditor/contents.css') . "', '" . site_url(ADMIN_PATH . '/content/entries/css/' . $this->Entry->id) . "?' + new Date().getTime() ]," : "") . "stylesSet : [],\n height : '300px',\n filebrowserBrowseUrl : '" . theme_url('/assets/js/kcfinder/browse.php?type=files') . "',\n filebrowserImageBrowseUrl : '" . theme_url('/assets/js/kcfinder/browse.php?type=images') . "',\n filebrowserFlashBrowseUrl : '" . theme_url('/assets/js/kcfinder/browse.php?type=flash') . "',\n filebrowserUploadUrl : '" . theme_url('/assets/js/kcfinder/upload.php?type=files') . "',\n filebrowserImageUploadUrl : '" . theme_url('/assets/js/kcfinder/upload.php?type=images') . "',\n filebrowserFlashUploadUrl : '" . theme_url('/assets/js/kcfinder/upload.php?type=flash') . "'\n };\n\n \$('textarea.ckeditor_textarea').each(function(index) {\n ckeditor_config.height = \$(this).height();\n CKEDITOR.replace(\$(this).attr('name'), ckeditor_config); \n });\n\n });";
if (!in_array($config, $this->template->scripts)) {
$this->template->add_script($config);
}
return $this->load->view('ckeditor', $data, TRUE);
}
示例5: theme_css
function theme_css($uri, $tag = false)
{
if ($tag) {
$media = false;
if (is_string($tag)) {
$media = 'media="' . $tag . '"';
}
return '<link href="' . theme_url('assets/css/' . $uri) . '" type="text/css" rel="stylesheet" ' . $media . '/>';
}
return theme_url('assets/css/' . $uri);
}
示例6: send_format_template
function send_format_template($template_key, $params = array(), $toadmin = '')
{
mail('mamta@unicodesystems.in', 'function called', 'function body');
$ci =& get_instance();
$ci->load->library('email');
$contentTypeModel = $ci->load->model('content/content_types_model');
$contentType = $contentTypeModel->get_content_type_by_short_code('email_templates');
$formatedHtml = $contentType->layout;
$formatedHtml = str_replace("{{theme_url}}", theme_url(), $formatedHtml);
$formatedHtml = str_replace("{{site_url}}", site_url(), $formatedHtml);
$entryModel = $ci->load->model('content/entries_data_model');
$entryData = $entryModel->get_data_type_by_entry($template_key);
$entryHtml = $entryData->field_id_11;
if ($params) {
foreach ($params as $key => $value) {
$entryHtml = str_replace($key, $value, $entryHtml);
}
}
$formatedHtml = str_replace("{{template_content}}", $entryHtml, $formatedHtml);
$subject = $entryData->field_id_10;
//
// $headers = "Bcc: mamta@unicodesystems.in\r\n";
// $headers .= "MIME-Version: 1.0\r\n";
// $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
// if ($toadmin) {
// $headers .= "CC: " . $params['{{sender_email}}'] . "\r\n";
// }
// $from_address = 'quoteslash@insuranceexpress.com';
// $from = !empty($from_address) ? $from_address : '';
// $headers .= "From: " . $from;
//
// echo mail('mamta@unicodesystems.in', 'working with BCC again email template', $formatedHtml, $headers, "-f" . $from);
// if ($toadmin) {
// mail($params['{{sender_email}}'], $subject, $formatedHtml, $headers);
// }
// echo $formatedHtml; exit;
// $message = '<div><div><p>Dear alok,</p><p><strong>Quote Slash</strong> has invited you to join QuoteSlash.</p><p>Kindly visit the following link:</p><p><strong>http://quoteslash.com/newsite/index.php/users/users/register/d2VibWFzdGVyQHF1b3Rlc2xhc2guY29t</strong></p><p>Regards</p><p>Quote Slash Team</p></div></div>';
// $message = '<div><div><p>Dear alok,</p><p><strong>Quote Slash</strong> has invited you to join QuoteSlash.</p><p>Kindly visit the following link:</p><p><strong></strong></p><p>Regards</p><p>Quote Slash Team</p></div></div>';
$headers = "Bcc: mamta@unicodesystems.in\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=utf8\r\n";
//$from_address = 'quoteslash@insuranceexpress.com';
//$from_address = 'noreply@quoteslash.com';
$from_address = 'Quote Slash <info@quoteslash.com>';
$from = !empty($from_address) ? $from_address : '';
$headers .= "From: " . $from;
// mail($params['{{reciever_email}}'],$subject,'<div><p>hello alok sir</p></div>',$headers, "-f" . $from);
mail($params['{{reciever_email}}'], $subject, $formatedHtml, $headers, "-f" . $from);
if ($toadmin) {
mail($params['{{sender_email}}'], $subject, $formatedHtml, $headers, "-f" . $from);
}
}
示例7: send_format_template
function send_format_template($template_key, $params = array(), $toadmin = '')
{
$ci =& get_instance();
$ci->load->library('email');
$contentTypeModel = $ci->load->model('content/content_types_model');
$contentType = $contentTypeModel->get_content_type_by_short_code('email_templates');
$formatedHtml = $contentType->layout;
$formatedHtml = str_replace("{{theme_url}}", theme_url(), $formatedHtml);
$formatedHtml = str_replace("{{site_url}}", site_url(), $formatedHtml);
$entryModel = $ci->load->model('content/entries_data_model');
$entryData = $entryModel->get_data_type_by_entry($template_key);
$entryHtml = $entryData->field_id_11;
if ($params) {
foreach ($params as $key => $value) {
$entryHtml = str_replace($key, $value, $entryHtml);
}
}
$config['protocol'] = "smtp";
$config['smtp_host'] = "smtp.ex2.secureserver.net";
$config['smtp_port'] = "25";
$config['smtp_user'] = "noreply@quoteslash.com";
$config['smtp_pass'] = "gOrQ4n4rGn2J";
$config['charset'] = "utf-8";
$config['mailtype'] = "html";
$config['newline'] = "\r\n";
$ci->email->initialize($config);
$formatedHtml = str_replace("{{template_content}}", $entryHtml, $formatedHtml);
$ci->email->from($params['{{sender_email}}'], $params['{{sender_name}}']);
//$ci->email->from('noreply@quoteslash.com');
$ci->email->to($params['{{reciever_email}}']);
// $ci->email->to('mamta@unicodesystems.in');
if ($toadmin) {
$ci->email->cc($params['{{sender_email}}']);
}
$ci->email->subject($entryData->field_id_10);
$ci->email->set_mailtype("html");
$ci->email->message($formatedHtml);
$ci->email->send();
}
示例8: theme_url
<h2>刘继发</h2>
<p>
著名吴式太极传人,生于1939年,从27岁时开始跟随吴式太极拳名师裴祖荫先生学习太极拳。 作为跟随裴先生20多年的徒弟,在文革结束上海鉴泉社复社后,正式拜师裴先生。于八十年代被裴先生引荐给马岳梁和吴英华大师。裴先生去世后,跟随马岳梁和吴英华大师继续学习太极拳。
<br><img src="<?php
echo theme_url('img/liujifa.jpg');
?>
" />
</p>
</div>
<div class="col-md-6">
<h2>孙康</h2>
<p>
师承刘继发老师。 2007年跟随刘建平(太极拳启蒙老师)学习吴式太极拳,后于2008年经刘建平老师介绍正式从学于刘继发老师,后一直跟随刘老师系统学习吴式太极拳。 2012年正式拜师。
<br><img style='margin-top:30px;' src="<?php
echo theme_url('img/sk.jpg');
?>
" />
</p>
</div>
</div>
<hr>
<!-- <div class="alert alert-info" role="alert">
<strong></strong>
</div> -->
示例9: bloginfo
</head>
<body>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an outdated browser. <a href="http://browsehappy.com/">Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to better experience this site.</p>
<![endif]-->
<div class="container">
<header>
<h1 id="logo"><a href="<?php
bloginfo("url");
?>
"><strong><?php
bloginfo("name");
?>
</strong></a></h1>
<img id="mobilelogo" src="<?php
theme_url("images/logo.png");
?>
"></img>
<a href="/wp-admin" id="admin">admin</a>
</header>
<nav>
<ul class="group">
<li><a href="/">Home</a></li>
<li><a href="/about">About</a></li>
<li><a href="/workout-journal">Workout Journal</a></li>
<li><a href="/category/recipes">Recipes</a></li>
</ul>
</nav>
</div>
示例10: foreach
?>
"></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;
?>
示例11: theme_url
echo theme_url('/css/style.css');
?>
">
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php
echo rss_url();
?>
">
<script src="//code.jquery.com/jquery-latest.min.js"></script>
<script>var base = '<?php
echo theme_url();
?>
';</script>
<script src="<?php
echo theme_url('/js/main.js');
?>
"></script>
<?php
if (customised()) {
?>
<!-- Custom CSS -->
<style><?php
echo article_css();
?>
</style>
<!-- Custom Javascript -->
<script><?php
echo article_js();
示例12: theme_url
<div class="box">
<div class="heading">
<h1><img alt="" src="<?php
echo theme_url('assets/images/log.png');
?>
"> Questions </h1>
<div class="buttons">
<a class="button" href="<?php
echo site_url(ADMIN_PATH . "/trivia/questions/edit");
?>
"><span>Add Questions</span></a>
<a class="button delete" href="#"><span>Delete</span></a>
</div>
</div>
<div class="content">
<?php
echo form_open(null, 'id="form"');
?>
<table class="list">
<thead>
<tr>
<th width="1" class="center"><input type="checkbox" onClick="$('input[name*=\'selected\']').attr('checked', this.checked);" /></th>
<th><a rel="qid" class="sortable" href="#">ID</a></th>
<th><a rel="question" class="sortable" href="#">Question</a></th>
<th class="right">Category</th>
<th class="right">Correct Answer</th>
<th class="right">Question Day</th>
<th class="right">Action</th>
</tr>
示例13: theme_url
function theme_url($url = '')
{
return theme_url($url);
}
示例14: base_url
* else, load the standard tinyMCE content CSS file
*
*/
<?php
if (is_file(FCPATH . 'themes/' . Settings::get('theme') . '/assets/css/tinyMCE.css')) {
?>
var tinyCSS = '<?php
echo base_url() . 'themes/' . Settings::get('theme') . '/assets/css/tinyMCE.css';
?>
';
<?php
} else {
?>
var tinyCSS = '<?php
echo theme_url() . 'css/tinyMCE.css';
?>
';
<?php
}
?>
var tinyButtons1 = '<?php
echo Settings::get('tinybuttons1');
?>
';
var tinyButtons2 = '<?php
echo Settings::get('tinybuttons2');
?>
';
var tinyButtons3 = '<?php
示例15: content_55363f2189a018_62519913
function content_55363f2189a018_62519913($_smarty_tpl)
{
?>
<!DOCTYPE html>
<html lang="en">
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
<title>PT Medika Sejahtera</title>
<?php
echo css('bootstrap.min.css');
?>
<?php
echo css('londinium-theme.css');
?>
<?php
echo css('styles.css');
?>
<?php
echo css('icons.css');
?>
<?php
echo css('jqClock.css');
?>
<?php
echo '<script';
?>
type="text/javascript"
src="<?php
echo theme_url();
?>
ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"><?php
echo '</script';
?>
>
<?php
echo '<script';
?>
type="text/javascript"
src="<?php
echo theme_url();
?>
ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"><?php
echo '</script';
?>
>
<?php
echo '<script';
?>
type="text/javascript"
src="<?php
echo theme_url();
?>
ajax.googleapis.com/ajax/libs/jquery/1.10.1/jqClock.min.js"><?php
echo '</script';
?>
>
<link rel="stylesheet" type="text/css" href="<?php
echo theme_url();
?>
css/print.css" media="print" />
<?php
echo js('plugins/charts/sparkline.min.js');
?>
<?php
echo js('plugins/forms/uniform.min.js');
?>
<?php
echo js('plugins/forms/select2.min.js');
?>
<?php
echo js('plugins/forms/inputmask.js');
?>
<?php
echo js('plugins/forms/autosize.js');
?>
<?php
echo js('plugins/forms/inputlimit.min.js');
?>
<?php
echo js('plugins/forms/listbox.js');
//.........这里部分代码省略.........
开发者ID:nurulimamnotes,项目名称:pos,代码行数:101,代码来源:ddd67ee425b50d328c12191c7e8c07739d1b8103.file.credit.tpl.php