Another switch button made entirely with CSS. Works better with Google Chrome. Inspired by http://dribbble.com/shots/343597-Switch-button
A Pen by Cainã Maturo on CodePen.
<?PHP | |
/** | |
* Spintax - A helper class to process Spintax strings. | |
* @name Spintax | |
* @author Jason Davis - https://www.codedevelopr.com/ | |
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/ | |
*/ | |
class Spintax | |
{ | |
public function process($text) |
<?php if ((ceil($usersTotal / $perPage)) >= 2) { ?> | |
<ul class="pagination pagination-sm no-margin pull-right"> | |
<?php if ($currentPage != 1): ?> | |
<li> | |
<a href="<?php echo base_url() ?>super/users_list">«</a> | |
</li> | |
<?php endif; ?> |
<?php | |
$email = 'nixon@png.com.au'; | |
//get the domain here | |
$domain = array_pop(explode('@', $email)); | |
?> |
<html> | |
<body> | |
Welcome <?php echo $_POST["name"]; ?><br> | |
Your email address is: <?php echo $_POST["email"]; ?> | |
</body> | |
</html> |
<html> | |
<body> | |
<form action="result.php" method="post"> | |
Name: <input type="text" name="name"><br> | |
E-mail: <input type="text" name="email"><br> | |
<input type="submit"> | |
</form> | |
</body> |
<?php | |
/* The loop */ | |
if ( get_post_gallery() ) : | |
$gallery = get_post_gallery( $post, false ); | |
?> | |
<div class="sliderss"> | |
<a href="javascript:" class="pera-close"></a> | |
<?php | |
/* Loop through all the image and output them one by one */ |
$robots = Category::query() | |
->columns(array('Category.id', 'Category.cate_name', 'Tags.tag_name')) | |
->join('Tags', 'Category.id = Tags.tag_ref_id') | |
->execute(); |
//pick the 404 page from view folder | |
$this->view->pick('404/404'); |
<?php echo Phalcon\Tag::stylesheetLink("css/local.css"); ?> | |
<?php echo Phalcon\Tag::image("img/stsllc_logo.png");?> | |
<?php echo Phalcon\Tag::javascriptInclude("js/jquery-1.10.2.min.js");?> |