Exemplo n.º 1
0
 function bs_header($page_identification = "")
 {
     $styles = [assets('css/app.min.css'), assets('vendor/skins/' . Option::get('color_scheme') . '.min.css')];
     if ($page_identification !== "") {
         $styles[] = assets("css/{$page_identification}.css");
     }
     foreach ($styles as $style) {
         echo "<link rel=\"stylesheet\" href=\"{$style}\">";
     }
     echo '<style>' . Option::get("custom_css") . '</style>';
     $extra_contents = [];
     Event::fire(new App\Events\RenderingHeader($extra_contents));
     echo implode(PHP_EOL, $extra_contents);
 }
Exemplo n.º 2
0
 public static function thumbnail()
 {
     $result = '';
     list(, $caller) = debug_backtrace(false);
     $class = strtolower($caller['class']);
     if (strpos($class, '_page_')) {
         $class = str_replace('_page_type', '', $class);
         $class = str_replace('_', '-', $class);
         $result = assets("images/pages/{$class}.png");
     } elseif (strpos($class, '_module_')) {
         $class = str_replace('_module_type', '', $class);
         $class = str_replace('_', '-', $class);
         $result = assets("images/modules/{$class}.png");
     } else {
     }
     return $result;
 }
Exemplo n.º 3
0
 public static function enqueueScripts()
 {
     $version = time();
     if (!WP_DEBUG) {
         $theme = wp_get_theme();
         $version = $theme->version;
     }
     wp_enqueue_style('modular-admin-vendor-css', \assets('css/vendor.css'), [], $version);
     wp_enqueue_style('modular-admin-css', \assets('css/app.css'), [], $version);
     wp_enqueue_script('modular-admin-vendor-js', \assets('js/vendor.js'), [], $version, true);
     wp_enqueue_script('modular-admin-js', \assets('js/app.js'), [], $version, true);
     wp_enqueue_script('vue-js', \assets('js/vue.min.js'), [], $version, true);
     if (is_user_logged_in()) {
         // logged in specific scripts
     } else {
         $data = ['waiting_message' => __('Please, wait for response...', 'intra'), 'ajax_url' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('gatekeeper')];
         wp_enqueue_script('unauthenticated-js', \assets('js/unauthenticated.js'), [], $version, true);
         wp_localize_script('unauthenticated-js', 'wpdata', $data);
     }
 }
 public static function generar_files($file_data = false)
 {
     /*
      ** URLS
      */
     $style_php_path = Generador_style_css::get_master_file($file_data, true);
     $style_php_server_url = assets(false) . '/' . $file_data['folder'] . '/' . $file_data['file'] . '.php';
     $style_backup_path = Generador_style_css::get_file_backup($file_data, true);
     $style_css_path = Generador_style_css::get_final_file($file_data, true);
     /*
      ** ARCHIVOS
      */
     $style_php_file = file_get_contents($style_php_path);
     /*
      ** COMPILAR CSS
      ** NECESITAMOS PEDIRLE AL SERVIDOR LA PÁGINA PROCESADA
      */
     $style_php_server = file_get_contents($style_php_server_url);
     /*
      ** ACTUALIZAMOS EL BACKUP
      */
     file_put_contents($style_backup_path, $style_php_file);
     file_put_contents($style_css_path, $style_php_server);
 }
function assets_e($file = '')
{
    echo assets($file);
}
Exemplo n.º 6
0
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>krokodile</title>
	<link rel="stylesheet" type="text/css" href="<?php 
echo assets();
?>
css/style.css">
	<link rel="stylesheet" type="text/css" href="<?php 
echo assets();
?>
css/semantic.css">
</head>
<body>
<h3>la soupe aux KROKOS </h3>
Exemplo n.º 7
0
<?php

$this->load->view('v_header', array('nav_artikel' => "active"));
?>

<script type="text/javascript" src='<?php 
echo assets() . "js/v_artikel.js";
?>
'></script>

<div class="wrap-content">
    
    <div id="global-notification">
        <?php 
