<commit_before><?php

class Projects
{
	function __construct()
	{
		$this->_customs = array(
			'parceria' => array
			(
					'slug' => 'custom-author',
					'title' => __('Instituições Parceiras', 'flacso'),
					'tip' => __('Instituições Parceiras', 'flacso'),
			), 
			'patrocinio' => array
			(
					'slug' => 'patrocinio',
					'title' => __('Patrocínio', 'flacso'),
					'tip' => __('Patrocínio', 'flacso'),
			),
			'coordenacao' => array (
					'slug' => 'coordenacao',
					'title' => __ ( 'Coordenação', 'flacso' ),
					//'tip' => __ ( '', 'flacso' ),
			),
			'financiamento' => array (
					'slug' => 'financiamento',
					'title' => __ ( 'Financiamento', 'flacso' ),
					//'tip' => __ ( '', 'flacso' ),
			)
		);
		
		add_action('init', array($this, 'init'));
		//add_action('init', array($this, 'rewrite_rules'));
		//add_action('template_redirect', array($this, 'form'));
		//add_action('wp_ajax_resetpass', array($this, 'form'));
		//add_action('wp_ajax_nopriv_resetpass', array($this, 'form'));
		//add_filter('query_vars', array($this, 'print_variables'));
		//add_filter('archive_template', array($this, 'archiveTemplate'));
		//add_filter('single_template', array($this, 'singleTemplate'));
		add_action( 'save_post', array( $this, 'save' ) );
		//add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts') );
	}

	function init()
	{
		$this->Add_custom_Post();
		
		$permissoes = array(
			'administrator' => array('Novo' => false, 'Caps' => array
			(
				'delete_projects',
				'delete_private_projects',
				'edit_project',
				'edit_projects',
				'edit_private_projects',
				'publish_projects',
				'read_project',
				'read_private_projects',
				'delete_published_projects',
				'edit_published_projects',
				'edit_published_project',
				'edit_others_projects',
				'edit_others_project',
				'delete_others_projects',
				'delete_others_project'
			)),
			'contributor' => array('Novo' => false, 'Caps' => array
			(
				'read_project',
			)),
			'subscriber' => array('Novo' => false, 'Caps' => array
			(
				'read_project',
			)),
			'author' => array('Novo' => false, 'Caps' => array
			(
				'read_project',
			)),
			'editor' => array('Novo' => false, 'Caps' => array
			(
				'read_project',
			)),
		);
		
		$this->roles_install($permissoes);
		
	}
	
