Пример #1
0
<?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'))));
Пример #2
0
<?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-isotope', 'js/jquery.isotope.min.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' => __('Number of columns', 'yit'), 'id' => 'columns', 'type' => 'number', 'min' => 2, 'max' => 4, 'desc' => __('Select the number of columns.', 'yit'), 'std' => 3), array('type' => 'sep'), 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' => __('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'))));
Пример #3
0
<?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, 'jquery-yit_pagination', YIT_CORE_ASSETS_URL . '/js/yit/jquery.yit_pagination.js' );
yit_register_portfolio_script(  $portfolio_type, 'jquery-imagesLoaded', YIT_THEME_JS_URL . '/jquery.imagesLoaded.js');
yit_register_portfolio_script(  $portfolio_type, 'jquery-yit_portfolio_thumbs', 'js/jquery.yit_portfolio_thumbs.js' );

// 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' => '',
Пример #4
0
<?php

/**
 * @package WordPress
 * @subpackage Your Inspiration Themes
 */
yit_register_portfolio_style($portfolio_type, 'portfolio-' . $portfolio_type, 'css/style.css');
yit_register_portfolio_style($portfolio_type, 'portfolio-elastislide', get_template_directory_uri() . '/theme/assets/css/elastislide.css');
yit_register_portfolio_script($portfolio_type, 'jquery-elastislider', get_template_directory_uri() . '/theme/assets/js/jquery.elastislide.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' => __('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'))));
Пример #5
0
<?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-' . $portfolio_type . '-quicksand', get_template_directory_uri() . '/theme/assets/js/jquery.quicksand.js');
// add the image size
// add_image_size( 'thumb_portfolio_filterable', 250, 168, 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('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' => __('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'))));
Пример #6
0
<?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, 'yit-jquery-masonry', get_template_directory_uri() . '/theme/assets/js/jquery.masonry.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. 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' => __('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'))));
Пример #7
0
<?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, 'jquery-masonry');
// add the image size
add_image_size('thumb_portfolio_pinterest', 370);
// 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' => __('Hover effect', 'yit'), 'id' => 'enable_hover', 'type' => 'onoff', 'desc' => __('Enable the hover effect on each portfolio item', 'yit')), array('name' => __('Project title on hover', 'yit'), 'id' => 'enable_title', 'type' => 'onoff', 'desc' => __('Show the project name on image hover.', 'yit')), array('name' => __('Project categories on hover', 'yit'), 'id' => 'enable_categories', 'type' => 'onoff', 'desc' => __('Show the project categories on image hover.', 'yit')), array('type' => 'sep'), 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'))));
Пример #8
0
<?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')));