$success = $this->session->flashdata('success');
$error = $this->session->flashdata('error');
if ($success != null) {
    if (count($success) > 0) {
        ?>
        <div class="alert alert-success text-center" role="alert">
            <ul>
            <?php 
        foreach ($success as $value) {
            echo "<li>" . $value . "</li>";
        }
        ?>
            </ul>
        </div>
        <?php 
    }
}
Exemplo n.º 8
0
</h1>
        </th>

        <th valign="middle">
            <?php 
if ($guild->hasLogo()) {
    ?>
                <img src="<?php 
    echo assets('storage/guild_images/' . $guild->hasLogo());
    ?>
" width="64" height="64">
            <?php 
} else {
    ?>
                <img src="<?php 
    echo assets('storage/guild_images/default_guild.gif');
    ?>
" width="64" height="64">
            <?php 
}
?>
        </th>
    </tr>

    <tr class="transparent noborderpadding">
        <td colspan="3">
            <p><?php 
echo nl2br(e(lines($guild->description(), 5)));
?>
</p>
        </td>
Exemplo n.º 9
0
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Foo</title>
    <link rel="stylesheet" href="<?php 
echo assets('assets/css/styles.css');
?>
" charset="utf-8">
  </head>
  <body>

    <div class="header">
      <div class="container">
        <header>
          <h1 id="title"><a href="#">Blogku</a></h1>
          <nav id="primary-nav" class="inline">
            <ul>
              <li><a href="<?php 
echo $router->generate('home');
?>
">Beranda</a></li>
              <li><a href="<?php 
echo $router->generate('about');
?>
">Tentang</a></li>
              <li><a href="<?php 
echo $router->generate('contact');
?>
">Kontak</a></li>
            </ul>
Exemplo n.º 10
0
function theme_styles()
{
    $deps = load_styles_dependencies();
    wp_enqueue_style('styles', assets('css/index.css'), $deps, false, 'all');
    depend_style($deps, 'glide', assets('css/vendors/glide.css'));
    depend_style($deps, 'slick-css', assets('css/vendors/slick.css'));
    depend_style($deps, 'slick-theme-css', assets('css/vendors/slick-theme.css'));
}
Exemplo n.º 11
0
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="<?php 
echo assets('styles/bootstrap.min.css');
?>
">
    <link rel="stylesheet" href="<?php 
echo assets('styles/endless.min.css');
?>
">
</head>
<body>


" rel="stylesheet">
    <link href="<?php 
echo e(assets("/css/styles.css"));
?>
" rel="stylesheet">
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>

<?php 
echo $__env->make("nav", array_except(get_defined_vars(), array('__data', '__path')))->render();
?>


    <?php 
echo $__env->yieldContent("content");
?>



<script src="<?php 
echo e(assets("/js/bootstrap.js"));
?>
"></script>
</body>
</html>
Exemplo n.º 13
0
 public function enqueue_styles_and_scripts()
 {
     global $post_type;
     if (isset($_GET['page']) && in_array($_GET['page'], array('booking-system', 'manage-bookings', 'edit-booking', 'guest-calendar')) || 'room' == $post_type) {
         if (isset($_GET['post']) && isset($_GET['action']) && $_GET['action'] == 'edit') {
             return;
         }
         wp_enqueue_style('admin-style', assets('style/admin.css'));
         wp_enqueue_style('jquery-style', assets('vendor/jquery-ui-1.11.4.custom/jquery-ui.min.css'));
         wp_enqueue_script('jquery-ui-datepicker');
         wp_enqueue_script('jquery-ui-tooltip');
         wp_enqueue_script('chart-script', assets('vendor/Chart.min.js'), array('jquery'), true, false);
         wp_enqueue_script('admin-script', assets('js/admin.js'), array('chart-script', 'jquery'), true, true);
         wp_localize_script('admin-script', 'BDR', array('AjaxUrl' => admin_url('admin-ajax.php'), 'assets' => assets(''), 'bookings' => get_booking_calendar()));
     }
 }
Exemplo n.º 14
0
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php 
echo $title;
?>
</title>
    <link rel="stylesheet" href="<?php 
echo assets('styles/global.css');
?>
">
</head>
<body class="overflow-hidden">
Exemplo n.º 15
0
    ?>
"><a href="<?php 
    echo config('social', 'facebook.url');
    ?>
