This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $wp_filesystem; | |
if(!empty($wp_filesystem)){ | |
$cdn_urls = __('https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.0/animate.min.css',r); | |
$cdn_urls = __('http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css', r); | |
} | |
if( $cdn_urls !== false) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> | |
<script>window.jQuery || document.write("<script src='<?php echo get_template_directory_uri(); ?>/js/libs/jquery-1.6.1.min.js'>\x3C/script>")</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The template for displaying all pages. | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the WordPress construct of pages | |
* and that other 'pages' on your WordPress site will use a | |
* different template. | |
* | |
* @package stepup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Source http://www.pootlepress.com/2014/04/100-woocommerce-tips-tricks/ | |
Change the Woocommerce star ratings to show stars rather than theme ratings | |
**/ | |
.star-rating{float:right;width:80px;height:16px;background:url(images/star.png) repeat-x left 0} | |
.star-rating span{background:url(images/star.png) repeat-x left -32px;height:0;padding-top:16px;overflow:hidden;float:left} | |
.hreview-aggregate .star-rating{margin:10px 0 0 0} | |
#review_form #respond{position:static;margin:0;width:auto;padding:0 0 0;background:transparent none;border:0} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source bootstrap.js | |
//Inspiration http://stackoverflow.com/questions/19740121/keep-bootstrap-dropdown-open-when-clicked-off | |
// Though the Inspiration is about bootstrap 3.0 | |
// It is often found that the dropdown-menu gets off when clicked inside. | |
// So it is the code to make the dropdown menu open when clicked inside. | |
// basically in bootstrap.js in the line 765 to 770 it is written | |
//$(document) | |
// .on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus) | |
//.on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class=" modal hide fade" id="myModal" > | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
</div> | |
<div class="modal-body"> | |
<?php | |
$args = array( | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sometimes while writing text in <li> elements in 2 line when <li> element has an icon before, it is seen that the 1st text line keeps the distance from the icon properly but the 2nd line starts from beneath the icon. So to clear all these and make it a fresh one follow the following files. | |
Only the thing: | |
1. ul style : display: table; | |
2. ul li style: display: table-row; | |
3. ul li:before : display: table-cell; | |
4. Add li:after style to have the proper margin from one li to another li |