Example #1
0
 function test_concat()
 {
     define('MOD_CONCAT', True);
     /* Nothing extra. */
     $this->assertEqual(stylesheets(array('one.css')), '<link rel="stylesheet" type="text/css" href="one.css" />');
     /* Extras. */
     $this->assertEqual(stylesheets(array('one.css'), array('media' => 'screen')), '<link rel="stylesheet" type="text/css" href="one.css" media="screen"/>');
     $this->assertEqual(stylesheets(array('one.css', 'foo/two.css'), array('media' => 'screen')), '<link rel="stylesheet" type="text/css" href="??one.css,foo/two.css" media="screen"/>');
     $this->assertEqual(scripts(array('one.js', 'two.js')), '<script type="text/javascript" src="??one.js,two.js" ></script>');
 }
 /**
  * Test scripts enqueue.
  */
 public function test_scripts()
 {
     // Regular
     \WP_Mock::wpFunction('wp_enqueue_script', array('times' => 1, 'args' => array('wpd', 'template_url/assets/js/wp-documenter.min.js', array(), '0.0.1', true)));
     scripts();
     $this->assertConditionsMet();
     // Debug Mode
     \WP_Mock::wpFunction('wp_enqueue_script', array('times' => 1, 'args' => array('wpd', 'template_url/assets/js/wp-documenter.js', array(), '0.0.1', true)));
     scripts(true);
     $this->assertConditionsMet();
 }
			<div class="content col-sm-9 mt text-left">
				<div class="text-center">
					<img src="/introduction/images/breathegym1st.jpg" alt="BreatheGym 1st">
				</div>
				<p>abc</p>
			</div>-->
		</div>
		<!-- FOOTER -->
		
	</div><!-- /.container -->
	<footer class='grayBackground'>
		<div class='row contents'>
			<div class='col-md-3 col-xs-12'>
				<img class="ml" src = "/resources/teambreathelogo.png"/>
			</div>
			<div class='col-md-9 col-xs-12'>
				<br>
				<p>브리드 복싱 짐 &amp; 크로스핏</p>
				<p>BreatheGym.com은 Team Breathe, Inc의 소유입니다.</p>
				<p>Copyright © 2015 Breathe Boxing Gym &amp; Crossfit. All rights reserved.</p>
				<p class='pull-right mr'><a href='#'>Back to top</a></p>
			</div>
		</div>
	</footer>
	<!-- script references -->
	<?php 
scripts(array('/common/js/navigation.js', 'js/introduction.js'));
?>
</body>
</html>
function maintenance_status(){
	$arraydb=unserialize(@file_get_contents("ressources/logs/ufdbguard.db.status.txt"));
	$countDeToCompile=count($arraydb);
	if($countDeToCompile>0){
		$compile_missing=Paragraphe("database-spider-compile-64.png","{compile_missing_db}",
		"{compile_missing_db_www_text}","javascript:CompileMissingdb()");
		$warn="
		<table style='width:100%'>
		<tr>
		<td width=1% valign='top'><img src='img/database-error-48.png'></td>
		<td width=99% valign='top'><div class=text-info style='color:#8D0707'><strong style='font-size:16px'>$countDeToCompile !:</strong> {databases_are_not_compiled_warn}</div>
		<td width=1% valign='top'>". imgtootltip("refresh-32.png","{refresh}","RefreshTab('ufdbguard-tabs-all')")."</td>
		</td>
		</tr>
		</table>";
		
	}
	
	$recompile_all_database=Paragraphe("database-spider-compile2-64.png",
	"{recompile_all_db}","{recompile_all_db_ww_text}","javascript:ReCompiledb()");
	
	$compile_schedule=Paragraphe("clock-gold-64.png","{compilation_schedule}","{compilation_schedule_text}","javascript:ReCompileScheduleudbg()");
	
	$tr[]=$compile_missing;
	$tr[]=$recompile_all_database;
	$tr[]=$compile_schedule;
	
	$tables[]="<table style='width:100%'><tr>";
$t=0;
while (list ($key, $line) = each ($tr) ){
		$line=trim($line);
		if($line==null){continue;}
		$t=$t+1;
		$tables[]="<td valign='top'>$line</td>";
		if($t==3){$t=0;$tables[]="</tr><tr>";}
		
}
if($t<3){
	for($i=0;$i<=$t;$i++){
		$tables[]="<td valign='top'>&nbsp;</td>";				
	}
}
				
$tables[]="</table>";	
	
	$html="$html
	<div id='action-div'></div>
	$warn".implode("\n",$tables);		  

	 
$tpl=new templates();
$THINCLIENT_REBUILDED_TEXT=$tpl->javascript_parse_text("{THINCLIENT_REBUILDED_TEXT}");

$page=CurrentPageName();
$script="
<div id='dbguard-list-size' style='height:250px;overflow:auto'></div>

<script>
	
". scripts()."
		
	maintenance_status_list();	
	

</script>";

$html=$tpl->_ENGINE_parse_body("$html$script","squid.newbee.php,squid.index.php");

echo $html;		
	
	
}
Example #5
0
?>


			</div>
		</div>
	</section>

	<!-- *************************************** -->
	<!-- FOOTER -->
	<!-- copy right and credits by development -->
	<!-- *************************************** -->

	<section class="container-fluid">
		<div class="row">
			<div class="col-md-12">
				<!-- FOOTER -->
				<?php 
