Пример #1
0
 public function get_template_file($file, $root = '')
 {
     $a = get_app();
     $template_file = get_template_file($a, SMARTY3_TEMPLATE_FOLDER . '/' . $file, $root);
     $template = new FriendicaSmarty();
     $template->filename = $template_file;
     return $template;
 }
Пример #2
0
?>
 
</head>

<body>
  <?php 
get_zoolu_header();
?>
  
  <!-- Header Section -->
  <?php 
include dirname(__FILE__) . '/includes/header.inc.php';
?>
  <!-- Template Content -->  
  <?php 
include get_template_file(dirname(__FILE__) . '/templates/');
?>
  
  <!-- Footer Section -->  
  <?php 
include dirname(__FILE__) . '/includes/footer.inc.php';
?>
		
  <!-- Google Analytics -->
  <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
    try {
      var pageTracker = _gat._getTracker("UA-XXXXXXX-1");
Пример #3
0
<h2>Fatal Error</h2>

<p class="err">
    <?php 
echo nl2br(htmlentities($errstr, ENT_COMPAT, 'UTF-8'));
?>
</p>

<div id="backtrace">

    <p>
        If you choose to <b><u><a href="http://svn.mythtv.org/trac/newticket" target="_blank"> submit a bug report </a></u></b>
        please make sure to include a brief description of what you were doing,
        along with the following backtrace as an attachment <i>(please don\'t just paste the whole thing into the ticket)</i>
    </p>

    <textarea cols=100 rows=100><?php 
echo htmlentities($err);
?>
</textarea>

</div>


</div>

<?php 
// Print the page footer
require get_template_file('_shared', 'footer.php');
Пример #4
0
/**
 * Output the URL to a specified template file
 *
 * Converts filename to URL after finding location and then outputs it
 *
 * @since 1.0
 * @see get_template_file
 *
 * @param string $file Filename to find, relative to template directory
 */
function template_file($file)
{
    echo get_template_file($file);
}
Пример #5
0
 * @package     MythWeb
 * @subpackage
 *
 **/
// Set the desired page title
$page_title = 'MythWeb - Error';
// Custom headers
$headers[] = '<link rel="stylesheet" type="text/css" href="skins/errors.css">';
// Print the page header
include get_template_file('_shared', 'header.php');
?>

<div id="message">

<h2><?php 
echo htmlentities($header, ENT_COMPAT, 'UTF-8');
?>
</h2>

<p>
<?php 
echo nl2br(htmlentities($text, ENT_COMPAT, 'UTF-8'));
?>
</p>

</div>

<?php 
// Print the page footer
include get_template_file('_shared', 'footer.php');
Пример #6
0
 public function get_template_file($file, $root = '')
 {
     $a = get_app();
     $template_file = get_template_file($a, $file, $root);
     $content = file_get_contents($template_file);
     return $content;
 }
Пример #7
0
</head>

<body>
  <?php 
get_zoolu_header();
?>
  <div id="wrap">
    <div id="main" class="clearfix">      
      <!-- header and main navigation -->
      <?php 
include dirname(__FILE__) . '/includes/header.inc.php';
?>
      
      <!-- Template Content -->
      <?php 
include dirname(__FILE__) . '/templates/' . get_template_file();
?>
    </div> <!-- /#main -->
  </div> <!-- /#wrap --> 

  <!-- Footer -->
  <?php 
include dirname(__FILE__) . '/includes/footer.inc.php';
?>
  
  <?php 
get_bottom_content();
?>
  
  <script type="text/javascript">//<![CDATA[
    var myDefault;
Пример #8
0
 function get_markup_template($s, $root = '')
 {
     $stamp1 = microtime(true);
     $a = get_app();
     if ($a->theme['template_engine'] === 'smarty3') {
         $template_file = get_template_file($a, 'smarty3/' . $s, $root);
         $template = new FriendicaSmarty();
         $template->filename = $template_file;
         $a->save_timestamp($stamp1, "rendering");
         return $template;
     } else {
         $template_file = get_template_file($a, $s, $root);
         $a->save_timestamp($stamp1, "rendering");
         $stamp1 = microtime(true);
         $content = file_get_contents($template_file);
         $a->save_timestamp($stamp1, "file");
         return $content;
     }
 }