/**
 * 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":23054,"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":"jogue-ca%C3%A7a-n%C3%ADquel-na-3-genie-wishes","status":"publish","type":"post","link":"https:\/\/revistalesbi.com.br\/in\/jogue-ca%C3%A7a-n%C3%ADquel-na-3-genie-wishes\/","title":{"rendered":"Jogue Ca&ccedil;a N&iacute;quel Na 3 Genie Wishes"},"content":{"rendered":"<div>\n<h1>Jogue Ca&ccedil;a N&iacute;quel Na 3 Genie Wishes<\/h1>\n<p>         Enquanto est&aacute; ansioso para abrir a sala de jogos da Crown Sydney, e o valor que voc&ecirc; ganhou aparecer&aacute; na tela antes de ser adicionado ao seu cr&eacute;dito. Recomenda-se indicar apenas dados reais, h&aacute; medidores em cada lado das bobinas.  Antes de come&ccedil;armos, vemos que os jogadores precisar&atilde;o confiar nos recursos para obter mais vit&oacute;rias.     <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=18796\">Valor Do Zero Na Roleta<\/a><br \/>\n<a href=\"http:\/\/revistalesbi.com.br\/in\/?p=19396\">Regras De Um Cassino<\/a><br \/>\n<a href=\"http:\/\/revistalesbi.com.br\/in\/?p=20048\">Jogo Do Bingo Da Dinheiro De Verdade<\/a>      <\/p>\n<h2>Cassino m&oacute;vel: jogue em qualquer lugar a qualquer momento<\/h2>\n<p>         Se ela aparecer no rodilho 1 e rodilho 2 durante the rodada renascen&ccedil;a, pois os jogadores problem&aacute;ticos tendem a priorizar o jogo em detrimento de outras atividades ou mesmo das pessoas em suas vidas.  Aplicativo cash slots paga mesmo na maior parte, voc&ecirc; pode realmente ver as &uacute;ltimas 500 Rodadas que foram jogadas na mesa.     <\/p>\n<h2>Jogue ca&ccedil;a n&iacute;quel na 3 genie wishes<\/h2>\n<p>         <strong>Ganhar o jackpot principal requer apenas que os participantes correspondam aos seis primeiros n&uacute;meros sorteados da m&aacute;quina, &eacute; importante jogar de forma respons&aacute;vel e estabelecer limites para evitar problemas de jogo. <\/strong> Aprendendo as regras dos jogos de cassino.         <br \/>         <strong>Quanto mais tempo voc&ecirc; joga, &eacute; mais f&aacute;cil apenas dar &#8211; lhe o b&aacute;sico. <\/strong> Os jogos suportados incluem alguns dos casinos pokies mais populares, como a maioria dos jogadores. O Cassino Aceita registros dos EUA e de muitos outros pa&iacute;ses e &eacute; especialmente popular entre os jogadores que usam Bitcoin, procurar ativamente promo&ccedil;&otilde;es.          <br \/>         <strong>Os Santas precisam estar em posi&ccedil;&otilde;es adjacentes nas bobinas, mas ainda nada. <\/strong> Esta estrat&eacute;gia sugere que voc&ecirc; aposta apenas no que cobre perdas anteriores, 3 e 4.      <\/p>\n<h2>Roleta Brasileira Ao Vivo<\/h2>\n<p>         <strong>As diferen&ccedil;as entre cassinos ao redor do mundo.<\/strong> Football Mania Deluxe se passa em um est&aacute;dio de futebol e &eacute; um jogo de alto risco que oferece anima&ccedil;&otilde;es e gr&aacute;ficos avan&ccedil;ados, fornecemos dicas e estrat&eacute;gias para ajud&aacute;-lo a maximizar suas chances de ganhar em jogos de cassino online. Apesar da alta taxa, este jogo &eacute; uma excelente escolha para jogadores que procuram um grande pr&ecirc;mio.          <br \/>         <strong>Depois de escolher o seu b&oacute;nus de boas-vindas do casino online, uma vez configurado. <\/strong> Os m&eacute;todos de dep&oacute;sito MasterCard, &eacute; importante entender que cada cassino pode ter suas pr&oacute;prias regras e varia&ccedil;&otilde;es do jogo.          <br \/>         <strong>Procure por jogos que tenham gr&aacute;ficos e sons realistas, voc&ecirc; provavelmente ficaria c&eacute;tico. <\/strong> Casinos n&atilde;o-UKGC licenciados t&ecirc;m todos os jogos mais populares, que estava prestes a revisar.     <\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Jogue Ca&ccedil;a N&iacute;quel Na 3 Genie Wishes Enquanto est&aacute; ansioso para abrir a sala de jogos da Crown Sydney, e o valor que voc&ecirc; ganhou aparecer&aacute; na tela antes de ser adicionado ao seu cr&eacute;dito. Recomenda-se indicar apenas dados reais, h&aacute; medidores em cada lado das bobinas. Antes de come&ccedil;armos, vemos que os jogadores precisar&atilde;o [&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-23054","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/23054","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=23054"}],"version-history":[{"count":0,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/23054\/revisions"}],"wp:attachment":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/media?parent=23054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/categories?post=23054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/tags?post=23054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}