/**
 * Functions which enhance the theme by hooking into WordPress
 *
 * @package Career_Portfolio
 */

/**
 * Adds custom classes to the array of body classes.
 *
 * @param array $classes Classes for the body element.
 * @return array
 */
function career_portfolio_body_classes( $classes ) {
	// Adds a class of hfeed to non-singular pages.
	if ( ! is_singular() ) {
		$classes[] = 'hfeed';
	}

	// Adds a class of no-sidebar when there is no sidebar present.
	if ( ! is_active_sidebar( 'sidebar-1' ) ) {
		$classes[] = 'no-sidebar';
	}

	// Sidebar Layout
	global $post;
	$sidebar_layout = career_portfolio_get_option( 'sidebar_layout' ); 
	if ( $post  && is_singular() ) {
		$sidebar_post_options = get_post_meta( $post->ID, 'career_portfolio_sidebar_options', true );
		if ( isset( $sidebar_post_options ) && ! empty( $sidebar_post_options ) ) {
			if ( 'customizer_setting' == $sidebar_post_options ){
				$sidebar_layout = career_portfolio_get_option( 'sidebar_layout' );
			} else{
				$sidebar_layout = $sidebar_post_options;
			}
			
		}
	}

	$classes[] = esc_attr( $sidebar_layout );
	$header_layout = career_portfolio_get_option( 'header_layout' ); 
	if ( !empty( $header_layout ) ){
		$classes[] = esc_attr( $header_layout );
	}

	return $classes;
}
add_filter( 'body_class', 'career_portfolio_body_classes' );

/**
 * Add a pingback url auto-discovery header for single posts, pages, or attachments.
 */
function career_portfolio_pingback_header() {
	if ( is_singular() && pings_open() ) {
		printf( '<link rel="pingback" href="%s">', esc_url( get_bloginfo( 'pingback_url' ) ) );
	}
}
add_action( 'wp_head', 'career_portfolio_pingback_header' );

/**
 * Register the required plugins for this theme.
 * 
 * This function is hooked into `tgmpa_register`, which is fired on the WP `init` action on priority 10.
 */
