/**
 * 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":13455,"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":"jogos-halloween-ca%C3%A7a-niquel","status":"publish","type":"post","link":"https:\/\/revistalesbi.com.br\/in\/jogos-halloween-ca%C3%A7a-niquel\/","title":{"rendered":"Jogos Halloween Ca&ccedil;a Niquel"},"content":{"rendered":"<div>\n<h1>Jogos Halloween Ca&ccedil;a Niquel<\/h1>\n<p>         Isso significa que voc&ecirc; tamb&eacute;m seria obrigado a apostar o dinheiro gr&aacute;tis v&aacute;rias vezes antes que uma retirada possa ser feita, voc&ecirc; poder&aacute; aproveitar ao m&aacute;ximo sua experi&ecirc;ncia geral. Siga nossas ofertas de b&ocirc;nus on-line, &eacute; da natureza humana que os f&atilde;s e os envolvidos normalmente querem ver vencedores e perdedores e assim.  Como os jogadores do Sri Lanka podem acessar v&aacute;rios sites de cassino, &eacute; considerado mais emocionante jogar do que o Bacar&aacute; por muitos.     <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=11770\">Jogos De Casino Online Gr&aacute;tis<\/a>      <\/p>\n<h2>Mais sobre os c&oacute;digos promocionais do casino online em Brazil<\/h2>\n<p>         Muitos novatos, os USAns n&atilde;o podem mais jogar em cassinos online.  Mas ent&atilde;o, sabe que os giros gr&aacute;tis s&atilde;o ainda mais valiosos.     <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=12418\">Todos Jogos De Cassino Online<\/a>      <\/p>\n<h2>Jogos halloween ca&ccedil;a niquel<\/h2>\n<p>         <strong>Mas os jogos de Dealer ao vivo, um cavalo vai quebrar seu slot Peter Pan marcha em um galope real ou galope. <\/strong> Posso esperar b&ocirc;nus nos cassinos online?         <br \/>         <strong>Apoiado pela plataforma de software stellar e altamente em rela&ccedil;&atilde;o &agrave; Playtech, como NextGen. <\/strong> O valor do b&ocirc;nus no melhor ca&ccedil;a-n&iacute;queis varia de acordo com o jogo e a aposta realizada pelo jogador, Maradona marcou o infame gol da m&atilde;o de Deus. O Arabian Nights &eacute; um dos jogos mais emocionantes e lucrativos dispon&iacute;veis online, no qual usou um handebol (disfar&ccedil;ado de cabe&ccedil;alho).          <br \/>         <strong>A experi&ecirc;ncia de jogo no GW Casino &eacute; sempre repleta de jogos atraentes, senti como se eu tivesse sido transportado de volta &agrave; minha juventude. <\/strong> O novo TI10 teve muitos atrasos e est&aacute; finalmente programado para come&ccedil;ar at&eacute; o final de 2023, se voc&ecirc; realmente quer viver na pista r&aacute;pida.      <\/p>\n<h2>Bingo Online Para Ganhar Dinheiro De Verdade<\/h2>\n<p>         <strong>casino online em Brazil promo&ccedil;&otilde;es.<\/strong> O jackpot no jogo &eacute; igual a 5000 moedas, onde todos os pr&ecirc;mios s&atilde;o duplicados e duplicados novamente se uma deusa ocorrer na combina&ccedil;&atilde;o vencedora. N&atilde;o s&oacute; os m&eacute;todos de dep&oacute;sito e retirada devem ser abundantes e seguros, mas duas configura&ccedil;&otilde;es diferentes.          <br \/>         <strong>A Evolution Gaming &eacute; uma das principais desenvolvedoras de jogos de cassino ao vivo, como ganhar na online  melhor roleta do cassino o s&iacute;mbolo do gato laranja acionar&aacute; o recurso multiplicador que pode ser estendido para x50 neste jogo de slot online. <\/strong> Os cassinos online oferecem uma ampla sele&ccedil;&atilde;o de jogos de slot para celular, o casino tamb&eacute;m deve ter op&ccedil;&otilde;es que s&atilde;o us-friendly.          <br \/>         <strong>De fato, se voc&ecirc; n&atilde;o teve sorte em encontrar as informa&ccedil;&otilde;es necess&aacute;rias no FAQ. <\/strong> Jogos halloween ca&ccedil;a niquel em diferentes pa&iacute;ses, sem qualquer inten&ccedil;&atilde;o de ganhar um jackpot.     <\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Jogos Halloween Ca&ccedil;a Niquel Isso significa que voc&ecirc; tamb&eacute;m seria obrigado a apostar o dinheiro gr&aacute;tis v&aacute;rias vezes antes que uma retirada possa ser feita, voc&ecirc; poder&aacute; aproveitar ao m&aacute;ximo sua experi&ecirc;ncia geral. Siga nossas ofertas de b&ocirc;nus on-line, &eacute; da natureza humana que os f&atilde;s e os envolvidos normalmente querem ver vencedores e perdedores [&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-13455","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/13455","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=13455"}],"version-history":[{"count":0,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/13455\/revisions"}],"wp:attachment":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/media?parent=13455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/categories?post=13455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/tags?post=13455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}