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 custom_js(){?> | |
<script> | |
jQuery(document).ready(function($) { | |
$("#the-button").addClass("botiga-modal-trigger"); | |
}); | |
</script> | |
<?php | |
} | |
add_action('wp_head','custom_js'); |
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 new_btn_class(){ | |
return "botiga-modal-trigger"; | |
} | |
add_filter('botiga_button_class', 'new_btn_class'); | |
?> |
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 | |
/** | |
* Mega Menu Category B - Display sub cats, a featured and recent posts. | |
*/ | |
?> | |
<div class="sub-menu mega-menu mega-menu-b wrap"> | |
<div class="sub-cats"> | |
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 | |
/** | |
* Mega Menu Category - Display recent posts from a parent category. | |
*/ | |
// Walker to create the left part of mega menu | |
$sub_walker = new Walker_Nav_Menu; | |
$have_sub_menu = !empty($sub_items) ? true : false; | |
if (!isset($sub_items)) { |
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 ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly. | |
$option_name = '_tb_options'; | |
CSF::createOptions( $option_name, array( | |
'framework_title' => esc_html__('Webify', 'webify'), | |
'menu_title' => 'Theme Options', | |
'menu_slug' => 'tb-theme-options', | |
'menu_type' => 'submenu', | |
'show_in_customizer' => true, | |
'menu_parent' => 'webify_theme_welcome', |
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 | |
/** | |
* Header Template | |
* | |
* @package webify | |
* @since 1.0 | |
*/ | |
?> | |
<!doctype html> | |
<html class="no-js" <?php language_attributes(); ?>> |
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 | |
/** | |
* Excludes child terms from the main query on the category archive. | |
* | |
* @param object $query the WP_Query instance | |
* @return void | |
* @access public | |
*/ | |
function rk_fix_tax_queries_on_archives( $query ) { |
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 | |
add_theme_support( 'automatic-feed-links' ); | |
add_editor_style(); | |
//add_custom_image_header(); | |
/** | |
* Set the content width based on the theme's design and stylesheet. | |
*/ | |
if ( ! isset( $content_width ) ) |
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 | |
/** | |
* Frontend Theme Functions. | |
* | |
* @package magplus | |
* @subpackage Template | |
*/ | |
/** | |
* Theme Loader | |
* @param string $logo_field |
NewerOlder