	function Add_custom_Post()
	{
		$labels = array
		(
				'name' => __('Projects','flacso'),
				'singular_name' => __('Project','flacso'),
				'add_new' => __('Add new','flacso'),
				'add_new_item' => __('Add new project','flacso'),
				'edit_item' => __('Edit project','flacso'),
				'new_item' => __('New Project','flacso'),
				'view_item' => __('View Project','flacso'),
				'search_items' => __('Search Project','flacso'),
				'not_found' =>  __('Project not found','flacso'),
				'not_found_in_trash' => __('Project not found in the trash','flacso'),
				'parent_item_colon' => '',
				'menu_name' => __('Projects','flacso')
	
		);
	
		$args = array
		(
				'label' => __('Projects','flacso'),
				'labels' => $labels,
				'description' => __('Projects','flacso'),
				'public' => true,
				'publicly_queryable' => true, // public
				//'exclude_from_search' => '', // public
				'show_ui' => true, // public
				'show_in_menu' => true,
				'menu_position' => 5,
				'menu_icon' => 'dashicons-book',
				'capability_type' => array('project','projects'),
				'map_meta_cap' => true,
				'hierarchical' => false,
				'supports' => array('title', 'editor', 'excerpt', 'trackbacks', 'thumbnail', 'revisions'),
				'register_meta_box_cb' => array($this, 'flacso_project_custom_meta'), // função para chamar na edição
				'taxonomies' => array('post_tag'), // Taxionomias já existentes relaciondas, vamos criar e registrar na sequência
				'permalink_epmask' => 'EP_PERMALINK ',
				'has_archive' => true, // Opção de arquivamento por slug
				'rewrite' => true,
				'query_var' => true,
				'can_export' => true//, // veja abaixo
				//'show_in_nav_menus' => '', // public
				//'_builtin' => '', // Core
				//'_edit_link' => '' // Core
	
		);
	
		register_post_type("project", $args);<commit_msg>Update post type project<commit_after><?php

class Projects
{
	function __construct()
	{
		$this->_customs = array(
			'coordenacao' => array (
					'slug' => 'coordenacao',
					'title' => __ ( 'Coordenação', 'flacso' ),
					//'tip' => __ ( '', 'flacso' ),
			),
			'parceria' => array
			(
					'slug' => 'parceria',
					'title' => __('Instituições Parceiras', 'flacso'),
					'tip' => __('Instituições Parceiras', 'flacso'),
			), 
			'patrocinio' => array
			(
					'slug' => 'patrocinio',
					'title' => __('Patrocínio', 'flacso'),
					'tip' => __('Patrocínio', 'flacso'),
			),
			'financiamento' => array
			(
					'slug' => 'financiamento',
					'title' => __ ( 'Financiamento', 'flacso' ),
					//'tip' => __ ( '', 'flacso' ),
			)
		);
		
		add_action('init', array($this, 'init'));
		//add_action('init', array($this, 'rewrite_rules'));
		//add_action('template_redirect', array($this, 'form'));
		//add_action('wp_ajax_resetpass', array($this, 'form'));
		//add_action('wp_ajax_nopriv_resetpass', array($this, 'form'));
		//add_filter('query_vars', array($this, 'print_variables'));
		//add_filter('archive_template', array($this, 'archiveTemplate'));
		//add_filter('single_template', array($this, 'singleTemplate'));
		add_action( 'save_post', array( $this, 'save' ) );
		//add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts') );
	}

	function init()
	{
		$this->Add_custom_Post();
		
		$permissoes = array(
			'administrator' => array('Novo' => false, 'Caps' => array
			(
				'delete_projects',
				'delete_private_projects',
				'edit_project',
				'edit_projects',
				'edit_private_projects',
				'publish_projects',
				'read_project',
				'read_private_projects',
				'delete_published_projects',
				'edit_published_projects',
				'edit_published_project',
				'edit_others_projects',
				'edit_others_project',
				'delete_others_projects',
				'delete_others_project'
			)),
			'contributor' => array('Novo' => false, 'Caps' => array
			(
				'read_project',
			)),
			'subscriber' => array('Novo' => false, 'Caps' => array
			(
				'read_project',
			)),
			'author' => array('Novo' => false, 'Caps' => array
			(
				'read_project',
			)),
			'editor' => array('Novo' => false, 'Caps' => array
			(
				'read_project',
			)),
		);
		
		$this->roles_install($permissoes);
		
	}
	
	function Add_custom_Post()
	{
		$labels = array
		(
				'name' => __('Projects','flacso'),
				'singular_name' => __('Project','flacso'),
				'add_new' => __('Add new','flacso'),
				'add_new_item' => __('Add new project','flacso'),
				'edit_item' => __('Edit project','flacso'),
				'new_item' => __('New Project','flacso'),
				'view_item' => __('View Project','flacso'),
				'search_items' => __('Search Project','flacso'),
				'not_found' =>  __('Project not found','flacso'),
				'not_found_in_trash' => __('Project not found in the trash','flacso'),
				'parent_item_colon' => '',
				'menu_name' => __('Projects','flacso')
	
		);
	
		$args = array
		(
				'label' => __('Projects','flacso'),
				'labels' => $labels,
				'description' => __('Projects','flacso'),
				'public' => true,
				'publicly_queryable' => true, // public
				//'exclude_from_search' => '', // public
				'show_ui' => true, // public
				'show_in_menu' => true,
				'menu_position' => 5,
				'menu_icon' => 'dashicons-book',
				'capability_type' => array('project','projects'),
				'map_meta_cap' => true,
				'hierarchical' => false,
				'supports' => array('title', 'editor', 'excerpt', 'thumbnail', 'revisions'),
				'register_meta_box_cb' => array($this, 'flacso_project_custom_meta'), // função para chamar na edição
				'taxonomies' => array('post_tag'), // Taxionomias já existentes relaciondas, vamos criar e registrar na sequência
				'permalink_epmask' => 'EP_PERMALINK ',
				'has_archive' => true, // Opção de arquivamento por slug
				'rewrite' => true,
				'query_var' => true,
				'can_export' => true//, // veja abaixo
				//'show_in_nav_menus' => '', // public
				//'_builtin' => '', // Core
				//'_edit_link' => '' // Core
	
		);
	
		register_post_type("project", $args);
{'fraction_non_alphanumeric': 0.20615796519410978, 'fraction_numerical': 0.00024339783375927954, 'mean_word_length': 3.67197271176805, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 143, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6479246', 'n_tokens_mistral': 3588, 'n_tokens_neox': 2987, 'n_words': 509}