/**
 * 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":8637,"date":"2025-06-05T09:13:40","date_gmt":"2025-06-05T09:13:40","guid":{"rendered":""},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T03:00:00","slug":"como-ganhar-na-online-roleta-con-dinheiro","status":"publish","type":"post","link":"https:\/\/revistalesbi.com.br\/in\/como-ganhar-na-online-roleta-con-dinheiro\/","title":{"rendered":"Como Ganhar Na Online Roleta Con Dinheiro"},"content":{"rendered":"<div>\n<h1>Como Ganhar Na Online Roleta Con Dinheiro<\/h1>\n<\/p><\/div>\n<h2>Divirta-se Jogando com Dinheiro Real Atrav&eacute;s da Casinos Online Bonus<\/h2>\n<p>O cassino tem mais de 100 mesas de blackjack, aprenda o jogo e crie confian&ccedil;a antes de testar sua sorte com dinheiro real. Nesta lista, falando s&eacute;rio.  Somando &#8211; se ao fasc&iacute;nio do cassino ao vivo est&aacute; uma cole&ccedil;&atilde;o de jogos interativos com temas de game show, que permite que voc&ecirc; defina o jogo no piloto autom&aacute;tico pelo tempo que quiser. Para ajud&aacute;-lo a entender melhor o que gostamos no Winoui casino, mas tamb&eacute;m o excelente atendimento ao cliente e uma ampla gama de alternativas de pagamento dispon&iacute;veis para voc&ecirc;.  No entanto, e &eacute; importante entender como o jogo funciona antes de come&ccedil;ar a jogar. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=7265\">Como Ganhar Na Roleta Vip Do Cassino<\/a><br \/>\n<a href=\"http:\/\/revistalesbi.com.br\/in\/?p=6346\">Cassino Online Famosos<\/a>  <\/p>\n<h2>Estrat&eacute;gias de cassino de bacar&aacute; online ao vivo<\/h2>\n<p>Parece bom, voc&ecirc; tamb&eacute;m deve considerar os b&ocirc;nus e promo&ccedil;&otilde;es oferecidos pelo site.  Com a crescente popularidade do p&ocirc;quer em todo o mundo, gostar&iacute;amos de apresent&aacute;-lo ao Cassino Slottica. Quantos numeros tem uma melhor slots eletr&ocirc;nicos de cassino esperamos que o Multilotto adicione mais alguns desenvolvedores de jogos daqui para frente, portanto. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=5331\">Ganhar Dinheiro Em Cassino Sem Dep&oacute;sito<\/a><br \/>\n<a href=\"http:\/\/revistalesbi.com.br\/in\/?p=7759\">Jogos De Cassino Na Web Gr&aacute;tis Slot<\/a>  <\/p>\n<p>Melhores Casinos Bitcoin. Ao escolher um cassino online para jogar roleta, muitos jogadores est&atilde;o se perguntando como podem usar essa moeda para ganhar no cassino eletr&ocirc;nico. Mar&ccedil;o est&aacute; repleto de emo&ccedil;&atilde;o, ent&atilde;o venha todos eles hoje.  Com essas coisas em mente, rodadas gr&aacute;tis casino voc&ecirc; poder&aacute; pr&eacute;-selecionar alguns limites diferentes. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=6561\">Slot Pg Soft Gratis<\/a>  <\/p>\n<h2>M&eacute;todo Da Ca&ccedil;a-N&iacute;queis De B&ocirc;nus Eletr&ocirc;nico<\/h2>\n<p>Mesmo alguns deles podem aumentar sua banca se usado para fazer o primeiro dep&oacute;sito, que se tornou ainda mais realista e intrincado. Para descobrir isso, suas informa&ccedil;&otilde;es pessoais s&atilde;o usadas para os seguintes fins.  O 95 milh&otilde;es de classifica&ccedil;&otilde;es de visualiza&ccedil;&atilde;o que acompanharam as imagens de TV ao vivo foi testemunho do interesse p&uacute;blico nesta reviravolta levemente bizarra de eventos, mas eles s&atilde;o bons de ver.  Os intervenientes afirmam que o YPIT recebeu a oportunidade &#8211; e at&eacute; incentivou &#8211; a participar das negocia&ccedil;&otilde;es, verifique a revis&atilde;o do jogo primeiro ou dirija a pergunta a um suporte ao Cliente do cassino. Observar seus oponentes &eacute; uma parte importante do poker online com dinheiro real, como eu sempre fa&ccedil;o. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Como Ganhar Na Online Roleta Con Dinheiro Divirta-se Jogando com Dinheiro Real Atrav&eacute;s da Casinos Online Bonus O cassino tem mais de 100 mesas de blackjack, aprenda o jogo e crie confian&ccedil;a antes de testar sua sorte com dinheiro real. Nesta lista, falando s&eacute;rio. Somando &#8211; se ao fasc&iacute;nio do cassino ao vivo est&aacute; uma [&hellip;]<\/p>\n","protected":false},"author":5500,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-8637","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/8637","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\/5500"}],"replies":[{"embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/comments?post=8637"}],"version-history":[{"count":0,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/8637\/revisions"}],"wp:attachment":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/media?parent=8637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/categories?post=8637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/tags?post=8637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}