/** * Compile * * Usage: * {{ compass:compile file="" output="" }} * * @param array * @return array */ function compile() { $this->load->library('compass'); $this->load->library('asset'); $file = $this->attribute('file', 'style.scss'); $attributes = $this->attributes(); $module = $this->attribute('module', '_theme_'); $output = $this->attribute('output', 'style.css'); $base = $this->attribute('base', 'css'); foreach (array('file', 'module', 'base', 'output') as $key) { if (isset($attributes[$key])) { unset($attributes[$key]); } else { if ($key === 'file') { return ''; } } } try { $viewsPath = rtrim($this->load->get_var('template_views'), '/'); $themePath = preg_replace('#(\\/views(\\/web|\\/mobile)?)$#', '', $viewsPath) . '/'; $compass = new Compass(); $compass->init(Asset::get_filepath_css($file, false), Asset::get_filepath_css($output, false)); return link_tag(Asset::get_filepath_css($output, true), 'stylesheet'); } catch (exception $ex) { exit('Compass fatal error:<br />' . $file . ',' . $module . ',' . $base . '<br />' . $ex->getMessage()); } }
function contacto() { $data['con'] = TRUE; $data['title'] = 'Bolivar International - Contacto'; $data['extra_css'] = link_tag('css/_institucional.css') . "\n"; $val = $this->form_validation; $val->set_rules('nom', 'nombre', 'trim|required|xss_clean'); $val->set_rules('empresa', 'empresa', 'trim|xss_clean'); $val->set_rules('email', 'e-mail', 'trim|required|valid_email|xss_clean'); $val->set_rules('tel', 'teléfono', 'trim|xss_clean'); $val->set_rules('coment', 'comentario', 'trim|required|xss_clean'); if ($val->run()) { $this->email->from($this->input->post('email'), $this->input->post('nombre')); $this->email->to('*****@*****.**'); $mensaje = ' Mensaje enviado desde el formulario contactenos en la web www.bolivarinternational.com con los siguientes datos: Nombre(s): ' . $val->set_value('nom') . ' Empresa: ' . $val->set_value('empresa') . ' Email: ' . $val->set_value('email') . ' Teléfono: ' . $val->set_value('tel') . ' Comentario: ' . $val->set_value('coment') . ' '; $this->email->subject('Formulario contactenos - bolivarinternational.com'); $this->email->message($mensaje); if ($this->email->send()) { // $this->load->view('contacto/contacto_success'); $data['contenido'] = $this->load->view('contacto/enviado', null, TRUE); } // echo $this->email->print_debugger(); } else { $data['contenido'] = $this->load->view('contacto/contacto', null, TRUE); } $this->load->view('template_base', $data); }
/** * Theme CSS * * Insert a CSS tag with location based for url or path from the theme or module * * Usage: * {{ theme:css file="" }} * * @return string The link HTML tag for the stylesheets. */ public function css() { $file = $this->attribute('file'); $title = $this->attribute('title'); $media = $this->attribute('media'); return link_tag($this->css_url($file), 'stylesheet', 'text/css', $title, $media); }
/** * Load CSS * * @param $css_files * @return array */ function gc_css($css_files) { $resp = []; foreach ($css_files as $file) { array_push($resp, link_tag($file)); } return $resp; }
function nosotros() { $data['nos'] = TRUE; $data['title'] = 'Bolivar International - Nosotros'; $data['extra_css'] = link_tag('css/institucional.css') . "\n"; $data['contenido'] = $this->load->view('nosotros/nosotros', null, TRUE); $this->load->view('template_base', $data); }
function css() { $result = directory_map("./assets/css/"); // pre($result); if (is_array($result)) { foreach ($result as $val) { echo link_tag("assets/css/" . $val); } } }
/** * To link a page * ****/ function links_page() { $urlCss = 'public/assets/css/'; $links = array(array('href' => $urlCss . 'reset.css', 'type' => 'text/css', 'rel' => 'stylesheet'), array('href' => $urlCss . 'bootstrap.css', 'type' => 'text/css', 'rel' => 'stylesheet'), array('href' => $urlCss . 'bootstrap-theme.css', 'type' => 'text/css', 'rel' => 'stylesheet'), array('href' => $urlCss . 'font-awesome.css', 'type' => 'text/css', 'rel' => 'stylesheet'), array('href' => $urlCss . 'style.css', 'type' => 'text/css', 'rel' => 'stylesheet'), array('href' => $urlCss . 'menu.css', 'type' => 'text/css', 'rel' => 'stylesheet'), array('href' => $urlCss . 'modern-business.css', 'type' => 'text/css', 'rel' => 'stylesheet'), array('href' => $urlCss . 'jquery.loader.css', 'type' => 'text/css', 'rel' => 'stylesheet'), array('href' => $urlCss . 'phone.menu.css', 'type' => 'text/css', 'rel' => 'stylesheet'), array('href' => base_url() . 'public/assets/images/ico/pk-logo.ico', 'type' => 'image/x-icon', 'rel' => 'shortcut icon')); $str = ''; foreach ($links as $link) { $str .= link_tag($link); } return $str; }
public function __construct() { $this->CI =& get_instance(); //$this->CI调用框架方法 $this->CI->load->helper(array('html', 'string', 'url')); $this->CI->load->model('tool/spider_model'); if (!is_cli()) { echo doctype('html4-trans') . meta('Content-type', 'text/html;charset=utf-8', 'equiv'); echo link_tag(base_url('public/image/favicon.ico'), 'shortcut icon', 'image/ico'); } }
public function head($title = '') { $head = "<!DOCTYPE html>\n"; $head .= "<html>\n"; $head .= "<head>\n"; $head .= "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n"; $head .= "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n"; $head .= "<meta charset=\"utf-8\"/>\n"; $head .= " <!-- load library CSS -->\n"; $head .= link_tag('public/assets/css/reset.css'); $head .= link_tag('public/assets/css/bootstrap.css'); $head .= link_tag('public/assets/css/bootstrap-theme.css'); $head .= link_tag('public/assets/css/style.css'); $head .= link_tag('public/assets/css/menu.css'); $head .= link_tag('public/assets/css/modern-business.css'); $head .= link_tag('public/assets/css/jquery.loader.css'); $head .= link_tag('public/assets/css/phone.menu.css'); $head .= link_tag('public/assets/css/bootbox.css'); $head .= link_tag('public/assets/css/jquery-ui.css'); $head .= link_tag('public/assets/css/bootstrapValidator.css'); $head .= "<!-- end lib css -->\n"; if ($title) { $head .= "<title>" . $title . "</title>"; } else { $head .= "<title>Phòng khám đa khoa Apollo</title>"; } $head .= "<!-- icon link -->\n"; $head .= link_tag('public/assets/images/ico/pk-logo.ico', 'shortcut icon', 'image/ico'); $head .= "<link rel='shortcut icon' href='http://phongkhamapollo.com/public/assets/images/ico/pk-logo.ico' type='image/x-icon' />"; $head .= "<!-- start lib javascript -->\n"; $head .= script_tag('public/assets/js/jquery-1.11.3.js'); $head .= script_tag('public/assets/js/jquery.loader.js'); $head .= script_tag('public/assets/js/bootstrap.js'); $head .= script_tag('public/assets/js/menu.js'); $head .= script_tag('public/assets/js/jquery-ui.js'); $head .= script_tag('public/assets/js/bootstrapValidator.js'); $head .= script_tag('public/assets/js/jquery.popupoverlay.js'); $head .= script_tag('public/assets/js/jquery.mmenu.js'); $head .= script_tag('public/assets/js/bootbox.js'); $head .= script_tag('public/assets/js/bootboxExample.js'); $head .= script_tag('public/assets/js/jquery.sticky-kit.js'); $head .= "<!-- end lib javascript -->\n"; $head .= "<!-- no robots -->\n"; $head .= "<meta name=\"robots\" content=\"noindex,nofollow\"/>\n"; $head .= "</head>\n"; return $head; }
public function paginate($page = 'page') { global $controller; $page_count = ceil($this->paginate_row_count / $this->per_page); if ($page_count < 2) { return ''; } $pages = []; for ($i = 0; $i < $page_count; $i++) { if ($i == $this->paginate_current_page) { $pages[] = $i + 1; } else { $pages[] = link_tag($i + 1, $controller->current_url([$page => $i])); } } return implode(' | ', $pages); }
public function getCSS($files = array()) { $this->CI->load->helper('html'); $html = ''; foreach($this->cssFiles as $file) { $html.= link_tag(array( 'href' => 'resources/css/'.$file, 'rel' => 'stylesheet', 'type' => 'text/css' )); } return $html; }
function css($filename, $path = 'css', $title = '', $media = '') { if (!is_array($filename)) { $filename = array($filename); } /*$_cont = base::getInstance(); if(isset($_cont->_ent->css_folder{1})) { $path = $path . $_cont->_ent->css_folder; }*/ $url = base::getInstance()->config->slash_item('source_url') . 'css'; $style = ''; foreach ($filename as $key => $css) { $style .= "\n" . link_tag($url . '/' . $css, 'stylesheet', 'text/css', $title, $media); } return $style; }
/** * Action edit * Loads the /lens/edit view */ function edit() { if ( ! $this->dx_auth->is_logged_in()) { redirect('/main/login', 'refresh'); return; } $this->load->helper('html'); $data = array(); $data['extraHeadContent'] = link_tag('css/default.css') . '<script type="text/javascript" src="'.base_url().'js/jquery-1.3.2.js"></script>'; $data['title'] = $this->lang->line('system_name'); $data['main'] = 'lens/edit'; $this->load->vars($data); $this->load->view('template'); }
function load_css($data) { $CI =& get_instance(); $CI->load->helper('html'); $CI->config->load('assets'); if (!$CI->config->item('css_path')) { $CI->config->set_item('css_path', 'public/css/'); } $csspath = base_url() . $CI->config->item('css_path'); if (!is_array($data)) { return link_tag($csspath . $data, 'stylesheet', 'text/css'); } else { $return = ''; foreach ($data as $item) { if (!is_array($item)) { $return .= link_tag($csspath . $item, 'stylesheet', 'text/css'); } else { $return .= link_tag($csspath . $item[0], 'stylesheet', 'text/css', '', $item[1]); } } } return $return; }
function load_jquery($front = false) { //jquery & jquery ui files & path $path = 'js/jquery'; $jquery = 'jquery-1.5.1.min.js'; $jquery_ui = 'jquery-ui-1.8.11.custom.min.js'; $jquery_ui_css = 'jquery-ui-1.8.11.custom.css'; //load jquery ui css if ($front) { echo link_tag($path . '/' . $front . '/' . $jquery_ui_css); } else { echo link_tag($path . 'gocart/' . $jquery_ui_css); } //load scripts echo load_script($path . '/' . $jquery); echo load_script($path . '/' . $jquery_ui); //colorbox $path = $path . '/colorbox'; $colorbox = 'jquery.colorbox-min.js'; $colorbox_css = 'colorbox.css'; echo link_tag($path . '/' . $colorbox_css); echo load_script($path . '/' . $colorbox); }
<html lang="en-us"> <head> <meta charset="utf-8"> <title> Monarch Saloon </title> <meta name="description" content=""> <meta name="author" content=""> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <?php echo link_tag('http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,300,400,700'); echo link_tag('assets/css/bootstrap.min.css'); echo link_tag('assets/css/font-awesome.min.css'); echo link_tag('assets/css/smartadmin-production.min.css'); echo link_tag('assets/css/smartadmin-skins.min.css'); echo link_tag('assets/css/demo.min.css'); echo link_tag('assets/css/datepicker.css'); echo link_tag('assets/css/custom.css'); ?> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> </head> <body class=""> <header id="header"> <div id="logo-group"> <span id="logo"> <?php echo img(array('src' => 'assets/img/logo.png', 'alt' => 'SmartAdmin')); ?> </span> </div> <<div class="pull-right">
<?php $this->load->helper('HTML'); echo link_tag('css/style2.css'); echo link_tag('images/favicon.ico', 'shortcut icon', 'image/x-icon'); ?> </head> <div id="page1"> <div id="wrapper"> <?php $this->load->view('admin_views/header'); ?> <hr /> <script type="text/javascript"> $(document).ready( function() { $("#id_cabang").autocomplete({ minLength: 2, source: function(req, add){ $.ajax({ url: "<?php echo base_url(); ?> penjualan/lookup", dataType: 'json', type: 'POST', data: req, success: function(data){ if(data.response =="true"){ add(data.message);
<?php if (!$project->hasAccess() || isset($project_url) && $project->getID() == \thebuggenie\core\framework\Context::getCurrentProject()->getID()) { continue; } ?> <?php if (!$project->hasWikiURL()) { ?> <?php echo link_tag(make_url('publish_article', array('article_name' => ucfirst($project->getKey()) . ':MainPage')), $project->getName()); ?> <?php } else { ?> <?php echo link_tag($project->getWikiURL(), $project->getName(), array('target' => 'blank')); ?> <?php } ?> <?php } ?> <?php } ?> </div> <?php } ?> </li>
<?php if ($user instanceof TBGUser) { ?> <h3> You have been registered by an administrator<br> </h3> A username and account has been registered with this email address for The Bug Genie at the following address:<br> <?php echo link_tag($module->generateURL('home')); ?> <br> <br> You can log in with the username <strong><?php echo $user->getUsername(); ?> </strong>, and the password <strong><?php echo $password; ?> </strong><br> <br> This is a temporary password, you should change it immediately after logging in for the first time. <?php }
<?php } ?> </td> <td class="workflow_step_actions"> <?php if ($step->isCore()) { ?> <?php echo link_tag(make_url('configure_workflow_step', array('workflow_id' => $step->getWorkflow()->getID(), 'step_id' => $step->getID())), __('Show step info')); ?> <?php } else { ?> <?php echo link_tag(make_url('configure_workflow_step', array('workflow_id' => $step->getWorkflow()->getID(), 'step_id' => $step->getID())), __('Edit step')); ?> | <?php if ($step->hasIncomingTransitions()) { ?> <span class="faded_out"><a href="javascript:void(0);" class="disabled" onclick="failedMessage('<?php echo __('You cannot delete a step with incoming transitions'); ?> ', '<?php echo __('To delete a step that has incoming transitions, first remove all incoming transitions'); ?> ');"><?php echo __('Delete step'); ?> </a></span><br>
<?php echo link_tag(base_url() . 'css/main_menu.css'); ?> <script src="/js/home.js"></script> <?php echo form_open(); ?> <div class="container landscapeOnly"> <div class="row"> <div class="col-xs-3 col-lg-3 col-md-3 col-sm-3"></div> <a class="menuAnchor" href="/log/meal"> <div class="col-xs-2 col-lg-2 col-md-2 col-sm-2 menuBox"> <img src="/assets/images/menu_feed.png" class="img-responsive" /> <div class="menuText"><span class="hidden-xs">Log a </span>Meal</div> </div> </a> <a class="menuAnchor" href="/log/walk"> <div class="col-xs-2 col-lg-2 col-md-2 col-sm-2 menuBox"> <img src="/assets/images/menu_dogwalk.png" class="img-responsive" /> <div class="menuText"><span class="hidden-xs">Log a </span>Walk</div> </div> </a> <a class="menuAnchor" href="/log/treat"> <div class="col-xs-2 col-lg-2 col-md-2 col-sm-2 menuBox"> <img src="/assets/images/menu_treat.png" class="img-responsive" /> <div class="menuText"><span class="hidden-xs">Log a </span>Treat</div> </div> </a> <div class="col-xs-3 col-lg-3 col-md-3 col-sm-3"></div> </div>
$release_date_text = $build->hasReleaseDate() ? __('Released %release_date', array('%release_date' => tbg_formatTime($build->getReleaseDate(), 7, true, true))) : __('Released'); ?> <?php } else { ?> <?php $release_date_text = __('Not released yet'); ?> <?php } ?> <?php if ($build->hasDownload()) { ?> <?php $release_date_text = __('%release_date, download: %download_filename', array('%release_date' => $release_date_text, '%download_filename' => $build->hasFile() ? link_tag(make_url('downloadfile', array('id' => $build->getFile()->getID())), $build->getFile()->getOriginalFilename()) : link_tag($build->getFileURL()))); ?> <?php } else { ?> <?php $release_date_text = __('%release_date, no download available', array('%release_date' => $release_date_text)); ?> <?php } ?> <?php if (!$build->isReleased()) { ?> <div id="build_<?php echo $b_id;
<script type="text/javascript" src="<?php echo base_url(); ?>js/emt_js/ui.js"></script> <!-- fancybox --> <script type="text/javascript" src="<?php echo base_url(); ?>js/emt_js/fancybox.js"></script> <?php echo link_tag('css/emt_css/ui.css'); echo link_tag('css/emt_css/fancybox/fancybox.css'); ?> <script> $(document).ready(function(){ // Init url_back = site_url+"emeeting/emeetingView"; //Add event $("#back").click(back); $("#start").click(Start); // set class sortable for sortable $(".sortable").sortable({ placeholder: "ui-state-highlight", opacity: 0.95, delay: 50, stop:function(event, ui){ var url = "<?php echo site_url() . "/emeeting/emeeting/pntSeq"; ?>"; var index = $(this).sortable('toArray'); $.post(url,{index:index},function(data){ }); } }); //Function
<head> <base href="<?php echo base_url(); ?> "> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?php echo lang('babylab'); ?> </title> <!-- (default) CSS --> <?php echo link_tag('css/pure-min.css'); ?> <?php echo link_tag('css/style.css'); ?> </head> <body> <div class="pure-g"> <div class="pure-u-1-8"></div> <div id="wrapper" class="pure-u-3-4"> <img id="header-img" src="images/uu-header.png"> <?php echo heading(lang('babylab'), 1); ?> <hr>
<!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="description" content=""> <meta name="author" content=""> <title>Administração da Loja</title> <?php echo link_tag('assets/bower_components/bootstrap/dist/css/bootstrap.min.css'); echo link_tag('assets/bower_components/metisMenu/dist/metisMenu.min.css'); echo link_tag('assets/bower_components/morrisjs/morris.css'); echo link_tag('assets/bower_components/font-awesome/css/font-awesome.min.css'); echo link_tag('assets/bower_components/datatables/media/css/jquery.dataTables.min.css'); echo link_tag('assets/css/sb-admin-2.css'); ?> <script src="<?php echo base_url('assets/bower_components/jquery/dist/jquery.min.js'); ?> "></script> <script src="<?php echo base_url('assets/bower_components/bootstrap/dist/js/bootstrap.min.js'); ?> "></script> <script src="<?php echo base_url('assets/bower_components/metisMenu/dist/metisMenu.min.js'); ?> "></script> <script src="<?php echo base_url('assets/bower_components/datatables/media/js/jquery.dataTables.min.js');
<!DOCTYPE html> <html> <head> <title><?php echo $title; ?> </title> <meta charset="utf-8"> <?php echo link_tag('css/kiosk_results.css' . '?' . time()); ?> <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script src="<?php echo base_url() . 'js/kiosk.js' . '?' . time(); ?> "></script> <?php header('Content-type: text/html; charset=utf-8'); ?> <style type="text/css"> body { <?php if (isset($background_image_url)) { ?> background-image:url(<?php echo $background_image_url; ?> );
Bonjour %user_buddyname%,<br> <?php echo $issue->getIssuetype()->getName(); ?> <?php echo $issue->getFormattedTitle(true); ?> a été mise à jour par <?php echo $updated_by->getName(); ?> .<br> <br> <?php echo tbg_parse_text($comment); ?> <br> <div style="color: #888;"> -- <br> Affiche la demande : <?php echo link_tag(make_url('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo()), false)); ?> <br> Affiche le tableau de bord du projet <?php echo $issue->getProject()->getName(); ?> : <?php echo link_tag(make_url('project_dashboard', array('project_key' => $issue->getProject()->getKey()), false)); ?> </div> </div>
<!DOCTYPE html> <html> <head> <style> body { background-color: #f5f5dc!important; } </style> <title>A Handyman's Toolbox</title> </head> <body> <?php echo link_tag('stuff/css/bootstrap.min.css');
echo __('In use by %number_of_associated_projects project(s)', array('%number_of_associated_projects' => '<span>' . $scheme->getNumberOfProjects() . '</span>')); ?> <?php } else { ?> <?php echo __('Not used by any projects'); ?> <?php } ?> </td> <td class="workflow_actions"> <div class="button-group" style="float: right;"> <?php echo link_tag(make_url('configure_issuetypes_scheme', array('scheme_id' => $scheme->getID())), image_tag('icon_workflow_scheme_edit.png', array('title' => __('Show / edit issue type associations'))), array('class' => 'button button-icon button-silver')); ?> <a href="javascript:void(0);" onclick="$('copy_scheme_<?php echo $scheme->getID(); ?> _popup').toggle();" class="button button-icon button-silver"><?php echo image_tag('icon_copy.png', array('title' => __('Create a copy of this issue type scheme'))); ?> </a> <?php if (!$scheme->isCore()) { ?> <?php if ($scheme->isInUse()) { ?> <a href="javascript:void(0);" onclick="TBG.Main.Helpers.Message.error('<?php
<?php } } ?> </div> </div> <script type="text/javascript" src="<?php echo base_url(); ?> js/jquery.countdown.js"></script> <script type="text/javascript" src="<?php echo base_url(); ?> js/star-rating/jquery.rating.js"></script> <?php echo link_tag('js/star-rating/jquery.rating.css'); ?> <script type="text/javascript"> $(document).ready(function () { $('[data-countdown]').each(function () { var $this = $(this), finalDate = $(this).data('countdown'); $this.countdown(finalDate).on('update.countdown', function (event) { var format = '%H:%M:%S'; if (event.offset.days > 0) { format = '%-d day%!d ' + format; } if (event.offset.weeks > 0) { format = '%-w week%!w ' + format; } $this.html(event.strftime(format)); }).on('finish.countdown', function (event) {