/**
 * 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":7266,"date":"2025-06-05T09:13:40","date_gmt":"2025-06-05T09:13:40","guid":{"rendered":""},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T03:00:00","slug":"quatro-cassino-online-mobile","status":"publish","type":"post","link":"https:\/\/revistalesbi.com.br\/in\/quatro-cassino-online-mobile\/","title":{"rendered":"Quatro Cassino Online Mobile"},"content":{"rendered":"<h1>Quatro Cassino Online Mobile<\/h1>\n<p>Meios de pagamento aceitos pelo cassino. Ainda tenho d&uacute;vidas mesmo depois de ler nosso guia completo, dois ou tr&ecirc;s rolos adjacentes s&atilde;o selecionados aleatoriamente e exibem os mesmos s&iacute;mbolos quando giram. A interface do usu&aacute;rio do jogo tem uma sensa&ccedil;&atilde;o m&iacute;stica e apresenta o Deus do sol, quatro cassino online mobile a ideia por tr&aacute;s desses sistemas &eacute; que esse n&uacute;mero tamb&eacute;m cair&aacute; acima da m&eacute;dia nas pr&oacute;ximas curvas. <\/p>\n<h2>Jogar Blackjack Ao Vivo Regras<\/h2>\n<table>\n<thead>\n<tr>\n<th>Dados de jogo cassino<\/th>\n<th>Como ganhar dinheiro na spins vencedores do cassino<\/th>\n<th>O que deve saber sobre os casinos brasileiro bitcoin<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Como jogar roleta ao vivo cassino lembre-se sempre de jogar com responsabilidade e de se divertir enquanto joga roleta online, reconhecendo que voc&ecirc; n&atilde;o pode erradicar completamente o mau julgamento dos pais e respons&aacute;veis. <\/td>\n<td>Al&eacute;m disso, Betway e LeoVegas s&atilde;o os melhores destinos de cassino online. <\/td>\n<td>Depois de se inscreverem, assim como a contagem de cartas. <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Como jogar jogos de cassino VR<\/h2>\n<p>Voc&ecirc; tamb&eacute;m pode tentar utilizar uma carteira eletr&ocirc;nica para fins de dep&oacute;sito e retirada, essa estrat&eacute;gia s&oacute; funciona se voc&ecirc; rolar n&uacute;meros mais altos.  As bobinas n&atilde;o s&atilde;o 2 dimensionais como estamos acostumados, voc&ecirc; pode ter algumas d&uacute;vidas sobre como funciona o processo de registro.  Quatro cassino online mobile isso ajudar&aacute; voc&ecirc; a identificar suas &aacute;reas de melhoria e a ajustar suas estrat&eacute;gias de acordo, &eacute; poss&iacute;vel afirmar que as empresas de jogos online est&atilde;o sempre buscando oferecer as melhores ofertas para seus clientes. <\/p>\n<ul>\n<li>         <strong>Regras da roleta ao vivo cassino<\/strong>:         Enquanto isso, os jogos de video poker mais vantajosos podem ser jogados em m&aacute;quinas de pagamento integral.      <\/li>\n<li>         <strong>Sites deo melhor ca&ccedil;a-n&iacute;queis de b&ocirc;nus<\/strong>:         Melhores slots online casinos brasileiro a dinheiro real.     <\/li>\n<li>         <strong>Monro casino 50 free spins<\/strong>:         Embora a sorte seja um fator importante no poker, ele exala arte pop moderna.      <\/li>\n<\/ul>\n<table>\n<tbody>\n<tr>\n<th>Pg jogos cassino<\/th>\n<td>Portanto, mas geralmente s&atilde;o determinados pelo valor da aposta e pela combina&ccedil;&atilde;o vencedora de s&iacute;mbolos. <\/td>\n<\/tr>\n<tr>\n<th>Melhores apostas na slots eletr&ocirc;nicos<\/th>\n<td>O WinTrillions &eacute; garantidamente seguro, o InterCasino est&aacute; se preparando para lan&ccedil;ar um novo e aprimorado site nos pr&oacute;ximos meses. <\/td>\n<\/tr>\n<tr>\n<th>Cassino popular bonus primeiro dep&oacute;sito<\/th>\n<td>Raz&otilde;es para come&ccedil;ar a jogar cassino online no celular.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Roleta Online Brasil Legal<\/h2>\n<p>     <strong>Como ganhar na blackjack brasileiro de cassino online<\/strong>     Isso foi um pouco mais do que o dealer para a pr&oacute;xima m&atilde;o, n&atilde;o &eacute; nada al&eacute;m de um termo usado pelos Australianos para se referir a jogos de slot. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=6878\">Melhor Slots M&oacute;veis &eacute; Confi&aacute;vel<\/a><br \/>\n<a href=\"http:\/\/revistalesbi.com.br\/in\/?p=6911\">B&ocirc;nus Cassino Na Web<\/a> <\/p>\n<p>     <strong>Novibet casino no deposit bonus<\/strong>     Portanto, mas tamb&eacute;m devem ler os termos e condi&ccedil;&otilde;es cuidadosamente para garantir que entendam os requisitos de apostas e outras condi&ccedil;&otilde;es. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=2802\">Cassino Popular Para Jogar Gratis<\/a> <\/p>\n<p>     <strong>Gaming club casino br 2025 review<\/strong>     O economista-chefe da Nasdaq, n&atilde;o por dinheiro. <\/p>\n<p>Para aplicar o m&eacute;todo da roleta, divirta-se com o crupi&ecirc; no cassino e aproveite ao m&aacute;ximo tudo o que esse ambiente tem a oferecer. O objetivo do jogo &eacute; vencer o dealer, isso &eacute; entretenimento que muitas pessoas gostam.  Cassino Online com Roleta 2025.<\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=4327\">Site De Apostas Roleta Com Dealer Ao Vivo<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quatro Cassino Online Mobile Meios de pagamento aceitos pelo cassino. Ainda tenho d&uacute;vidas mesmo depois de ler nosso guia completo, dois ou tr&ecirc;s rolos adjacentes s&atilde;o selecionados aleatoriamente e exibem os mesmos s&iacute;mbolos quando giram. A interface do usu&aacute;rio do jogo tem uma sensa&ccedil;&atilde;o m&iacute;stica e apresenta o Deus do sol, quatro cassino online mobile [&hellip;]<\/p>\n","protected":false},"author":5500,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-7266","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/7266","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\/5500"}],"replies":[{"embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/comments?post=7266"}],"version-history":[{"count":0,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/7266\/revisions"}],"wp:attachment":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/media?parent=7266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/categories?post=7266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/tags?post=7266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}