<?php /** * @package WordPress * @subpackage Your Inspiration Themes */ yit_register_portfolio_style($portfolio_type, 'portfolio-' . $portfolio_type, 'css/style.css'); // add the image size //add_image_size( 'thumb_portfolio_fulldesc', 700, 345, true ); //add_image_size( 'thumb_portfolio_fulldesc_related', 175, 175, true ); // add the slider fields for the admin yit_add_portfolio_config($portfolio_type, array(array('name' => __('Enable lightbox icon', 'yit'), 'id' => 'event_project_lightbox', 'type' => 'onoff', 'desc' => __('Enable lightbox icon for portfolio images.', 'yit')), array('type' => 'sep'), array('name' => __('Select detail layout', 'yit'), 'id' => 'layout', 'type' => 'select', 'desc' => __('Show the selected layout in detail page.', 'yit'), 'options' => array('small' => __('Small', 'yit'), 'big' => __('Big', 'yit')), 'std' => 'small'), array('name' => __('Display Other Projects', 'yit'), 'id' => 'display_related', 'type' => 'onoff', 'desc' => __('Select if you want to show other projects below the item.', 'yit')), array('name' => __('Items', 'yit'), 'id' => 'detail_nitems', 'type' => 'number', 'min' => 0, 'max' => 200, 'desc' => __('Select the number of items to show below the item. Leave 0 to show all.', 'yit'), 'std' => 0), array('name' => __('Other Projects label', 'yit'), 'id' => 'other_projects_label', 'type' => 'text', 'std' => __('Other Projects', 'yit'), 'desc' => __('Customize the Other Projects label', 'yit')), array('name' => __('Enable lightbox icon in related projects', 'yit'), 'id' => 'event_lightbox', 'type' => 'onoff', 'desc' => __('Enable lightbox icon on related projects image.', 'yit')), array('name' => __('Enable project details icon', 'yit'), 'id' => 'event_details', 'type' => 'onoff', 'desc' => __('Enable project details icon on related projects image.', 'yit')), array('name' => __('Project title on hover', 'yit'), 'id' => 'event_title', 'type' => 'onoff', 'desc' => __('Show the project name on image hover.', 'yit'))));
<?php /** * @package WordPress * @subpackage Your Inspiration Themes */ yit_register_portfolio_style($portfolio_type, 'portfolio-' . $portfolio_type, 'css/style.css'); yit_register_portfolio_script($portfolio_type, 'portfolio-jquery-filterable', 'js/jquery.filterable.js'); yit_register_portfolio_script($portfolio_type, 'resize', get_template_directory_uri() . '/theme/assets/js/jquery.resize.js'); // add the image size // add_image_size( 'thumb_portfolio_3cols', 365, 192, true ); // add the slider fields for the admin yit_add_portfolio_config($portfolio_type, array(array('name' => __('Items per page', 'yit'), 'id' => 'nitems', 'type' => 'number', 'min' => 0, 'max' => 200, 'desc' => __('Select the number of items to show. Leave 0 to show all.', 'yit'), 'std' => 0), array('name' => __('Activate filters', 'yit'), 'id' => 'filter_active', 'type' => 'onoff', 'desc' => __('Select if you want to use filters.', 'yit')), array('type' => 'sep'), array('name' => __('Enable lightbox icon', 'yit'), 'id' => 'event_lightbox', 'type' => 'onoff', 'desc' => __('Enable lightbox icon on projects image.', 'yit')), array('name' => __('Enable project details icon', 'yit'), 'id' => 'event_details', 'type' => 'onoff', 'desc' => __('Enable project details icon on projects image.', 'yit')), array('name' => __('Project title on hover', 'yit'), 'id' => 'event_title', 'type' => 'onoff', 'desc' => __('Show the project name on image hover.', 'yit')), array('type' => 'sep'), array('type' => 'simple-text', 'id' => 'simple_text', 'desc' => '<h4>' . __('Page detail settings', 'yit') . '</h4>'), array('name' => __('Select detail layout', 'yit'), 'id' => 'layout', 'type' => 'select', 'desc' => __('Show the selected layout in detail page.', 'yit'), 'options' => array('small' => __('Small', 'yit'), 'big' => __('Big', 'yit')), 'std' => 'small'), array('name' => __('Display Other Projects', 'yit'), 'id' => 'display_related', 'type' => 'onoff', 'desc' => __('Select if you want to show other projects below the item.', 'yit')), array('name' => __('Items', 'yit'), 'id' => 'detail_nitems', 'type' => 'number', 'min' => 0, 'max' => 200, 'desc' => __('Select the number of items to show below the item. Leave 0 to show all.', 'yit'), 'std' => 0), array('name' => __('Enable lightbox icon', 'yit'), 'id' => 'event_project_lightbox', 'type' => 'onoff', 'desc' => __('Enable lightbox icon for detail images.', 'yit')), array('name' => __('Other Projects label', 'yit'), 'id' => 'other_projects_label', 'type' => 'text', 'std' => __('Other Projects', 'yit'), 'desc' => __('Customize the Other Projects label', 'yit')), array('name' => __('Enable lightbox icon (on other projects)', 'yit'), 'id' => 'event_lightbox_other_projects', 'type' => 'onoff', 'desc' => __('Enable lightbox icon on projects image.', 'yit')), array('name' => __('Enable project details icon (on other projects)', 'yit'), 'id' => 'event_details_other_projects', 'type' => 'onoff', 'desc' => __('Enable project details icon on projects image.', 'yit')), array('name' => __('Project title on hover (on other projects)', 'yit'), 'id' => 'event_title_other_projects', 'type' => 'onoff', 'desc' => __('Show the project name on image hover.', 'yit'))));
<?php /** * @package WordPress * @subpackage Your Inspiration Themes */ yit_register_portfolio_style($portfolio_type, 'portfolio-' . $portfolio_type, 'css/style.css'); // add the image size // add_image_size( 'thumb_portfolio_3cols', 365, 192, true ); // add the slider fields for the admin yit_add_portfolio_config($portfolio_type, array(array('name' => __('Items per page', 'yit'), 'id' => 'nitems', 'type' => 'number', 'min' => 0, 'max' => 200, 'desc' => __('Select the number of items to show. The option will active a pagination system below the items. Leave 0 to show all.', 'yit'), 'std' => 0), array('name' => __('Enable excerpt', 'yit'), 'id' => 'enable_excerpt', 'type' => 'onoff', 'desc' => __('Enable excerpt below the projects image. (The excerpt lenght can be customized in each single item.)', 'yit')), array('type' => 'sep'), array('name' => __('Enable lightbox icon', 'yit'), 'id' => 'event_lightbox', 'type' => 'onoff', 'desc' => __('Enable lightbox icon on projects image.', 'yit')), array('name' => __('Enable project details icon', 'yit'), 'id' => 'event_details', 'type' => 'onoff', 'desc' => __('Enable project details icon on projects image.', 'yit')), array('name' => __('Project title on hover', 'yit'), 'id' => 'event_title', 'type' => 'onoff', 'desc' => __('Show the project name on image hover.', 'yit')), array('type' => 'sep'), array('type' => 'simple-text', 'id' => 'simple_text', 'desc' => '<h4>' . __('Page detail settings', 'yit') . '</h4>'), array('name' => __('Display Other Projects', 'yit'), 'id' => 'display_related', 'type' => 'onoff', 'desc' => __('Select if you want to show other projects below the item.', 'yit')), array('name' => __('Items', 'yit'), 'id' => 'detail_nitems', 'type' => 'number', 'min' => 0, 'max' => 200, 'desc' => __('Select the number of items to show below the item. Leave 0 to show all.', 'yit'), 'std' => 0), array('name' => __('Other Projects label', 'yit'), 'id' => 'other_projects_label', 'type' => 'text', 'std' => __('Other Projects', 'yit'), 'desc' => __('Customize the Other Projects label', 'yit'))));
// add the image size yit_add_image_size( 'thumb_small_portfolio_thumbs', 60, 60, true ); yit_add_image_size( 'thumb_medium_portfolio_thumbs', 437, 261, true ); // add the slider fields for the admin yit_add_portfolio_config( $portfolio_type, array( array( 'name' => __( 'Enable lightbox icon', 'yit' ), 'id' => 'event_lightbox', 'type' => 'onoff', 'desc' => __( 'Enable lightbox icon on projects image.', 'yit' ), ), ) ); yit_add_portfolio_config( $portfolio_type, array( array( 'name' => __( 'Thumbs title', 'yit' ), 'id' => 'thumbs_title', 'type' => 'text', 'desc' => '', ), ) ); yit_add_portfolio_config( $portfolio_type, array( array( 'name' => __( 'Project description title', 'yit' ), 'id' => 'project_description_title', 'type' => 'text', 'desc' => '', ), ) );
<?php /** * @package WordPress * @subpackage Your Inspiration Themes */ yit_register_portfolio_style($portfolio_type, 'portfolio-' . $portfolio_type, 'css/style.css'); // add the image size yit_add_image_size('thumb_portfolio_simply', 770, 0, false); // add the slider fields for the admin yit_add_portfolio_config($portfolio_type, array(array('name' => __('Items', 'yit'), 'id' => 'nitems', 'type' => 'number', 'min' => 0, 'max' => 200, 'desc' => __('Select the number of items to show (Only if the filters are disabled). Leave 0 to show all.', 'yit'), 'std' => 0), array('name' => __('Project detail label', 'yit'), 'id' => 'project-label', 'type' => 'text', 'desc' => __('Select the label for project details', 'yit'), 'std' => __('Project Info', 'yit')))); // add support to slide yit_add_work_support($portfolio_type, array(array('name' => __('Background', 'yit'), 'id' => 'background-container', 'type' => 'colorpicker', 'desc' => __('Define the container background color.', 'yit'), 'std' => ''), array('name' => __('Background image', 'yit'), 'id' => 'background-image-container', 'type' => 'upload', 'desc' => __('Define the container background image.', 'yit')), array('name' => __('Background image position', 'yit'), 'id' => 'background-image-container-position', 'type' => 'select', 'options' => array('left top' => __('Left Top', 'yit'), 'left center' => __('Left Center', 'yit'), 'left bottom' => __('Left Bottom', 'yit'), 'right top' => __('Right Top', 'yit'), 'right center' => __('Right Center', 'yit'), 'right bottom' => __('Right Bottom', 'yit'), 'center top' => __('Center Top', 'yit'), 'center center' => __('Center Center', 'yit'), 'center bottom' => __('Center Bottom', 'yit')), 'desc' => __('Define the background image position.', 'yit')), array('name' => __('Background image repeat', 'yit'), 'id' => 'background-image-container-repeat', 'type' => 'select', 'options' => array('no-repeat' => __('No Repeat', 'yit'), 'repeat' => __('Repeat', 'yit'), 'repeat-x' => __('Repeat X', 'yit'), 'repeat-y' => __('Repeat Y', 'yit')), 'desc' => __('Define the container background image.', 'yit')), array('name' => __('Image position', 'yit'), 'id' => 'image-position', 'type' => 'select', 'desc' => __('Define the image position. Leave empty for transparent background', 'yit'), 'std' => 'left', 'options' => array('left' => __('Left', 'yit'), 'right' => __('Right', 'yit'), 'top' => __('Top', 'yit')))));
<?php /** * @package WordPress * @subpackage Your Inspiration Themes */ yit_register_portfolio_style($portfolio_type, 'portfolio-' . $portfolio_type, 'css/style.css'); // add the image size //add_image_size( 'thumb_portfolio_fulldesc', 700, 345, true ); //add_image_size( 'thumb_portfolio_fulldesc_related', 175, 175, true ); // add the slider fields for the admin yit_add_portfolio_config($portfolio_type, array(array('name' => __('Display Other Projects', 'yit'), 'id' => 'display_related', 'type' => 'onoff', 'desc' => __('Select if you want to show other projects below the item.', 'yit')), array('name' => __('Items', 'yit'), 'id' => 'detail_nitems', 'type' => 'number', 'min' => 0, 'max' => 200, 'desc' => __('Select the number of items to show below the item. Leave 0 to show all.', 'yit'), 'std' => 0), array('name' => __('Other Projects label', 'yit'), 'id' => 'other_projects_label', 'type' => 'text', 'std' => __('Other Projects', 'yit'), 'desc' => __('Customize the Other Projects label', 'yit'))));
<?php /** * @package WordPress * @subpackage Your Inspiration Themes */ yit_register_portfolio_style($portfolio_type, 'portfolio-' . $portfolio_type, 'css/style.css'); // add the image size // add_image_size( 'thumb_portfolio_bigimage', 770, 368, true ); // add the slider fields for the admin yit_add_portfolio_config($portfolio_type, array(array('name' => __('Items', 'yit'), 'id' => 'nitems', 'type' => 'number', 'min' => 0, 'max' => 200, 'desc' => __('Select the number of items to show (Only if the filters are disabled). Leave 0 to show all.', 'yit'), 'std' => 0), array('type' => 'sep'), array('name' => __('Enable lightbox icon', 'yit'), 'id' => 'event_lightbox', 'type' => 'onoff', 'desc' => __('Enable lightbox icon on projects image.', 'yit')), array('name' => __('Enable project details icon', 'yit'), 'id' => 'event_details', 'type' => 'onoff', 'desc' => __('Enable project details icon on projects image.', 'yit')), array('name' => __('Project title on hover', 'yit'), 'id' => 'event_title', 'type' => 'onoff', 'desc' => __('Show the project name on image hover.', 'yit')), array('type' => 'sep'), array('type' => 'simple-text', 'id' => 'simple_text', 'desc' => '<h4>' . __('Page detail settings', 'yit') . '</h4>'), array('name' => __('Display Other Projects', 'yit'), 'id' => 'display_related', 'type' => 'onoff', 'desc' => __('Select if you want to show other projects below the item.', 'yit')), array('name' => __('Items', 'yit'), 'id' => 'detail_nitems', 'type' => 'number', 'min' => 0, 'max' => 200, 'desc' => __('Select the number of items to show below the item. Leave 0 to show all.', 'yit'), 'std' => 0), array('name' => __('Other Projects label', 'yit'), 'id' => 'other_projects_label', 'type' => 'text', 'std' => __('Other Projects', 'yit'), 'desc' => __('Customize the Other Projects label', 'yit')))); add_action('yit_portfolio_type_args_portfolios', 'yit_work_change_args'); add_action('yit_portfolios_item_configuration', 'yit_work_change_configuration'); function yit_work_change_args($args) { $args['settings_item'] = 'title, content-editor'; return $args; } function yit_work_change_configuration($args) { unset($args[7]); unset($args[8]); return $args; }
<?php /** * @package WordPress * @subpackage Your Inspiration Themes */ yit_register_portfolio_style($portfolio_type, 'portfolio-' . $portfolio_type, 'css/style.css'); yit_register_portfolio_script($portfolio_type, 'portfolio-jquery-filterable', 'js/jquery.filterable.js'); // add the image size // add_image_size( 'thumb_portfolio_3cols', 365, 192, true ); // add the slider fields for the admin yit_add_portfolio_config($portfolio_type, array(array('name' => __('Items per page', 'yit'), 'id' => 'nitems', 'type' => 'number', 'min' => 0, 'max' => 200, 'desc' => __('Select the number of items to show. Leave 0 to show all.', 'yit'), 'std' => 0), array('name' => __('Activate Project Detail slide', 'yit'), 'id' => 'open_slide', 'type' => 'onoff', 'desc' => __('Select if you want to open the project into the same page or in a new page.', 'yit')), array('type' => 'sep'), array('name' => __('Enable lightbox icon', 'yit'), 'id' => 'event_lightbox', 'type' => 'onoff', 'desc' => __('Enable lightbox icon on projects image.', 'yit')), array('name' => __('Enable project details icon', 'yit'), 'id' => 'event_details', 'type' => 'onoff', 'desc' => __('Enable project details icon on projects image.', 'yit')), array('name' => __('Project title on hover', 'yit'), 'id' => 'event_title', 'type' => 'onoff', 'desc' => __('Show the project name on image hover.', 'yit')), array('type' => 'sep'), array('type' => 'simple-text', 'id' => 'simple_text', 'desc' => '<h4>' . __('Page detail settings', 'yit') . '</h4>'), array('name' => __('Display Other Projects', 'yit'), 'id' => 'display_related', 'type' => 'onoff', 'desc' => __('Select if you want to show other projects below the item.', 'yit')), array('name' => __('Items', 'yit'), 'id' => 'detail_nitems', 'type' => 'number', 'min' => 0, 'max' => 200, 'desc' => __('Select the number of items to show below the item. Leave 0 to show all.', 'yit'), 'std' => 0), array('name' => __('Other Projects label', 'yit'), 'id' => 'other_projects_label', 'type' => 'text', 'std' => __('Other Projects', 'yit'), 'desc' => __('Customize the Other Projects label', 'yit')), array('type' => 'sep'), array('name' => __('Background color', 'yit'), 'id' => 'background-color', 'type' => 'colorpicker', 'desc' => __('Background color of Project Detail Panel', 'yit'), 'std' => '#f1f4f5')));