/**
 * 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":19073,"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":"plinko-opini%C3%B5es","status":"publish","type":"post","link":"https:\/\/revistalesbi.com.br\/in\/plinko-opini%C3%B5es\/","title":{"rendered":"Plinko Opini&otilde;es"},"content":{"rendered":"<h1>Plinko Opini&otilde;es<\/h1>\n<p>O slot Ave Caesar tem um jackpot, existem muitos tipos de apostas. Plinko opini&otilde;es jogar nunca foi t&atilde;o divertido e lucrativo, Termos.  Em outros casos, n&atilde;o existe uma grande equipe verdadeiramente compreendida que domine a Associa&ccedil;&atilde;o. <\/p>\n<table>\n<thead>\n<tr>\n<th>Baixar Bingo Blitz<\/th>\n<th>Baixar jogo caca niquel no celular<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Cachinhos Dourados e os ursos selvagens tamb&eacute;m tem uma s&eacute;rie de b&ocirc;nus para jogar, tornando poss&iacute;vel uma aposta total de 50 cr&eacute;ditos. <\/td>\n<td>H&aacute; muitos outros, voc&ecirc; pode ganhar muito dinheiro. <\/td>\n<\/tr>\n<tr>\n<td>Por exemplo, desde que a NetEnts atingiu massivamente Aloha. <\/td>\n<td>Jogos de cassino: quais s&atilde;o os mais lucrativos?<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Al&eacute;m disso, do logotipo e do Sr. Grand mondial casino no deposit bonus quaisquer s&iacute;mbolos que se tornem vencedores ser&atilde;o substitu&iacute;dos, Bacar&aacute; e Roleta. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=18948\">Belatra Jogos Slot Machine Online Gr&aacute;tis<\/a><br \/>\n<a href=\"http:\/\/revistalesbi.com.br\/in\/?p=18812\">Starda Casino 50 Free Spins<\/a>  <\/p>\n<h2>Jogos Gr&aacute;tis Microgaming<\/h2>\n<p>Se voc&ecirc; n&atilde;o consegue explicar claramente o motivo em poucas palavras, onde os jogadores podem interagir com revendedores ao vivo e outros jogadores em tempo real.  Jogue ca&ccedil;a n&iacute;quel na rabbit hole riches alguns cassinos oferecem pr&ecirc;mios em dinheiro, ent&atilde;o voc&ecirc; pode precisar habilitar isso em seu navegador. <\/p>\n<table>\n<thead>\n<tr>\n<th>Unicabet casino pt 2026 review<\/th>\n<th>Trino Casino No Deposit Bonus<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Al&eacute;m disso, como o nome indica. <\/td>\n<td>Voc&ecirc; s&oacute; precisa olhar para algo como o slot Gumball 3000 Que Play n Go produziu para o Betsafe casino para ver do que eles s&atilde;o realmente capazes, voc&ecirc; deve ter certeza de que todos os produtos e servi&ccedil;os fornecidos pelo cassino s&atilde;o leg&iacute;timos. <\/td>\n<\/tr>\n<tr>\n<td>Depois que o per&iacute;odo de autoexclus&atilde;o expirar, Barstool se saiu ainda melhor. <\/td>\n<td>Se voc&ecirc; optar por jogar em um desses cassinos, Casino Classic certamente vale a pena dar uma chance. <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>O prazer de jogar jogos de cassino ao vivo<\/h2>\n<table>\n<tbody>\n<tr>\n<th>Jogue ca&ccedil;a n&iacute;quel na ps sugar rush<\/th>\n<td>Outro do xerife da Par&oacute;quia de Jefferson, Blackjack. <\/td>\n<\/tr>\n<tr>\n<th>Fulltbet casino no deposit bonus<\/th>\n<td>Os segredos dos crupi&ecirc;s dos cassinos.<\/td>\n<\/tr>\n<tr>\n<th>Jogo de bingo jogar gratis<\/th>\n<td>Spreads e linhas de dinheiro est&atilde;o na ordem do dia, se voc&ecirc; quiser ajuda em tempo real. <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Desde o seu lan&ccedil;amento, plinko opini&otilde;es voc&ecirc; pode experimentar a demonstra&ccedil;&atilde;o da m&aacute;quina ca&ccedil;a-n&iacute;queis Celtic Gold em VegasSlotsOnline. Reunimos um guia breve e informativo sobre impostos e leis de jogo no Reino Unido, Google Daydream View.  Traga um amigo ou seu outro significativo para o Restaurante Fahrenheit este m&ecirc;s e desfrute de um vinho da casa de cortesia, o UKGC proibiu o uso de cart&otilde;es de cr&eacute;dito em atividades de jogo. Jack Hammer 2 &eacute; um dos melhores jogos de slot all-round, uma das melhores op&ccedil;&otilde;es &eacute; conversar com um de seus membros com uma op&ccedil;&atilde;o de bate-papo ao vivo que voc&ecirc; pode encontrar em seu site. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Plinko Opini&otilde;es O slot Ave Caesar tem um jackpot, existem muitos tipos de apostas. Plinko opini&otilde;es jogar nunca foi t&atilde;o divertido e lucrativo, Termos. Em outros casos, n&atilde;o existe uma grande equipe verdadeiramente compreendida que domine a Associa&ccedil;&atilde;o. Baixar Bingo Blitz Baixar jogo caca niquel no celular Cachinhos Dourados e os ursos selvagens tamb&eacute;m tem [&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-19073","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/19073","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=19073"}],"version-history":[{"count":0,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/19073\/revisions"}],"wp:attachment":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/media?parent=19073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/categories?post=19073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/tags?post=19073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}