include_once 'INCLUDES/functions.php';
FOOTER();
?>
			</div>
		</div>
	</section>

	<!-- SCRIPTS -->
	<?php 
include_once 'INCLUDES/functions.php';
echo scripts();
?>
</body>
</html>
Example #6
0
          </div>
        </div>

        <div class = "row">
          <div class="input-field col s10 push-s1 m8 push-m2 l6 push-l3">
            <label for="senha">Senha</label>
            <input id="senha" name = "senha" type="password" required="" aria-required="true" class="validate" maxlength="16" length="16">
          </div>
        </div>

        <div id="teste"></div>

        <div class="center">
          <button class="btn waves-effect waves-light light-blue lighten-1" type="submit" name="action">Entrar</button>
        </div>
      </form>
    </div>
  </div>

  <footer>
  </footer>


  <!--  Scripts-->
  <?php 
scripts();
?>

</body>
</html>
/**
 * Return sql to limit scripts to given script-name, feature, "default" or all
 *
 * @param string $what ="all"
 * @return string
 */
function limit_script_sql($what = "all")
{
    $limit_script_sql = '';
    if ($what !== false && $what !== 'all') {
        $script_ids = array();
        foreach (scripts($what, true) as $name) {
            $script_ids[] = label2id($name);
        }
        $limit_script_sql = ' AND script IN (' . implode(',', $script_ids) . ')';
    }
    return $limit_script_sql;
}
	<!-- Marketing messaging and featurettes
	================================================== -->
	<!-- Wrap the rest of the page in another container to center all the content. -->

	<div class='container register'>
		<p class="success">입력하신 이메일로 비밀번호를 전송했습니다.
		</p>
		<br/>
		<div class='text-center'>
			<button type='submit' class='btn btn-primary'>확인</button>
		</div>

		<hr>
		<!-- FOOTER -->
		<div class='container mt'>
			<footer>
				<p>브리드 복싱 짐 &amp; 크로스핏</p>
				<p>1호점 : 경기도 안산시 어쩌구저쩌구</p>
				<p>2호점 : 경기도 안산시 상록구 어쩌구</p>
				<p class='pull-right'><a href='#'>Back to top</a></p>
				<p>Copyright © 2015 Breathe Boxing Gym &amp; Crossfit. All rights reserved.</p>
			</footer>
		</div>

	</div><!-- /.container -->
	<?php 
scripts(array('/common/js/navigation.js', '/common/js/register.js'));
?>
</body>
</html>
Example #9
0
function docHead()
{
    metaTags();
    links();
    scripts();
}
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 에러페이지', array('/common/css/navigation.css'));
?>
	<!--[if lt IE 9]>
	<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
login();
navigation();
?>
	<h1>ERROR PAGE</h1>
	<p>알 수 없는 문제가 발생했습니다.</p>
	<a href="index.php">홈으로</a>
	<div class='container marketing'>
		<!-- FOOTER -->
		<footer>
			<p>브리드 복싱 짐 &amp; 크로스핏</p>
			<p>1호점 : 경기도 안산시 어쩌구저쩌구</p>
			<p>2호점 : 경기도 안산시 상록구 어쩌구</p>
			<p class='pull-right'><a href='#'>Back to top</a></p>
			<p>Copyright © 2015 Breathe Boxing Gym &amp; Crossfit. All rights reserved.</p>
		</footer>
	</div><!-- /.container -->
	<?php 
scripts(array('/common/js/navigation.js'));
?>
</body>
</html>
echo $memberInfo[4];
?>
</p>
					</div>
				</div>
				<br/>
				<div class='text-center'>
					<a type='submit' class='btn btn-primary' id='modify'>수정</a>
					<button type='reset' class='btn btn-default'>초기화</button>
				</div>
			</form>
		</div>
		<hr>
		<!-- FOOTER -->
		<div class='container mt'>
			<footer>
				<p>브리드 복싱 짐 &amp; 크로스핏</p>
				<p>1호점 : 경기도 안산시 어쩌구저쩌구</p>
				<p>2호점 : 경기도 안산시 상록구 어쩌구</p>
				<p class='pull-right'><a href='#'>Back to top</a></p>
				<p>Copyright © 2015 Breathe Boxing Gym &amp; Crossfit. All rights reserved.</p>
			</footer>
		</div>

	</div><!-- /.container -->
	<?php 
scripts(array('/common/js/navigation.js', '/member/js/modify.js'));
?>
</body>
</html>