/** * Init * */ public function init($portfolio_type_name = false) { // change the basic configuration for the post type add_action('yit_portfolio_type_args_portfolios', array(&$this, 'change_args')); // change the configuration for each item of post type add_action('yit_portfolios_item_configuration', array(&$this, 'change_item_configuration')); // set the name of the shortcode $this->shortcode_name = 'portfolio'; // set the ID of the option used to define the type of portfolio $this->_fieldTypeName = 'portfolio_type'; // call the init of Portfolio, setting the name of post type to "galleries" parent::init('portfolios'); }
/** * Init * */ public function init($portfolio_type_name = false) { // change the basic configuration for the post type add_action('yit_portfolio_type_args_accordions', array(&$this, 'change_args')); // change the configuration for each item of post type add_action('yit_accordions_item_configuration', array(&$this, 'change_item_configuration')); // change something in the configuration of each element add_filter('yit_cpt_unlimited_settings_item_accordions', array(&$this, 'change_subtitle_label')); // set the name of the shortcode $this->shortcode_name = 'accordion'; // set the ID of the option used to define the type of portfolio $this->_fieldTypeName = 'accordions_type'; parent::init('accordions'); }
/** * Init * */ public function init($portfolio_type_name = false) { // change the basic configuration for the post type add_action('yit_portfolio_type_args_accordions', array(&$this, 'change_args')); // change the configuration for each item of post type add_action('yit_accordions_item_configuration', array(&$this, 'change_item_configuration')); // change something in the configuration of each element add_filter('yit_cpt_unlimited_settings_item_accordions', array(&$this, 'change_subtitle_label')); // set the name of the shortcode $this->shortcode_name = 'accordion'; // set the ID of the option used to define the type of portfolio $this->_fieldTypeName = 'accordions_type'; // add the slider fields for the admin $this->add_typography_options('', array(array('id' => 'role-name-font', 'type' => 'typography', 'name' => __('Role', 'yit'), 'desc' => __('Select font family, size and color.', 'yit'), 'min' => 1, 'max' => 72, 'std' => array('size' => 13, 'unit' => 'px', 'family' => 'Oswald', 'style' => 'regular', 'color' => '#c27d05'), 'style' => array('selectors' => '.team-professional ul li.featured h5', 'properties' => 'font-size, font-family, color, font-style, font-weight')))); parent::init('accordions'); }