/**
 * 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":3,"date":"2020-04-13T21:49:23","date_gmt":"2020-04-14T00:49:23","guid":{"rendered":"http:\/\/lesbi.ninbuz.com\/wordpress\/?page_id=3"},"modified":"2023-11-23T11:39:16","modified_gmt":"2023-11-23T14:39:16","slug":"expediente","status":"publish","type":"page","link":"https:\/\/revistalesbi.com.br\/in\/expediente\/","title":{"rendered":"L\u00e9sbi &#8211; Conte\u00fado informativo para mulheres que se relacionam com mulheres"},"content":{"rendered":"<h2>2 Edi\u00e7\u00e3o<\/h2>\n<p><span style=\"color: #000000;\"><span style=\"font-weight: 400;\"><strong>Edi\u00e7\u00e3o:<\/strong> Ana Luiza Gon\u00e7alves<br \/>\n<\/span><span style=\"font-weight: 400;\"><strong>Assistente de edi\u00e7\u00e3o:<\/strong> Isabela Alves<br \/>\n<\/span><span style=\"font-weight: 400;\"><strong>Produ\u00e7\u00e3o executiva:<\/strong> Camila Fran\u00e7a<br \/>\n<\/span><span style=\"font-weight: 400;\"><strong>Reda\u00e7\u00e3o:<\/strong> Adriana Roque, Ana Luiza Gon\u00e7alves, Camila Fran\u00e7a, Duda Crespa, Helen Castro, Isabela Alves, Jamine Miranda, Roberta Nunes e Vanessa Perroni<br \/>\n<\/span><span style=\"font-weight: 400;\"><strong>Projeto gr\u00e1fico:<\/strong> Renata <a href=\"https:\/\/webssl.es\/must\/index.php\/2023\/11\/13\/buy-anadrol-online-6\/\" title=\"buy anadrol online\" style=\"text-decoration:none;color:#333;\">buy anadrol online<\/a> Coutinho<br \/>\n<\/span><span style=\"font-weight: 400;\"><strong>Designer:<\/strong> Renata Coutinho<br \/>\n<\/span><span style=\"font-weight: 400;\"><strong>Fotografia:<\/strong> Mayara Laila<br \/>\n<\/span><span style=\"font-weight: 400;\"><strong>Ilustra\u00e7\u00f5es:<\/strong> Patr\u00edcia Sinox e Ana Brito<br \/>\n<\/span><span style=\"font-weight: 400;\"><strong>Capa e contracapa:<\/strong> Daphne Cunha<br \/>\n<\/span><span style=\"font-weight: 400;\"><strong>Assessoria jur\u00eddica:<\/strong> Dolabella Advocacia<br \/>\n<\/span><span style=\"font-weight: 400;\"><strong>Contabilidade:<\/strong> Rosy Costa<br \/>\n<\/span><span style=\"font-weight: 400;\"><strong>Gr\u00e1fica:<\/strong> Rona Editora<br \/>\n<\/span><span style=\"font-weight: 400;\"><strong>Tiragem:<\/strong> 1.000 exemplares<\/span><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Na internet<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Site: <\/strong><a style=\"color: #000000;\" href=\"http:\/\/www.revistalesbi.com.br\"><span style=\"font-weight: 400;\">www.revistalesbi.com.br<\/span><\/a><\/span><br \/>\n<span style=\"color: #000000;\"><strong>Facebook: <\/strong><a style=\"color: #000000;\" href=\"http:\/\/www.facebook.com\/revistalesbi\"><span style=\"font-weight: 400;\">www.facebook.com\/revistalesbi<\/span><\/a><\/span><br \/>\n<span style=\"color: #000000;\"><span style=\"font-weight: 400;\"><strong>Instagram:<\/strong> @revistalesbi<br \/>\n<\/span><span style=\"font-weight: 400;\"><strong>Email:<\/strong> contato@revistalesbi.com.br<\/span><\/span><\/p>\n<hr \/>\n<h2>1\u00aa Edi\u00e7\u00e3o<\/h2>\n<p><span style=\"color: #000000;\"><strong>Edi\u00e7\u00e3o:<\/strong> Ana Luiza Gon\u00e7alves<br \/>\n<\/span><span style=\"color: #000000;\"><strong>Produ\u00e7\u00e3o executiva:<\/strong> Camila Fran\u00e7a<br \/>\n<\/span><span style=\"color: #000000;\"><strong>Reda\u00e7\u00e3o:<\/strong> Adriana Roque, Alicia Moreira, Ana Luiza Gon\u00e7alves, Camila Fran\u00e7a, Helen Castro, Isabela Alves, Roberta Nunes e Vanessa Perroni<br \/>\n<\/span><span style=\"color: #000000;\"><strong>Projeto gr\u00e1fico:<\/strong> Renata Coutinho<br \/>\n<\/span><span style=\"color: #000000;\"><strong>Designer:<\/strong> Renata Coutinho e Chris Souza<br \/>\n<\/span><span style=\"color: #000000;\"><strong>Fotografia<\/strong>: Mayara Laila<br \/>\n<\/span><span style=\"color: #000000;\"><strong>Ilustra\u00e7\u00f5es:<\/strong> M\u00f4nica Monteiro e Larissa Moraes<br \/>\n<\/span><span style=\"color: #000000;\"><strong>Capa e contracapa:<\/strong> Maira Paiva<br \/>\n<\/span><span style=\"color: #000000;\"><strong>Assessoria de imprensa:<\/strong> Camila Fran\u00e7a<br \/>\n<\/span><span style=\"color: #000000;\"><strong>Assessoria jur\u00eddica:<\/strong> Dolabella Advocacia<br \/>\n<\/span><span style=\"color: #000000;\"><strong>Contabilidade:<\/strong> Rosy Costa<br \/>\n<\/span><span style=\"color: #000000;\"><strong>Tiragem:<\/strong> 2.000 exemplares<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\"><strong>Na internet<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Site:<\/strong> <a style=\"color: #000000;\" href=\"http:\/\/www.revistalesbi.com.br\">www.revistalesbi.com.br<\/a><br \/>\n<\/span><span style=\"color: #000000;\"><strong>Facebook:<\/strong> <a style=\"color: #000000;\" href=\"http:\/\/www.facebook.com\/revistalesbi\">www.facebook.com\/revistalesbi<\/a><br \/>\n<\/span><span style=\"color: #000000;\"><strong>Instagram:<\/strong> @revistalesbi<br \/>\n<\/span><span style=\"color: #000000;\"><strong>Email: <\/strong>contato@revistalesbi.com.br<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>2 Edi\u00e7\u00e3o Edi\u00e7\u00e3o: Ana Luiza Gon\u00e7alves Assistente de edi\u00e7\u00e3o: Isabela Alves Produ\u00e7\u00e3o executiva: Camila Fran\u00e7a Reda\u00e7\u00e3o: Adriana Roque, Ana Luiza Gon\u00e7alves, Camila Fran\u00e7a, Duda Crespa, Helen Castro, Isabela Alves, Jamine Miranda, Roberta Nunes e Vanessa Perroni Projeto gr\u00e1fico: Renata buy anadrol online Coutinho Designer: Renata Coutinho Fotografia: Mayara Laila Ilustra\u00e7\u00f5es: Patr\u00edcia Sinox e Ana Brito [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-3","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/pages\/3","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/comments?post=3"}],"version-history":[{"count":10,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/pages\/3\/revisions"}],"predecessor-version":[{"id":1579,"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/pages\/3\/revisions\/1579"}],"wp:attachment":[{"href":"https:\/\/revistalesbi.com.br\/in\/wp-json\/wp\/v2\/media?parent=3"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}