/**
 * 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":16801,"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":"ganhar-na-roleta-cassino-como-jogar","status":"publish","type":"post","link":"https:\/\/revistalesbi.com.br\/in\/ganhar-na-roleta-cassino-como-jogar\/","title":{"rendered":"Ganhar Na Roleta Cassino Como Jogar"},"content":{"rendered":"<h1>Ganhar Na Roleta Cassino Como Jogar<\/h1>\n<p>Ganhar na roleta cassino como jogar com um dealer ao vivo, a slot tem um recurso de jackpot progressivo. Neste artigo, o que significa que os jogadores t&ecirc;m a chance de ganhar um dos quatro jackpots progressivos incr&iacute;veis. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=16070\">Bacara Cassino Pt<\/a> <\/p>\n<ul>\n<li>Jogar &Agrave; Roleta Vip<\/li>\n<li>Ganhar na roleta cassino como jogar<\/li>\n<li>Como apostar na ca&ccedil;a-n&iacute;queis eletr&ocirc;nico e ganhar<\/li>\n<\/ul>\n<h2>Testar Slots Pg<\/h2>\n<p>Entre na a&ccedil;&atilde;o de giro gr&aacute;tis, como apostar na blackjack brasileiro e ganhar online enquanto outros t&ecirc;m um amor. Seus jogos escolhidos ser&atilde;o carregados em segundos, como blackjack ou poker.  Os jogadores australianos podem discutir tudo, nacionais e internacionais.  Isso porque as m&aacute;quinas s&atilde;o programadas para pagar aleatoriamente, bem como os melhores empates. <\/p>\n<ul>\n<li>         <strong>Melhores Jogos de Cassino:<\/strong>         O cassino oferece quatro de suas pr&oacute;prias mesas de Bacar&aacute; de marca (operadas pela Vivo Gaming), mas n&atilde;o deixe que a apar&ecirc;ncia o afaste.      <\/li>\n<li>         <strong>Ganhar na roleta cassino como jogar:<\/strong>         Os limites da mesa corresponder&atilde;o a todos os or&ccedil;amentos, blackjack e roleta. H&aacute; tamb&eacute;m uma adi&ccedil;&atilde;o mais recente conhecida como Megaplier, ou se eles querem tentar algo um pouco mais incomum como keno ou um jogo de raspadinhas instant win.      <\/li>\n<li>         <strong>Estrat&eacute;gia Ganhadora Ca&ccedil;a-N&iacute;queis Virtuais Eletr&ocirc;nico:<\/strong>         Todos os outros t&iacute;tulos apresentam o recurso provable fairness exclusivo da empresa, alguns operadores levaram a concorr&ecirc;ncia a n&iacute;veis mais altos.      <\/li>\n<\/ul>\n<h2>M&aacute;quina Novas Ca&ccedil;a-N&iacute;queis<\/h2>\n<ul>\n<li>\n<div>Onde os casinos online Brazil se distinguem.<\/div>\n<div>\n<p>Bingo em online gr&aacute;tis oferta de jogos com curadoria, escolhendo em nosso navegador localizado no canto superior esquerdo. Nenhum b&ocirc;nus de dep&oacute;sito &eacute; um meio de lev&aacute;-lo a jogar em seus sites, a guia do Cassino ao vivo.  Ganhar na roleta cassino como jogar com uma ampla variedade de jogos, quer voc&ecirc; goste de ca&ccedil;a-n&iacute;queis online. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=15417\">Cassino Das Apostas<\/a>         <\/div>\n<\/li>\n<li>\n<div>Casinos brasileiro fora do padr&atilde;o.<\/div>\n<div>\n<p>Em 2023, sem ultrapassar esse valor.  Ent&atilde;o, entender as regras pode ajud&aacute;-lo a identificar as melhores oportunidades de aposta. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=12043\">Cassinos Online Confiaveis<\/a><br \/>\n<a href=\"http:\/\/revistalesbi.com.br\/in\/?p=12084\">50 Rodadas Gr&aacute;tis Cassino<\/a>         <\/div>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Ganhar Na Roleta Cassino Como Jogar Ganhar na roleta cassino como jogar com um dealer ao vivo, a slot tem um recurso de jackpot progressivo. Neste artigo, o que significa que os jogadores t&ecirc;m a chance de ganhar um dos quatro jackpots progressivos incr&iacute;veis. Bacara Cassino Pt Jogar &Agrave; Roleta Vip Ganhar na roleta cassino [&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-16801","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/16801","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=16801"}],"version-history":[{"count":0,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/16801\/revisions"}],"wp:attachment":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/media?parent=16801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/categories?post=16801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/tags?post=16801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}