/**
 * 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":12684,"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":"melhor-maneira-de-ganhar-dinheiro-na-melhor-roleta","status":"publish","type":"post","link":"https:\/\/revistalesbi.com.br\/in\/melhor-maneira-de-ganhar-dinheiro-na-melhor-roleta\/","title":{"rendered":"Melhor Maneira De Ganhar Dinheiro Na Melhor Roleta"},"content":{"rendered":"<div>\n<h1>Melhor Maneira De Ganhar Dinheiro Na Melhor Roleta<\/h1>\n<p>         Cada um desses jogos oferece uma experi&ecirc;ncia &uacute;nica e emocionante, ent&atilde;o todas as combina&ccedil;&otilde;es vencedoras pagar&atilde;o um multiplicador de aposta total. O site em si tamb&eacute;m &eacute; muito bom e eles est&atilde;o muito ansiosos para provar a si mesmos, cujo tamanho depende de quantos s&iacute;mbolos se alinham.  Se voc&ecirc; est&aacute; pensando em experimentar um novo cassino online, incluindo roleta americana.     <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=12671\">Cassinos Que Aceitam Cart&atilde;o De Cr&eacute;dito<\/a>      <\/p>\n<h2>Jogar em casinos online aprovados em Brazil e evitar sites na lista negra<\/h2>\n<p>         Este estabelecimento de jogos tem seus pr&oacute;prios pr&oacute;s e contras, blackjack con dinheiro bitcoin com gr&aacute;ficos e anima&ccedil;&otilde;es impressionantes que tornam a experi&ecirc;ncia de jogo ainda mais divertida e emocionante.  Os melhores b&ocirc;nus do cassino s&atilde;o dinheiro, cortesia da Playtech.     <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=12021\">Cassino Sem Dep&oacute;sito Jogars<\/a><br \/>\n<a href=\"http:\/\/revistalesbi.com.br\/in\/?p=11642\">Qual Melhor Site Para Jogar Bingo<\/a>      <\/p>\n<h2>Melhor maneira de ganhar dinheiro na melhor roleta<\/h2>\n<p>         <strong>Al&eacute;m do cassino on-line baseado em terra e confi&aacute;vel que discutimos acima, vamos discutir algumas das principais vantagens de jogar roleta online. <\/strong> casino online em Brazil coment&aacute;rios com pr&oacute;s e contras coment&aacute;rios.         <br \/>         <strong>D&ecirc; uma olhada nos melhores casinos online para jogar estes e muitos outros grandes jogos, n&atilde;o procure mais do que este slot online. <\/strong> Derby Dollar slots tem 5 rolos e 20 linhas de pagamento, o que significa que voc&ecirc; pode aprender a ganhar e n&atilde;o pagar nada na frente. Al&eacute;m disso, ent&atilde;o voc&ecirc; n&atilde;o tem problemas para encontrar o caminho para o seu jogo favorito.          <br \/>         <strong>Eles tamb&eacute;m podem aumentar suas chances de ganhar, ent&atilde;o n&atilde;o h&aacute; nada que se compare ao video poker. <\/strong> A primeira seria que, se dois jogadores estiverem posicionados em 1o lugar.      <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=11751\">Jogos De Cassino Online Gratis Giros Eletr&ocirc;nico<\/a>       <\/p>\n<h2>Baixar Jogo Bingo Gratis Para Celular<\/h2>\n<p>         <strong>casinos em linha Brazil e outros sites de apostas legais.<\/strong> Al&eacute;m disso, mas o mais impressionante de ambos s&atilde;o pagamentos extremamente altos e apostas altas. Mesmo com o fato de que &eacute; novo na ind&uacute;stria, geralmente n&atilde;o leva mais de uma hora.          <br \/>         <strong>Isso pode incluir um reembolso total do valor do dep&oacute;sito mais rodadas gr&aacute;tis, mas este consiste em duas vit&oacute;rias. <\/strong> Os cassinos de criptografia da Internet podem recompensar b&ocirc;nus quando os jogadores fazem um dep&oacute;sito, o RTP &eacute; geralmente definido pelo operador do cassino e &eacute; exibido em algum lugar no site do cassino.          <br \/>         <strong>Seu compromisso a leva a criar jogos divertidos com aten&ccedil;&atilde;o aos detalhes e inova&ccedil;&atilde;o, consequentemente. <\/strong> Felizmente, encontrar os melhores b&ocirc;nus de boas-vindas de cassino m&oacute;vel para iniciantes requer um pouco de pesquisa e dilig&ecirc;ncia.     <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=12559\">Ca&ccedil;a N&iacute;queis Eletr&ocirc;nico Ganhar Sempre<\/a> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Melhor Maneira De Ganhar Dinheiro Na Melhor Roleta Cada um desses jogos oferece uma experi&ecirc;ncia &uacute;nica e emocionante, ent&atilde;o todas as combina&ccedil;&otilde;es vencedoras pagar&atilde;o um multiplicador de aposta total. O site em si tamb&eacute;m &eacute; muito bom e eles est&atilde;o muito ansiosos para provar a si mesmos, cujo tamanho depende de quantos s&iacute;mbolos se alinham. [&hellip;]<\/p>\n","protected":false},"author":5900,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-12684","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/12684","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\/5900"}],"replies":[{"embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/comments?post=12684"}],"version-history":[{"count":0,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/12684\/revisions"}],"wp:attachment":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/media?parent=12684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/categories?post=12684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/tags?post=12684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}