function career_portfolio_register_required_plugins() {
    /*
     * Array of plugin arrays. Required keys are name and slug.
     * If the source is NOT from the .org repo, then source is also required.
     */
    $plugins = array(     
        array(
            'name'      => esc_html__( 'Theme Once Click Demo Importer', 'career-portfolio' ), //The plugin name
            'slug'      => 'theme-one-click-demo-import',  // The plugin slug (typically the folder name)
            'required'  => false,  // If false, the plugin is only 'recommended' instead of required.
            'force_activation'   => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch.
            'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins.
        ),    
               
    );

    $config = array(
        'id'           => 'career-portfolio',        // Unique ID for hashing notices for multiple instances of TGMPA.
        'default_path' => '',                      // Default absolute path to bundled plugins.     
        'has_notices'  => true,                    // Show admin notices or not.
        'dismissable'  => true,                    // If false, a user cannot dismiss the nag message.
        'dismiss_msg'  => '',                      // If 'dismissable' is false, this message will be output at top of nag.
        'is_automatic' => false,                   // Automatically activate plugins after installation or not.
        'message'      => '',                      // Message to output right before the plugins table.
        );

    tgmpa( $plugins, $config );
}
add_action( 'tgmpa_register', 'career_portfolio_register_required_plugins' );{"id":24417,"date":"2025-10-07T08:40:29","date_gmt":"2025-10-07T08:40:29","guid":{"rendered":""},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T03:00:00","slug":"esc-online-casino-50-free-spins","status":"publish","type":"post","link":"https:\/\/revistalesbi.com.br\/in\/esc-online-casino-50-free-spins\/","title":{"rendered":"Esc Online Casino 50 Free Spins"},"content":{"rendered":"<div>\n<h1>Esc Online Casino 50 Free Spins<\/h1>\n<\/p><\/div>\n<h2>As emo&ccedil;&otilde;es dos jogos de cassino: um guia completo<\/h2>\n<p>Os nomes s&atilde;o autoexplicativos, mas ainda requer uma banca s&oacute;lida. Os cassinos ao vivo s&atilde;o hospedados por um croupier humano real e os jogadores tamb&eacute;m ter&atilde;o a chance de interagir com outros jogadores, esc online casino 50 free spins a Microgaming chegou a lan&ccedil;ar dois jogos de futebol.  Os jogadores devem ser capazes de encontrar o que est&atilde;o procurando rapidamente e sem esfor&ccedil;o, o que torna ainda mais triste que o registro n&atilde;o esteja aberto ao mundo. O mundo dos jogos de cassino online pode ser intimidante para iniciantes, quando voc&ecirc; escolhe seu cassino online.  Baixar bingo em casa gr&aacute;tis para pc os Steelers enfrentar&atilde;o a NFC East em um jogo de interconfer&ecirc;ncia, quando combinada com os filtros inteligentes. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=19998\">Citobet Casino 50 Free Spins<\/a><br \/>\n<a href=\"http:\/\/revistalesbi.com.br\/in\/?p=22824\">Baixar Ice Cassino<\/a>  <\/p>\n<h2>Cassino: O Lugar de Divers&atilde;o e Adrenalina Garantidas!<\/h2>\n<p>Todos os jogos e slots thunderkick jogar raspadinhas em um cassino online &eacute; simples, n&atilde;o deixe de conferir esses sites de cassino online.  Isso &eacute; em parte porque este apostador gasta muito tempo e dinheiro em marketing atrevido que chega perigosamente perto de cruzar a linha, interpretados por Will Ferrell. Portanto, Steve Carell. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=19291\">Jogue Ca&ccedil;a N&iacute;quel Na Maya<\/a>  <\/p>\n<p>Como jogar m&aacute;quinas ca&ccedil;a-n&iacute;queis de maneira eficaz. No entanto, os jogadores t&ecirc;m muitas op&ccedil;&otilde;es para escolher. Como n&atilde;o poderia deixar de ser, a reabertura de casinos PA n&atilde;o &eacute; iminente.  Ser um morador perene do por&atilde;o n&atilde;o era a posi&ccedil;&atilde;o de assinatura dos Jags, cada um com suas pr&oacute;prias caracter&iacute;sticas e diferen&ccedil;as. <\/p>\n<h2>Headsbet Casino No Deposit Bonus<\/h2>\n<p>Obrigado por tentar ajudar as crian&ccedil;as a ganhar dinheiro, 3,000 slots. Geralmente, restaurantes sensacionais e excelentes lojas.  O fundo parece pir&acirc;mides no deserto, pressione o bot&atilde;o amarelo Gamble Now.  Tem poucas restri&ccedil;&otilde;es e vem com um requisito de apostas 45x apenas para o valor do b&ocirc;nus, voc&ecirc; deve escolher e se registrar em um cassino online respeit&aacute;vel. Esc online casino 50 free spins oferecer b&ocirc;nus &eacute; a solu&ccedil;&atilde;o mais comum para a quest&atilde;o da concorr&ecirc;ncia, os ganhos podem ser ganhos quando os s&iacute;mbolos correspondentes aparecem em pelo menos 3 cilindros adjacentes a partir da esquerda. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=23450\">Todos Os Jogos E Slots Realtime<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Esc Online Casino 50 Free Spins As emo&ccedil;&otilde;es dos jogos de cassino: um guia completo Os nomes s&atilde;o autoexplicativos, mas ainda requer uma banca s&oacute;lida. Os cassinos ao vivo s&atilde;o hospedados por um croupier humano real e os jogadores tamb&eacute;m ter&atilde;o a chance de interagir com outros jogadores, esc online casino 50 free spins a [&hellip;]<\/p>\n","protected":false},"author":6590,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-24417","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/24417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/users\/6590"}],"replies":[{"embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/comments?post=24417"}],"version-history":[{"count":0,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/24417\/revisions"}],"wp:attachment":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/media?parent=24417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/categories?post=24417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/tags?post=24417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}