Modularización de GKACHELE SaaS

This commit is contained in:
gkachele
2026-01-17 11:40:17 +01:00
commit b6820848b8
1338 changed files with 339275 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?php
function arvina_child_css() {
$arvina_parent_theme_css = 'arvina-abiz-style';
wp_enqueue_style(
$arvina_parent_theme_css,
get_template_directory_uri() . '/style.css'
);
wp_enqueue_style(
'arvina-style',
get_stylesheet_uri(),
array( $arvina_parent_theme_css )
);
}
add_action( 'wp_enqueue_scripts', 'arvina_child_css',999);
function arvina_custom_header_setup()
{
$header_image = get_template_directory_uri() . '/assets/images/bg/breadcrumbg.jpg';
add_theme_support('custom-header', apply_filters('abiz_custom_header_args', array(
'default-image' => $header_image,
'default-text-color' => 'fff',
'width' => 2000,
'height' => 200,
'flex-height' => true,
'wp-head-callback' => 'abiz_header_style',
)));
}
add_action('after_setup_theme', 'arvina_custom_header_setup');
require get_stylesheet_directory() . '/core/customizer/custom-controls/customize-upgrade-control.php';
/**
* Import Options From Parent Theme
*
*/
function arvina_parent_theme_options() {
$abiz_mods = get_option( 'theme_mods_abiz' );
if ( ! empty( $abiz_mods ) ) {
foreach ( $abiz_mods as $abiz_mod_k => $abiz_mod_v ) {
set_theme_mod( $abiz_mod_k, $abiz_mod_v );
}
}
}
add_action( 'after_switch_theme', 'arvina_parent_theme_options' );

View File

@@ -0,0 +1,40 @@
<?php
/*
* Upgrade to pro options
*/
function arvina_upgrade_pro_options( $wp_customize ) {
class Arvina_WP_Button_Customize_Control extends WP_Customize_Control {
public $type = 'abiz_upgrade_premium';
function render_content() {
?>
<div class="premium-info">
<ul>
<li><a class="support" href="https://themesdaddy.com/support/" target="_blank"><i class="dashicons dashicons-lightbulb"></i><?php _e( 'Need Support ?','arvina' ); ?> </a></li>
<li><a class="free-pro" href="https://demo.themesdaddy.com/arvina-pro/" target="_blank"><i class="dashicons dashicons-visibility"></i><?php _e( 'Premium Demo','arvina' ); ?> </a></li>
<li><a class="upgrade-to-pro" href="https://themesdaddy.com/themes/arvina-pro/" target="_blank"><i class="dashicons dashicons-update-alt"></i><?php _e( 'Upgrade to Pro','arvina' ); ?> </a></li>
<li><a class="show-love" href="https://wordpress.org/support/theme/arvina/reviews/#new-post" target="_blank"><i class="dashicons dashicons-smiley"></i><?php _e( 'Share a Good Review','arvina' ); ?> </a></li>
</ul>
</div>
<?php
}
}
$wp_customize->add_setting(
'premium_info_buttons',
array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'arvina_sanitize_text',
)
);
$wp_customize->add_control( new Arvina_WP_Button_Customize_Control( $wp_customize, 'premium_info_buttons', array(
'section' => 'abiz_upgrade_premium',
))
);
}
add_action( 'customize_register', 'arvina_upgrade_pro_options', 999 );