12 - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of 12.php

  1. <?php
  2. defined('_JEXEC') or die;
  3.  
  4. /**
  5.  * Template for Joomla! CMS, created with Artisteer.
  6.  * See readme.txt for more details on how to use the template.
  7.  */
  8.  
  9. require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';
  10.  
  11. // Create alias for $this object reference:
  12. $document = $this;
  13.  
  14. // Shortcut for template base url:
  15. $templateUrl = $document->baseurl . '/templates/' . $document->template;
  16.  
  17. Artx::load("Artx_Page");
  18.  
  19. // Initialize $view:
  20. $view = $this->artx = new ArtxPage($this);
  21.  
  22. // Decorate component with Artisteer style:
  23. $view->componentWrapper();
  24.  
  25. JHtml::_('behavior.framework', true);
  26.  
  27. ?>
  28. <!DOCTYPE html>
  29. <html dir="ltr" lang="<?php echo $document->language; ?>">
  30. <head>
  31.     <jdoc:include type="head" />
  32.     <link rel="stylesheet" href="<?php echo $document->baseurl; ?>/templates/system/css/system.css" />
  33.     <link rel="stylesheet" href="<?php echo $document->baseurl; ?>/templates/system/css/general.css" />
  34.  
  35.     <!-- Created by Artisteer v4.3.0.60745 -->
  36.     
  37.     
  38.     <meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width" />
  39.  
  40.     <!--[if lt IE 9]><script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
  41.     <link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.css" media="screen" type="text/css" />
  42.     <!--[if lte IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" media="screen" /><![endif]-->
  43.     <link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.responsive.css" media="all" type="text/css" />
  44. <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu&subset=latin" />
  45. <link rel="shortcut icon" href="<?php echo $templateUrl; ?>/favicon.ico" type="image/x-icon" />
  46.       
  47.       <script src="<?php echo $templateUrl; ?>/jquery.js"></script> 
  48.     <script>if ('undefined' != typeof jQuery) document._artxJQueryBackup = jQuery;</script>
  49.       
  50.       
  51.    
  52.     <script>jQuery.noConflict();</script>
  53.  
  54.     <script src="<?php echo $templateUrl; ?>/script.js"></script>
  55.     <script src="<?php echo $templateUrl; ?>/script.responsive.js"></script>
  56.     <script src="<?php echo $templateUrl; ?>/modules.js"></script>
  57.     <?php $view->includeInlineScripts() ?>
  58.     <script>if (document._artxJQueryBackup) jQuery = document._artxJQueryBackup;</script>
  59. </head>
  60. <body>
  61.  
  62. <div id="art-main">
  63.     <div class="art-sheet clearfix">
  64.       <jdoc:include type="modules" name="slabovid" />
  65. <header class="art-header"><?php echo $view->position('header', 'art-nostyle'); ?>
  66.  
  67.     <div class="art-shapes">
  68.         
  69.             </div>
  70.  
  71. <h1 class="art-headline">
  72.     <a href="<?php echo $document->baseurl; ?>/"><?php echo $this->params->get('siteTitle'); ?></a>
  73. </h1>
  74. <h2 class="art-slogan"><?php echo $this->params->get('siteSlogan'); ?></h2>
  75.  
  76. <div class="art-positioncontrol art-positioncontrol-674844179" id="search">
  77. <?php echo $view->position('header1', 'art-nostyle'); ?></div>
  78. <div class="art-positioncontrol art-positioncontrol-2039123862" id="slabovid">
  79. <?php echo $view->position('header2', 'art-nostyle'); ?></div>
  80.  
  81.  
  82. <a href="/index.php/karta-sajta" class="art-logo art-logo-868750734">
  83.     <img src="<?php echo $templateUrl; ?>/images/logo-868750734.png" alt="" />
  84. </a><a href="/index.php" class="art-logo art-logo-182325515">
  85.     <img src="<?php echo $templateUrl; ?>/images/logo-182325515.png" alt="" />
  86. </a><a href="/index.php/contact" class="art-logo art-logo-1764679421">
  87.     <img src="<?php echo $templateUrl; ?>/images/logo-1764679421.png" alt="" />
  88. </a><a href="/index.php?option=com_users&view=login" title="Войти на сайт" class="art-logo art-logo-1573841292">
  89.     <img src="<?php echo $templateUrl; ?>/images/logo-1573841292.png" alt="" />
  90. </a>
  91.  
  92. <?php if ($view->containsModules('user3', 'extra1', 'extra2')) : ?>
  93. <nav class="art-nav">
  94.     
  95. <?php if ($view->containsModules('extra1')) : ?>
  96. <div class="art-hmenu-extra1"><?php echo $view->position('extra1'); ?></div>
  97. <?php endif; ?>
  98. <?php if ($view->containsModules('extra2')) : ?>
  99. <div class="art-hmenu-extra2"><?php echo $view->position('extra2'); ?></div>
  100. <?php endif; ?>
  101. <?php echo $view->position('user3'); ?>
  102.  
  103.     </nav>
  104. <?php endif; ?>
  105.  
  106.                     
  107. </header>
  108. <?php echo $view->position('banner1', 'art-nostyle'); ?>
  109. <?php echo $view->positions(array('top1' => 33, 'top2' => 33, 'top3' => 34), 'art-block'); ?>
  110. <div class="art-layout-wrapper">
  111.                 <div class="art-content-layout">
  112.                     <div class="art-content-layout-row">
  113.                         <?php if ($view->containsModules('left')) : ?>
  114. <div class="art-layout-cell art-sidebar1">
  115. <?php echo $view->position('left', 'art-block'); ?>
  116.  
  117.  
  118.  
  119.  
  120.                         </div>
  121. <?php endif; ?>
  122.                         <div class="art-layout-cell art-content">
  123. <?php
  124.   echo $view->position('banner2', 'art-nostyle');
  125.   if ($view->containsModules('breadcrumb'))
  126.     echo artxPost($view->position('breadcrumb'));
  127.   echo $view->positions(array('user1' => 50, 'user2' => 50), 'art-article');
  128.   echo $view->position('banner3', 'art-nostyle');
  129.   echo artxPost(array('content' => '<jdoc:include type="message" />', 'classes' => ' art-messages'));
  130.   echo '<jdoc:include type="component" />';
  131.   echo $view->position('banner4', 'art-nostyle');
  132.   echo $view->positions(array('user4' => 50, 'user5' => 50), 'art-article');
  133.   echo $view->position('banner5', 'art-nostyle');
  134. ?>
  135.  
  136.  
  137.  
  138.                         </div>
  139.                         <?php if ($view->containsModules('right')) : ?>
  140. <div class="art-layout-cell art-sidebar2">
  141. <?php echo $view->position('right', 'art-block'); ?>
  142.  
  143.  
  144.                         </div>
  145. <?php endif; ?>
  146.                     </div>
  147.                 </div>
  148.             </div>
  149. <?php echo $view->positions(array('bottom1' => 33, 'bottom2' => 33, 'bottom3' => 34), 'art-block'); ?>
  150. <?php echo $view->position('banner6', 'art-nostyle'); ?>
  151.  
  152. <footer class="art-footer">
  153. <?php if ($view->containsModules('copyright')) : ?>
  154.     <?php echo $view->position('copyright', 'art-nostyle'); ?>
  155. <?php else: ?>
  156. <p>© 2018. Все права защищены.<br /></p>
  157. <?php endif; ?>
  158. </footer>
  159.  
  160.     </div>
  161.     <p class="art-page-footer">
  162.         <span id="art-footnote-links">Разработка сайта <a href="http://www.akiac.ru/" target="_blank">КГБУО "АКИАЦ"</a>.</span>
  163.     </p>
  164. </div>
  165.  
  166.  
  167. <?php echo $view->position('debug'); ?>
  168. </body>
  169. </html>
File Description
  • 12
  • PHP Code
  • 22 Sep-2021
  • 6.44 Kb
You can Share it: