This file contains 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 | |
if( class_exists( 'WooCommerce' ) ) { | |
// WooCommerce stylesheets | |
wp_deregister_style( 'woocommerce-layout' ); | |
wp_deregister_style( 'woocommerce-smallscreen' ); | |
wp_deregister_style( 'tinvwl' ); | |
if( is_shop() || is_tax( 'product_cat') || is_singular( 'product') || is_tax( 'product_tag') || is_checkout() || is_cart() || is_account_page() ) { | |
wp_enqueue_style( 'woocommerce-general' ); | |
} else { |
This file contains 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 | |
function filix_get_page_template_id( $template = 'page-job-apply-form.php' ) { | |
$pages = get_pages(array( | |
'meta_key' => '_wp_page_template', | |
'meta_value' => $template | |
)); | |
foreach($pages as $page){ | |
$page_id = $page->ID; | |
} | |
return $page_id; |
This file contains 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 | |
/** | |
* Get a specific html tag from content | |
* @return a specific HTML tag from the loaded content | |
*/ | |
function rogan_get_html_tag( $tag = 'blockquote', $content = '' ) { | |
$dom = new DOMDocument(); | |
$dom->loadHTML($content); | |
$divs = $dom->getElementsByTagName( $tag ); | |
$i = 0; |
This file contains 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 | |
if ( ! function_exists( '_get_contact_form_7_posts' ) ) : | |
function _get_contact_form_7_posts(){ | |
$args = array( 'post_type' => 'wpcf7_contact_form', 'posts_per_page' => -1 ); | |
$catlist = []; | |
if( $categories = get_posts( $args ) ){ |
This file contains 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 | |
function saasland_pagination() { | |
global $wp_query; | |
if ( $wp_query->max_num_pages <= 1 ) return; | |
$big = 999999999; // need an unlikely integer | |
$pages = paginate_links( array( |
This file contains 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
<form name="loginform" id="loginform" action="<?php echo esc_url(home_url('/')); ?>wp-login.php" method="post" class="sign_form"> | |
<div class="row"> | |
<div class="col-md-6 col-sm-6 col-xs-12 form-group"> | |
<input class="form-control" id="name_email" name="log" type="text" | |
placeholder="Username" onfocus="this.placeholder=''" | |
onblur="this.placeholder='Username'"> | |
</div> | |
<div class="col-md-6 col-sm-6 col-xs-12 form-group"> | |
<input class="form-control" type="password" name="pwd" id="pass" | |
placeholder="Password" onfocus="this.placeholder=''" |
This file contains 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 | |
$prev_post = get_previous_post(); | |
$next_post = get_next_post(); | |
if($prev_post) : ?> | |
<a href="<?php echo get_permalink($prev_post->ID) ?>" class="prev"><i class="ti-arrow-left"></i> | |
<?php esc_html_e('Prev Project', 'saasland') ?> | |
</a> | |
<?php endif; ?> | |
<?php if($next_post) : ?> | |
<a href="<?php echo get_permalink($next_post->ID) ?>" class="next">Next Project<i class="ti-arrow-right"></i></a> |
NewerOlder