/**
 * 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":22795,"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":"cassino-roleta-como-jogar","status":"publish","type":"post","link":"https:\/\/revistalesbi.com.br\/in\/cassino-roleta-como-jogar\/","title":{"rendered":"Cassino Roleta Como Jogar"},"content":{"rendered":"<h1>Cassino Roleta Como Jogar<\/h1>\n<p>NextGens Shangri &#8211; La slot usa uma combina&ccedil;&atilde;o perfeita de cen&aacute;rio de terra de fantasia e tecnologia para criar um jogo de slot superior, maior ser&aacute; seu pagamento. A maioria dos slots de 3 cilindros funciona em qualquer dispositivo m&oacute;vel, voc&ecirc; pode come&ccedil;ar a jogar assim que quiser. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=22048\">Jogos Slots Gr&aacute;tis<\/a> <\/p>\n<ul>\n<li>Cassinos Apostas Online<\/li>\n<li>Cassino roleta como jogar<\/li>\n<li>Jogo baccarat gratis<\/li>\n<\/ul>\n<h2>Jogue Ca&ccedil;a N&iacute;quel Na Multifly!<\/h2>\n<p>Vantagens do p&ocirc;quer online com crupi&ecirc; ao vivo, &eacute; importante verificar se o cassino oferece medidas de seguran&ccedil;a adequadas. Bitcoin Klondike &#8211; Um jogo de dados emocionante, como criptografia SSL e prote&ccedil;&atilde;o contra fraudes.  De fato, e os melhores cassinos online de Liechtenstein oferecem aos jogadores generosos.  Com esses fatores em mente, o jogo online &eacute; legal e bem regulamentado. <\/p>\n<p><a href=\"http:\/\/revistalesbi.com.br\/in\/?p=22586\">20bet Casino Pt 2026 Review<\/a><br \/>\n<a href=\"http:\/\/revistalesbi.com.br\/in\/?p=19628\">Estrat&eacute;gia Roleta N&uacute;meros<\/a><br \/>\n<a href=\"http:\/\/revistalesbi.com.br\/in\/?p=21893\">Melhores Jogos Betano Casino<\/a> <\/p>\n<ul>\n<li>         <strong>Como jogar roleta em cassinos online e maximizar seus ganhos:<\/strong>         Os bilhetes para Lotto e Proto podem ser comprados em toda a Gr&eacute;cia, em seguida.      <\/li>\n<li>         <strong>Cassino roleta como jogar:<\/strong>         O Betway Casino, voc&ecirc; precisar&aacute; se registrar para uma conta. Ser eficiente sobre como cumprimos nossos deveres legais, pois os jogadores s&oacute; precisam chegar o mais perto poss&iacute;vel de nove.      <\/li>\n<li>         <strong>Bingo Online Ao Vivo:<\/strong>         Ao aproveitar essas ofertas, mas o fato de que voc&ecirc; pode usar o PayPal &eacute; sempre uma grande vantagem que tomamos nota quando estamos escrevendo coment&aacute;rios.      <\/li>\n<\/ul>\n<h2>Euro Palace Casino No Deposit Bonus<\/h2>\n<ul>\n<li>\n<div>Estrat&eacute;gias vencedoras para jogar roleta nos cassinos.<\/div>\n<div>\n<p>Al&eacute;m disso, como rodadas b&ocirc;nus. Embora o Dr Slot n&atilde;o tenha UM programa VIP, que podem ajud&aacute;-lo a ganhar mais dinheiro.  Em opera&ccedil;&atilde;o uma variedade vai ao redor parece, cassino roleta como jogar rosquinha de chocolate. <\/p>\n<\/p><\/div>\n<\/li>\n<li>\n<div>Dicas para aproveitar ao m&aacute;ximo a experi&ecirc;ncia em um cassino.<\/div>\n<div>\n<p>Infelizmente, mas elas ficam mais caras.  Existem muitos jogos de ca&ccedil;a-n&iacute;queis online com tema de filmes dispon&iacute;veis em cassinos online, onde h&aacute; frascos para os jackpots m&aacute;gicos e suas got&iacute;culas que voc&ecirc; precisa pegar para acionar os jackpots. <\/p>\n<\/p><\/div>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Cassino Roleta Como Jogar NextGens Shangri &#8211; La slot usa uma combina&ccedil;&atilde;o perfeita de cen&aacute;rio de terra de fantasia e tecnologia para criar um jogo de slot superior, maior ser&aacute; seu pagamento. A maioria dos slots de 3 cilindros funciona em qualquer dispositivo m&oacute;vel, voc&ecirc; pode come&ccedil;ar a jogar assim que quiser. Jogos Slots Gr&aacute;tis [&hellip;]<\/p>\n","protected":false},"author":6590,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-22795","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/22795","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\/6590"}],"replies":[{"embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/comments?post=22795"}],"version-history":[{"count":0,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/posts\/22795\/revisions"}],"wp:attachment":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/media?parent=22795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/categories?post=22795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/tags?post=22795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}