">Facebook</a></blockquote></div></div>
							<?php 
}
?>
						</div>
					</div>
				</div>
			</div>

			<div class="footer">
				Powered by CornexAAC - <?php 
echo config('app', 'version');
?>
			</div>

		</div>

		<script src="<?php 
echo assets('assets/js/jquery.min.js');
?>
"></script>
		<script src="<?php 
echo assets('assets/js/bootstrap.min.js');
?>
"></script>
	</body>
</html>
Exemplo n.º 16
0
</head>

<body class="">
    <header class="">
        <nav class="navbar navbar-fixed-top navbar-sticky">
            <div class="container">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header" style="margin-right:1em">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <div class="logo-img navbar-brand"><a href="http://www.ukdw.ac.id/" style="display: inline-block"><img src='<?php 
echo assets() . "image/logo.png";
?>
' style="max-width:200px"></a></div>
                </div>
                
                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li class='<?php 
if (isset($nav_beranda)) {
    echo $nav_beranda;
}
?>
'><a href="http://localhost/pendeta_universitas/index.php/c_beranda">BERANDA</a></li>
                        <li class='<?php 
if (isset($nav_tentang)) {
Exemplo n.º 17
0
  <!-- Owl Carousel -->
  <script type="text/javascript" src="<?php 
echo assets('js/owl.carousel.min.js');
?>
"></script>

  <!-- Countdown -->
  <script type="text/javascript" src="<?php 
echo assets('js/jquery.countdown.min.js');
?>
"></script>

  <!-- youplay -->
  <script type="text/javascript" src="<?php 
echo assets('js/youplay.js');
?>
"></script>
  <!-- init youplay -->
  <script>
    if(typeof youplay !== 'undefined') {
      youplay.init({
          smoothscroll: false,
      });
    }
  </script>

  <script type="text/javascript">
    $(".countdown").each(function() {
      $(this).countdown($(this).attr('data-end'), function(event) {
        $(this).text(
Exemplo n.º 18
0
/**
 * @param       $view
 * @param array $data
 *
 * @return Twig
 */
function view($view, $data = [], $assets = [])
{
    $view = new Twig($view, $data);
    if ($parent = realpath(dirname(debug_backtrace()[0]['file']) . path('ds') . '..' . path('ds') . 'View' . path('ds'))) {
        if (is_dir($parent)) {
            $view->addDir($parent, Twig::PRIORITY_LAST);
        }
        $calculatedParent = realpath(dirname(debug_backtrace()[0]['file']) . path('ds') . '..' . path('ds') . '..' . path('ds') . '..' . path('ds'));
        if (is_dir($calculatedParent)) {
            $view->addDir($calculatedParent, Twig::PRIORITY_LAST);
        }
    }
    if ($assets) {
        assets($assets);
    }
    return $view;
}
Exemplo n.º 19
0
')"></div>
                    </div>
                    <div class="col-xs-9">
                        <div class="font-bold staff-name">Pdt. Nani Minarni, S.Si, M.Hum</div>
                        <dl class="font-size-12px text-right">
                            <dt>Jabatan</dt>
                            <dd>Pendeta Universitas</dd>
                            <dt>Email</dt>
                            <dd>nanida@staff.ukdw.ac.id</dd>
                        </dl>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-3">
                        <div class="div-thumbnail" style="background-image: url('<?php 
echo assets() . "image/staff1.jpg";
?>
')"></div>
                    </div>
                    <div class="col-xs-9">
                        <div class="font-bold staff-name">Galih Widi Handoyo</div>
                        <dl class="font-size-12px text-right">
                            <dt>Jabatan</dt>
                            <dd>Staff Administrasi</dd>
                            <dt>Email</dt>
                            <dd>galih@staff.ukdw.ac.id</dd>
                        </dl>
                    </div>
                </div>
            </div>
        </div>
Exemplo n.º 20
0
    ?>
							<small>Gamemaster</small>
							<br><img src="<?php 
    echo assets('assets/img/trial-gm.png');
    ?>
"><br>
						<?php 
}
?>

						<?php 
if ($player->isGod()) {
    ?>
							<small>God</small>
							<br><img src="<?php 
    echo assets('assets/img/trial-gm.png');
    ?>
"><br>
						<?php 
}
?>

						<small>
							<strong>Vocation:</strong> <?php 
echo $player->getVocation();
?>
<br>

							<strong>Level:</strong> <?php 
echo $player->getLevel();
?>
Exemplo n.º 21
0
 function styles(array $media = array())
 {
     return assets()->styles($media);
 }
Exemplo n.º 22
0
?>
						</div>
					</main>

					<div id="copyright">
						CornexAAC - <?php 
echo config('app', 'version');
?>
					</div>
				</div>
			</div>
		</section>

		<!-- Javascripts -->
		<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
		<script type="text/javascript" src="<?php 
echo assets('assets/js/trumbowyg.min.js');
?>
"></script>
		<script type="text/javascript" src="<?php 
echo assets('assets/js/app.js');
?>
"></script>
		<script type="text/javascript">
			$('#reply').trumbowyg({
			    fullscreenable: false,
			    resetCss: true
			});
		</script>
	</body>
</html>
Exemplo n.º 23
0
 public function do_edit()
 {
     $error = array();
     $success = array();
     if (!$this->session->userdata('username')) {
         redirect('/c_artikel', 'refresh');
         return;
     }
     $this->load->helper('assets_helper');
     $this->load->helper('date');
     $judulArtikel = $this->input->post('judulArtikel');
     $isiArtikel = $this->input->post('isiArtikel');
     $id = $this->input->post('idArtikel');
     if ($judulArtikel == NULL || $isiArtikel == NULL) {
         echo "Please fill";
         $this->load->view('v_artikel');
     } else {
         $html = $this->input->post('isiArtikel');
         //start parsing
         $html = preg_replace_callback("/src=\"data:([^\"]+)\"/", function ($matches) {
             list($contentType, $encContent) = explode(';', $matches[1]);
             if (substr($encContent, 0, 6) != 'base64') {
                 return $matches[0];
                 // Don't understand, return as is
             }
             $imgBase64 = substr($encContent, 6);
             $imgFilename = rtrim(strtr(base64_encode(time()), '+/', '-_'), '=') . rtrim(strtr(base64_encode(rand(0, 1000)), '+/', '-_'), '=');
             $imgExt = '';
             switch ($contentType) {
                 case 'image/jpeg':
                     $imgExt = 'jpg';
                     break;
                 case 'image/gif':
                     $imgExt = 'gif';
                     break;
                 case 'image/png':
                     $imgExt = 'png';
                     break;
                 default:
                     return $matches[0];
                     // Don't understand, return as is
             }
             $imgPath = 'assets/uploads/' . $imgFilename . '.' . $imgExt;
             // Save the file to disk if it doesn't exist
             try {
                 if (!file_exists($imgPath)) {
                     $imgDecoded = base64_decode($imgBase64);
                     $fp = fopen($imgPath, 'w');
                     if (!$fp) {
                         return $matches[0];
                     }
                     fwrite($fp, $imgDecoded);
                     fclose($fp);
                 }
             } catch (\Exception $e) {
                 if ($fp != null) {
                     fclose($fp);
                 }
             }
             return 'src="' . assets() . 'uploads/' . $imgFilename . '.' . $imgExt . '"';
         }, $html);
         //Setting values for tabel columns
         try {
             $this->db->trans_start();
             $data = array('idArtikel' => $id, 'judulArtikel' => $this->input->post('judulArtikel'), 'waktu' => date('Y-m-d', now()));
             //diubah jadi update
             if ($this->artikel_model->form_update($id, $data) === false) {
                 throw new \Exception();
             }
             $this->artikel_model->isi_delete($id);
             $this->load->helper('html_divider');
             $substring = htmlDivide($html);
             for ($i = 0; $i < count($substring); $i++) {
                 $data = array('idArtikel' => $id, 'isiArtikel' => $substring[$i]);
                 if ($this->artikel_model->isi_update($id, $data) === false) {
                     throw new \Exception();
                 }
             }
             $this->db->trans_complete();
             $success[] = "Artikel berhasil diedit";
         } catch (\Exception $e) {
             $this->db->trans_rollback();
             $error[] = "Gagal mengedit artikel";
         }
         $this->session->set_flashdata('success', $success);
         $this->session->set_flashdata('error', $error);
         redirect('/c_artikel', 'refresh');
     }
 }
Exemplo n.º 24
0
?>

<div class="main">
  <div class="container">
    <div id="news" class="news">

      <article class="news-content">
        <h1 class="title"><?php 
echo $post->title;
?>
</h1>
        <div class="meta">
          <span class="date">Published: September 1, 2015</span>
        </div>
        <img src="<?php 
echo assets('assets/img/gambar_konten_artikel.jpg');
?>
" alt="" />

        <p>
          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        </p>
        <p>
          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        </p>
        <p>
          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        </p>
      </article>

    </div>
Exemplo n.º 25
0
    <script src="<?php 
echo assets('scripts/bootstrap.min.js');
?>
"></script>
    <script src='<?php 
echo assets('scripts/modernizer.min.js');
?>
'></script>
    <script src='<?php 
echo assets('scripts/pace.min.js');
?>
'></script>
    <script src='<?php 
echo assets('scripts/jquery.popupoverlay.min.js');
?>
'></script>
    <script src='<?php 
echo assets('scripts/jquery.slimscroll.min.js');
?>
'></script>
    <script src='<?php 
echo assets('scripts/jquery.cookie.min.js');
?>
'></script>
    <script src="<?php 
echo assets('scripts/endless.js');
?>
"></script>

</body>
</html>
Exemplo n.º 26
0
/**
 * Load all css files
 *
 * @author awlad<*****@*****.**>
 * @param $dirs
 * @return string
 */
function stylesheets($dirs)
{
    echo assets($dirs, '<link rel="stylesheet" href="{link}">');
}
Exemplo n.º 27
0
function spyropress_conditional_scripts()
{
    $content = '
  		<!--[if IE]>
			<link rel="stylesheet" href="' . assets_css() . 'ie.css">
		<![endif]-->

		<!--[if lte IE 8]>
			<script src="' . assets() . 'vendor/respond/respond.js"></script>
            <script src="' . assets() . 'vendor/excanvas/excanvas.js"></script>
		<![endif]-->';
    echo get_relative_url($content);
}
Exemplo n.º 28
0
<?php

$this->load->view('v_header', array('nav_beranda' => "active"));
?>

<script type="text/javascript" src='<?php 
echo assets() . "js/v_berita.js";
?>
'></script>

<div class="wrap-content">
    
    <div id="global-notification">
        <?php 
$success = $this->session->flashdata('success');
$error = $this->session->flashdata('error');
if ($success != null) {
    if (count($success) > 0) {
        ?>
        <div class="alert alert-success text-center" role="alert">
            <ul>
            <?php 
        foreach ($success as $value) {
            echo "<li>" . $value . "</li>";
        }
        ?>
            </ul>
        </div>
        <?php 
    }
}
Exemplo n.º 29
0
</td>

                <td><?php 
        echo $thread->views;
        ?>
</td>

                <td>
                    <small>
                        by
                        <?php 
        $latest = $thread->last();
        ?>

                        <a href="#"><img src="<?php 
        echo assets('assets/img/forum-latest.png');
        ?>
" class="forum-post-latest" width="8" height="8"></a>

                        <?php 
        echo char_link(playerIdToName($latest->posted_by));
        ?>
,
                        <abbr title="<?php 
        echo Carbon\Carbon::createFromTimestamp($latest->created);
        ?>
"><?php 
        echo ago($latest->created);
        ?>
</abbr>
                    </small>
Exemplo n.º 30
0
    <?php 
etiquetas_og();
?>
    <!--suppress HtmlUnknownTarget -->
    <link type="text/css" rel="stylesheet" href="<?php 
plantilla();
?>
/style.css"/>
    <!--suppress HtmlUnknownTarget -->
    <link type="text/css" rel="stylesheet" href="<?php 
assets();
?>
/css/template.css"/>
    <!--suppress HtmlUnknownTarget -->
    <link type="text/css" rel="stylesheet" href="<?php 
assets();
?>
/css/templateResponsive.css"/>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

    <?php 
require_once "assets/js/gafaCore.php";
?>
    <!-- Comienza WP Head -->
    <?php 
wp_head();
?>
    <!-- Google Analytics -->
</head>
<body <?php 
body_class("normal color_negro blanco");