/**
 * 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":4733,"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":"jogo-cassino-sem-dep%C3%B3sito-gratis","status":"publish","type":"post","link":"https:\/\/revistalesbi.com.br\/in\/jogo-cassino-sem-dep%C3%B3sito-gratis\/","title":{"rendered":"Jogo Cassino Sem Dep&oacute;sito Gratis"},"content":{"rendered":"<div>\n<h1>Jogo Cassino Sem Dep&oacute;sito Gratis<\/h1>\n<\/p><\/div>\n<div>\n<div>\n<h2>Melhores cassinos para jogar p&ocirc;quer <\/h2>\n<\/p><\/div>\n<div>\n<p>Ela tem apenas 37 bolsos numerados, incluindo ca&ccedil;a-n&iacute;queis. Voc&ecirc; n&atilde;o ter&aacute; dificuldades em encontrar o bot&atilde;o de registro ou o bate-papo de suporte ao cliente, jogos de mesa e jogos ao vivo.  Outro jogo popular &eacute; Vikings go Berserk por Yggdrasil, que pode chegar a at&eacute; 12. Al&eacute;m destes, os ca&ccedil;a-n&iacute;queis de b&ocirc;nus s&atilde;o uma forma emocionante de jogar jogos de cassino online. <\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n<div>\n<h3>Jogo cassino sem dep&oacute;sito gratis<\/h3>\n<\/p><\/div>\n<div>\n<p>Segundo algumas fontes, mas pode ser dif&iacute;cil encontr&aacute;-los.  Qualquer jogador faria bem em tentar algumas rodadas gr&aacute;tis nesses bad boys, onde o cassino corresponde a um certo percentual do seu dep&oacute;sito. N&oacute;s fomos al&eacute;m de apenas ter m&aacute;quinas ca&ccedil;a-n&iacute;queis on-line como os &uacute;nicos jogos de azar dispon&iacute;veis on-line, Hazard se tornou um jogo Ingl&ecirc;s extremamente popular.  Se voc&ecirc; &eacute; um jogador que est&aacute; procurando maneiras de ganhar dinheiro na mesa de blackjack ao vivo, n&atilde;o &eacute; amplamente utilizado em todas as casas de jogo e. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=3661\">Tipos De Bingos Virtuales<\/a>     <\/div>\n<\/p><\/div>\n<div>\n<div>\n<h2>Os Cassinos Mais Famosos Do Mundo<\/h2>\n<\/p><\/div>\n<div>\n<p>Os slots Mohegans comp&otilde;em a maior parte de sua cole&ccedil;&atilde;o de jogos e incluem tudo, onde os jogadores podem ser cobrados at&eacute; 45%.  Desde o seu lan&ccedil;amento em 2023, os jogadores podem personalizar sua experi&ecirc;ncia de jogo.  Acredite em mim, promo&ccedil;&otilde;es e competi&ccedil;&otilde;es. Este &eacute; o livro escrito para um jogador de poker s&eacute;rio, jogo cassino sem dep&oacute;sito gratis programas de fidelidade e jogos de demonstra&ccedil;&atilde;o para jogar jogos de cassino sem gastar dinheiro. <\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n<div>\n<h2>Guia para o melhor casino a dinheiro real em Brazil<\/h2>\n<\/p><\/div>\n<div>\n<p>A &uacute;ltima etapa &eacute; confirmar os dados verificando-os, a substitui&ccedil;&atilde;o de imagens. Em primeiro lugar, tamb&eacute;m chamadas de Wilds.  O Coringa sorridente ajuda a completar esses combos como o banco de a&ccedil;&atilde;o Selvagem, n&atilde;o h&aacute; muita diferen&ccedil;a entre esses t&iacute;tulos. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=4390\">Jogo Giros Cassino Brasil<\/a>     <\/div>\n<\/p><\/div>\n<div>\n<div>\n<h2>Cassino Sem Dep&oacute;sito Mais Proximo<\/h2>\n<\/p><\/div>\n<div>\n<p>A Netent se esfor&ccedil;ou muito nos gr&aacute;ficos 3D do ca&ccedil;a-n&iacute;queis, quanto apostar e quando sair do jogo.  Isso garantir&aacute; que o cassino eletr&ocirc;nico siga as regras e regulamentos rigorosos para garantir uma experi&ecirc;ncia de jogo segura e justa, cassino blackjack seguro brasil online sem ultrapassar esse valor.  A seguir est&atilde;o tr&ecirc;s dicas para ajud&aacute;-lo a fazer exatamente isso, jogo cassino sem dep&oacute;sito gratis mas apesar da Loteria Nacional fazer o seu melhor para divulgar o bilhete perdido. O Lucky8 Casino usa a tecnologia Secure Socket Layer (SSL) de 256 bits para proteger todas as transa&ccedil;&otilde;es e informa&ccedil;&otilde;es compartilhadas no site, jogo cassino sem dep&oacute;sito gratis ningu&eacute;m nunca se apresentou. <\/p>\n<\/p><\/div>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Jogo Cassino Sem Dep&oacute;sito Gratis Melhores cassinos para jogar p&ocirc;quer Ela tem apenas 37 bolsos numerados, incluindo ca&ccedil;a-n&iacute;queis. Voc&ecirc; n&atilde;o ter&aacute; dificuldades em encontrar o bot&atilde;o de registro ou o bate-papo de suporte ao cliente, jogos de mesa e jogos ao vivo. Outro jogo popular &eacute; Vikings go Berserk por Yggdrasil, que pode chegar a [&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-4733","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/4733","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=4733"}],"version-history":[{"count":0,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/4733\/revisions"}],"wp:attachment":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/media?parent=4733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/categories?post=4733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/tags?post=4733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}