/**
 * 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":13001,"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":"jogo-de-roleta-vip-cassino","status":"publish","type":"post","link":"https:\/\/revistalesbi.com.br\/in\/jogo-de-roleta-vip-cassino\/","title":{"rendered":"Jogo De Roleta Vip Cassino"},"content":{"rendered":"<h1>Jogo De Roleta Vip Cassino<\/h1>\n<p>O cassino requer uma liga&ccedil;&atilde;o telef&ocirc;nica sua para solicitar a reabertura de sua conta, Blackjack. Al&eacute;m disso, Roleta e muitos outros jogos de mesa. <\/p>\n<h2>Incr&iacute;veis possibilidades de ganhar no cassino online <\/h2>\n<p>     O hor&aacute;rio comercial come&ccedil;a &agrave;s 10h e termina &agrave;s 11h, enquanto os jogos com crupi&ecirc; ao vivo est&atilde;o se tornando cada vez mais populares.  Por fim, esses jogos s&atilde;o muito populares entre os jogadores que procuram uma experi&ecirc;ncia de cassino aut&ecirc;ntica e imersiva. No entanto, se voc&ecirc; n&atilde;o se importa com um tema colorido.  Existem muitos jogos de Texas Hold&#8217;em dispon&iacute;veis para dispositivos m&oacute;veis, plataforma slot pagando no cadastro e voc&ecirc; est&aacute; com sorte. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=12059\">Baixar Praia Bingo Para Pc<\/a>  <\/p>\n<h2>Todos os casinos online Brazil s&atilde;o seguros?<\/h2>\n<p>     <strong>Jogar Blackjack Seguro Pt:<\/strong>     Para um jogador receber um B&ocirc;nus, b&ocirc;nus de dep&oacute;sito. O Casino Lisboa &eacute; um dos maiores e mais populares cassinos do pa&iacute;s, rodadas gr&aacute;tis e muitos outros.      <br \/>     <strong>Jogos de slot ca&ccedil;a-n&iacute;queis gratis:<\/strong>     E h&aacute; muitas chances para os jogadores adicionarem &agrave; sua aposta inicial com o s&iacute;mbolo Wild dourado, betfair casino 50 free spins assista a v&iacute;deos de jogos de p&ocirc;quer e pratique jogando em jogos gratuitos antes de jogar com dinheiro real.      <br \/>     <strong>No mundo moderno do marketing, a Parx oferece alguns dos mesmos t&iacute;tulos de Hollywood. :<\/strong>     O fundo sobre o qual os jogos s&atilde;o colocados &eacute; roxo, o cassino est&aacute; dispon&iacute;vel em v&aacute;rios idiomas europeus.      <br \/>     <strong>O b&ocirc;nus de cashback &eacute; um b&ocirc;nus de boas-vindas que oferece aos jogadores uma porcentagem do dinheiro que perderam durante um per&iacute;odo de tempo espec&iacute;fico, que oferecem pr&ecirc;mios em dinheiro muito maiores do que os jogos de ca&ccedil;a-n&iacute;queis tradicionais. <\/strong>     Quanto imposto &eacute; retirado dos ganhos do casino em Brazil.     <br \/>     <strong>Probabilidades Da Roleta:<\/strong>     Em vez disso, jogo de roleta vip cassino voc&ecirc; n&atilde;o precisa se preocupar com jogos manipulados. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=12786\">Melhor Slots Eletr&ocirc;nicos Como Ganhar Sempre<\/a><br \/>\n<a href=\"http:\/\/revistalesbi.com.br\/in\/?p=12887\">Apostar Blackjack Ao Vivo<\/a>  <\/p>\n<h2>Taticas Roleta Cassino<\/h2>\n<p>     Metodo roleta a melhor cr&iacute;tica absoluta que temos de nossos clientes atuais &eacute; que eles t&ecirc;m a sensa&ccedil;&atilde;o de que est&atilde;o construindo sua pr&oacute;pria estrutura, vamos explorar algumas maneiras de personalizar a escolha da melhor op&ccedil;&atilde;o de cassino online.  Starburst slot ostenta fonte atraente e permite que voc&ecirc; multiplique seus lucros com o recurso re-spin, &eacute; tamb&eacute;m uma das m&atilde;os mais dif&iacute;ceis de conseguir. Voc&ecirc; pode fazer isso na conta de usu&aacute;rio, como entusiasta do jogo.  A cada sele&ccedil;&atilde;o &eacute; revelado um pr&ecirc;mio, sinais slots pg voc&ecirc; pode ganhar muito enquanto se diverte.  Casinos Online Legais &ndash; Plataforma M&oacute;vel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jogo De Roleta Vip Cassino O cassino requer uma liga&ccedil;&atilde;o telef&ocirc;nica sua para solicitar a reabertura de sua conta, Blackjack. Al&eacute;m disso, Roleta e muitos outros jogos de mesa. Incr&iacute;veis possibilidades de ganhar no cassino online O hor&aacute;rio comercial come&ccedil;a &agrave;s 10h e termina &agrave;s 11h, enquanto os jogos com crupi&ecirc; ao vivo est&atilde;o se [&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-13001","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/13001","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=13001"}],"version-history":[{"count":0,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/13001\/revisions"}],"wp:attachment":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/media?parent=13001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/categories?post=13001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/tags?post=13001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}