51 |
52 |
--------------------------------------------------------------------------------
/comments-template.php:
--------------------------------------------------------------------------------
1 | comment_type) :
23 | case 'pingback' :
24 | case 'trackback' :
25 | ?>
26 |
27 |
28 |
29 |
30 | ', ''); ?>
31 |
32 |
33 |
34 | ' . __('Post author', 'portfolio') . '' : '';
37 | ?>
38 | id="comment-" >
39 |
40 |
59 |
60 |
63 |
64 |
65 | ', '' ); ?>
66 |
67 | 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
68 |
69 |
70 |
71 |
5 |
22 | is_preview() && ! is_admin() ) {
27 | add_action( 'wp_footer', 'portfolio_customize_preview_js', 21);
28 | }
29 | }
30 |
31 | add_action( 'customize_register', 'portfolio_customize_register' );
32 |
33 | // EOF
--------------------------------------------------------------------------------
/js/jquery.fitvids.js:
--------------------------------------------------------------------------------
1 | /*global jQuery */
2 | /*jshint multistr:true browser:true */
3 | /*!
4 | * FitVids 1.0.3
5 | *
6 | * Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
7 | * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
8 | * Released under the WTFPL license - http://sam.zoy.org/wtfpl/
9 | *
10 | * Date: Thu Sept 01 18:00:00 2011 -0500
11 | */
12 |
13 | (function( $ ){
14 |
15 | "use strict";
16 |
17 | $.fn.fitVids = function( options ) {
18 | var settings = {
19 | customSelector: null
20 | };
21 |
22 | if(!document.getElementById('fit-vids-style')) {
23 |
24 | var div = document.createElement('div'),
25 | ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0],
26 | cssStyles = '';
27 |
28 | div.className = 'fit-vids-style';
29 | div.id = 'fit-vids-style';
30 | div.style.display = 'none';
31 | div.innerHTML = cssStyles;
32 |
33 | ref.parentNode.insertBefore(div,ref);
34 |
35 | }
36 |
37 | if ( options ) {
38 | $.extend( settings, options );
39 | }
40 |
41 | return this.each(function(){
42 | var selectors = [
43 | "iframe[src*='player.vimeo.com']",
44 | "iframe[src*='youtube.com']",
45 | "iframe[src*='youtube-nocookie.com']",
46 | "iframe[src*='kickstarter.com'][src*='video.html']",
47 | "object",
48 | "embed"
49 | ];
50 |
51 | if (settings.customSelector) {
52 | selectors.push(settings.customSelector);
53 | }
54 |
55 | var $allVideos = $(this).find(selectors.join(','));
56 | $allVideos = $allVideos.not("object object"); // SwfObj conflict patch
57 |
58 | $allVideos.each(function(){
59 | var $this = $(this);
60 | if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
61 | var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
62 | width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
63 | aspectRatio = height / width;
64 | if(!$this.attr('id')){
65 | var videoID = 'fitvid' + Math.floor(Math.random()*999999);
66 | $this.attr('id', videoID);
67 | }
68 | $this.wrap('
').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%");
69 | $this.removeAttr('height').removeAttr('width');
70 | });
71 | });
72 | };
73 | // Works with either jQuery or Zepto
74 | })( window.jQuery || window.Zepto );
75 |
--------------------------------------------------------------------------------
/js/customize-preview.js:
--------------------------------------------------------------------------------
1 | (function($){
2 | wp.customize('portfolio_primary_color', function(value) {
3 | value.bind( function( to ) {
4 | to = to ? to : '#5cc1a9';
5 | // set colors:
6 | var new_css = 'a, a.inverse:active, a.inverse:focus, a.inverse:hover, .entry-title a:hover, button, input[type="submit"], input[type="button"], input[type="reset"], .entry-summary .readon, .comment-author .fn, .comment-author .url, .comment-reply-link, .comment-reply-login, #content .tags-links a:active, #content .tags-links a:focus, #content .tags-links a:hover, .nav-menu li a:active, .nav-menu li a:focus, .nav-menu li a:hover, ul.nav-menu ul a:hover, .nav-menu ul ul a:hover, .gk-social-buttons a:hover:before, .format-gallery .entry-content .page-links a:hover, .format-audio .entry-content .page-links a:hover, .format-status .entry-content .page-links a:hover, .format-video .entry-content .page-links a:hover, .format-chat .entry-content .page-links a:hover, .format-quote .entry-content .page-links a:hover, .page-links a:hover, .paging-navigation a:active, .paging-navigation a:focus, .paging-navigation a:hover, .comment-meta a:hover, .social-menu li:hover:before, .social-menu-topbar li:hover:before { color: '+to+'; } button, input[type="submit"], input[type="button"], input[type="reset"], .entry-summary .readon { border: 1px solid '+to+'; } body .nav-menu .current_page_item > a, body .nav-menu .current_page_ancestor > a, body .nav-menu .current-menu-item > a, body .nav-menu .current-menu-ancestor > a { border-color: '+to+'; color: '+to+'!important; } .format-status .entry-content .page-links a, .format-gallery .entry-content .page-links a, .format-chat .entry-content .page-links a, .format-quote .entry-content .page-links a, .page-links a { background-color: '+to+'; border-color: '+to+'; } .hentry .mejs-controls .mejs-time-rail .mejs-time-current, .comment-post-author {background: '+to+';} .comments-title > span, .comment-reply-title > span { border-bottom-color: '+to+'; }.hentry .mejs-controls .mejs-time-rail .mejs-time-current, .comment-post-author, .sticky .post-preview:after, .entry-header.sticky:after, .article-helper.sticky:after, #prev-post > a:hover, #next-post > a:hover { background: '+to+'; }';
7 |
8 | if($(document).find('#portfolio-new-css-1').length) {
9 | $(document).find('#portfolio-new-css-1').remove();
10 | }
11 |
12 | $(document).find('head').append($(''));
13 | });
14 | });
15 |
16 | wp.customize('background_color', function(value) {
17 | value.bind( function( to ) {
18 | to = to ? to : '#f1f1f1';
19 | // set colors:
20 | var new_css = 'body.custom-background #main {background: '+to+';}';
21 | if($(document).find('#portfolio-new-css-2').length) {
22 | $(document).find('#portfolio-new-css-2').remove();
23 | }
24 |
25 | $(document).find('head').append($(''));
26 | });
27 | });
28 |
29 | wp.customize('blogname', function(value) {
30 | value.bind( function( to ) {
31 | $('.site-title').text(to);
32 | });
33 | });
34 |
35 | wp.customize('blogdescription', function(value) {
36 | value.bind( function( to ) {
37 | $('.site-description').text(to);
38 | });
39 | });
40 | })(jQuery);
--------------------------------------------------------------------------------
/customizer/custom-controls/category-selection/category-selection.php:
--------------------------------------------------------------------------------
1 |
17 |
40 | 'parent', 'id' => 'term_id');
46 | var $field_name = '';
47 |
48 | function __construct($field_name) {
49 | $this->field_name = $field_name;
50 | }
51 |
52 | function start_lvl( &$output, $depth = 0, $args = array() ) {
53 | $indent = str_repeat("\t", $depth);
54 | $output .= "$indent
\n";
55 | }
56 |
57 | function end_lvl( &$output, $depth = 0, $args = array() ) {
58 | $indent = str_repeat("\t", $depth);
59 | $output .= "$indent
\n";
60 | }
61 |
62 | function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
63 | extract($args);
64 | $output .= "\n
" . '';
65 | }
66 |
67 | function end_el( &$output, $category, $depth = 0, $args = array() ) {
68 | $output .= "\n";
69 | }
70 | }
71 |
72 |
--------------------------------------------------------------------------------
/content-archive.php:
--------------------------------------------------------------------------------
1 |
38 |
39 |
data-cols="">
40 |
41 |
42 |
43 |
data-url="">
44 |
45 |
46 |
49 |
50 |
51 |
52 |
53 |
',', ','');
57 | if ($tag_list) {
58 | echo $tag_list;
59 | }
60 | }
61 |
62 | if(get_theme_mod('portfolio_meta_type', 'tags') == 'categories') {
63 | $categories_list = get_the_category_list(',
');
64 | if ($categories_list) {
65 | echo '';
66 | }
67 | }
68 |
69 | if(get_theme_mod('portfolio_meta_type', 'tags') == 'title') {
70 | $title = '' . get_the_title() . '';
71 | if ($title) {
72 | echo '';
73 | }
74 | }
75 |
76 | if(get_theme_mod('portfolio_meta_type', 'tags') == 'date') {
77 | $date_format = esc_html(get_the_date('M, j, Y'));
78 |
79 | if(get_theme_mod('portfolio_date_format', 'default') == 'wordpress') {
80 | $date_format = get_the_date(get_option('date_format'));
81 | }
82 |
83 | $date = sprintf( '' );
84 |
85 | if ($date) {
86 | echo '';
87 | }
88 | }
89 | }
90 | ?>
91 |
92 |
93 |
94 |
95 |
96 | '
' . __('Pages:', 'portfolio') . '', 'after' => '
', 'link_before' => '
', 'link_after' => '')); ?>
97 |
98 |
',', ','');
100 | if ($tag_list) {
101 | echo $tag_list;
102 | }
103 | ?>
104 |
105 |
106 |
107 |
108 |
--------------------------------------------------------------------------------
/front-end-css.php:
--------------------------------------------------------------------------------
1 |
30 |
137 |
144 |
147 | 0) || (navigator.msMaxTouchPoints > 0));
6 | }
7 |
8 | (function($) {
9 | $(document).ready(function(){
10 | // set the information about touch screen
11 | if(portfolio_is_touch_device()) {
12 | $(document.body).addClass('touch-screen');
13 | } else {
14 | $(document.body).addClass('no-touch-screen');
15 | }
16 | // get the post images
17 | var blocks = [];
18 |
19 | jQuery('.article-helper.notloaded').each(function(i, block) {
20 | blocks.push(block);
21 | });
22 |
23 | var add_class = function(block, class_name, delay) {
24 | setTimeout(function() {
25 | jQuery(block).addClass(class_name);
26 | }, delay);
27 | };
28 |
29 | for(var i = 0; i < blocks.length; i++) {
30 | add_class(blocks[i], 'article-helper animated', i * 200);
31 | }
32 |
33 | // Fix :hover portfolio effect on the touch screens
34 | jQuery('.article-helper').each(function(i, block) {
35 | block = jQuery(block);
36 |
37 | if(block.find('.post-preview').length) {
38 | var preview = block.find('.post-preview');
39 |
40 | block.bind('touchstart', function() {
41 | block.attr('data-touch-time', new Date());
42 | });
43 |
44 | block.bind('touchend', function(e) {
45 | if(block.attr('data-touch-time') - new Date() < 500) {
46 | if(block.hasClass('article-hover')) {
47 | block.removeClass('article-hover');
48 | } else {
49 | block.addClass('article-hover');
50 | }
51 | }
52 | });
53 |
54 | if(preview.attr('data-url')) {
55 | preview.click(function() {
56 | window.location.href = preview.attr('data-url');
57 | });
58 | }
59 | } else {
60 | var preview = block.find('.entry-header');
61 |
62 | if(preview.attr('data-url')) {
63 | block.click(function() {
64 | window.location.href = preview.attr('data-url');
65 | });
66 | }
67 | }
68 | });
69 |
70 | jQuery('.article-helper.notloaded').each(function(i, wrapper) {
71 | wrapper = jQuery(wrapper);
72 | var img = wrapper.find('header > img')[0];
73 |
74 | var interval = 500;
75 |
76 | if(wrapper.hasClass('slow-animation')) {
77 | interval = 750;
78 | }
79 |
80 | if(wrapper.hasClass('fast-animation')) {
81 | interval = 250;
82 | }
83 |
84 | if(img) {
85 | // wait for the images
86 | var timer = setInterval(function() {
87 | // when the image is laoded
88 | if(img.complete) {
89 | // stop periodical calls
90 | clearInterval(timer);
91 | // generate the image wrapper
92 | var src = jQuery(img).attr('src');
93 | var url = jQuery(img).parent().attr('data-url');
94 | jQuery(img).remove();
95 | var img_container = jQuery('
');
96 | img_container.appendTo(wrapper);
97 | if(url) {
98 | img_container.css('cursor', 'pointer');
99 |
100 | img_container.bind('touchend', function(e) {
101 | img_container.attr('data-touched', 'true');
102 |
103 | setTimeout(function() {
104 | img_container.attr('data-touched', 'false');
105 | }, 250);
106 | });
107 |
108 | img_container.click(function() {
109 | if(!img_container.attr('data-touched') || img_container.attr('data-touched') === 'false') {
110 | window.location = img_container.attr('data-url');
111 | }
112 | });
113 | }
114 | wrapper.removeClass('notloaded');
115 | // add class with delay
116 | setTimeout(function() {
117 | img_container.addClass('loaded');
118 | }, interval);
119 | }
120 | }, 500);
121 | // add necessary mouse events
122 | wrapper.mouseenter(function() {
123 | if(!wrapper.hasClass('no-anim')) {
124 | wrapper.addClass('article-hover');
125 | }
126 | });
127 |
128 | wrapper.mouseleave(function() {
129 | if(!wrapper.hasClass('no-anim')) {
130 | wrapper.removeClass('article-hover');
131 | }
132 | });
133 | } else {
134 | // where there is no image - display the text directly
135 | wrapper.addClass('article-hover');
136 | }
137 | });
138 |
139 | // fit videos
140 | jQuery(".video-wrapper").fitVids();
141 |
142 | var main_menu = jQuery(".main-navigation");
143 | var main_menu_container = main_menu.find('div').first();
144 | var submenu = main_menu.find('ul').first();
145 |
146 | if(!submenu.length) {
147 | main_menu_container = jQuery(main_menu.find('.nav-menu').first());
148 | submenu = jQuery(main_menu_container.find('ul').first());
149 | }
150 |
151 | main_menu.click(function() {
152 | if(jQuery(window).outerWidth() <= 720) {
153 | if(main_menu.hasClass("opened")) {
154 | main_menu_container.animate({
155 | 'height': 0
156 | }, 500, function() {
157 | main_menu.removeClass("opened");
158 | });
159 | } else {
160 | main_menu.addClass("opened");
161 | var h = submenu.outerHeight();
162 | main_menu_container.css('height', '0');
163 | main_menu_container.animate({
164 | 'height': h + "px"
165 | }, 500);
166 | }
167 | }
168 | });
169 |
170 | // Fix for the mobile devices
171 | if($(document.body).hasClass('touch-screen') && $(window).outerWidth() > 720) {
172 | $('.menu-item-has-children').children('a').each(function(i, link) {
173 | $(link).click(function(e) {
174 | e.preventDefault();
175 | });
176 | });
177 |
178 | $('.menu-item-has-children').children('a').on('touchend', function(e) {
179 | e.stopPropagation();
180 | e.preventDefault();
181 |
182 | if(!$(this).attr('data-time')) {
183 | $(this).parent().addClass('opened');
184 | $(this).attr('data-time', new Date().getTime());
185 | return true;
186 | }
187 |
188 | if($(this).attr('data-time') && (parseInt($(this).attr('data-time'), 10) + 500.0) > new Date().getTime()) {
189 | window.location.href = $(this).attr('href');
190 | return true;
191 | }
192 |
193 | if($(this).attr('data-time') && (parseInt($(this).attr('data-time'), 10) + 500.0) < new Date().getTime()) {
194 | $(this).parent().removeClass('opened');
195 | $(this).removeAttr('data-time');
196 | return true;
197 | }
198 | });
199 | }
200 | });
201 | })(jQuery);
202 |
--------------------------------------------------------------------------------
/customizer/front-end-css.php:
--------------------------------------------------------------------------------
1 |
30 |
170 |
177 |
180 | Customize** to change theme options or click the **Customize** button over the theme thumbnails in the **Appearance -> Themes** menu in WordPress
40 |
41 | ## Support and Contribute
42 |
43 | * Check out the Portfolio theme documentation: [Portfolio documentation](http://www.gavick.com/documentation/wordpress-themes/wordpress-themes-configuration/portfolio-wordpress-theme-configuration/)
44 | * Check out the Github repo: [Portfolio Github repository](https://github.com/GavickPro/Portfolio-Free-WordPress-Theme/) to contribute or report issues
45 |
46 | ## Features
47 |
48 | * Supports IE9+
49 | * One-column design
50 | * Responsive layout
51 | * Custom background
52 | * Custom colors via theme customizer
53 | * Fully configurable via theme customizer
54 | * Custom main menu
55 | * Social menu
56 | * Animated content block
57 | * 1 widget area
58 | * Supports editor style
59 | * Supports featured images
60 | * Supported post formats: gallery, image, link, quote, video
61 | * Threaded comments
62 | * Translation-ready
63 |
64 | ## Changelog
65 |
66 | ### 1.5.3 - May 27, 2016
67 |
68 | * Added new tags
69 | * Fixed issue with the content-footer spacing
70 | * Improved mobile menu behaviour
71 | * Improved menu scripts for cases when menu position name is different
72 | * Better HTTPS handling
73 | * Improved view of the blog items on subpages
74 | * Temporary fix for IE10-11 and Google Fonts
75 | * Moved social icons output outside the the_content filter
76 | * Removed active callback for the post display section …
77 | * Fixed issue with mobile menu when there is no main menu set.
78 | * Fixed issue with sub-sub-menu in the mobile view.
79 | * Changed font smoothing on webkit to get better icons
80 |
81 | ### 1.5.2 - July 5, 2015
82 |
83 | * Added new social icons CSS classes: instagram, behance, dribbble, flickr, github, vimeo, linkedin
84 | * Fixed issue with non-visible portfolio thumbnails
85 | * Fixed issues with sub-sub-menus
86 |
87 | ### 1.5.1 - June 22, 2015
88 |
89 | * Fixed issues with excerpt animations on the portfolio view
90 | * Fixed small issues with translation domains
91 |
92 | ### 1.5.0 - June 17, 2015
93 |
94 | * Added filtering of the post categories on the frontpage
95 | * Added option to select post information type on the portfolio view (tags, categories, title, date)
96 | * Added choice for post preview animations on hover
97 | * Added option to display search at topbar
98 | * Added option to display social icons at topbar
99 | * Added option to specify number of posts per page
100 | * Added option for enabling hard crop mode and using the special portfolio image dimensions
101 | * Added option to specify the excerpt length
102 | * Improved navigation in the image attachment page
103 | * Added AJAX refresh for blogname/blogdescription in the theme customizer
104 | * Moved customizer JS code to a separate JS file
105 | * Fixed issue with background color of widgets placed in the article content
106 | * Fixed issue with the theme description on the small screens
107 | * Fixed menu behaviour on tablets
108 | * Fixed submenu behaviour on mobile devices
109 | * Fixed issue with non-clickable parent menu items
110 | * Fixed issue with low header block in some configurations
111 |
112 | ### 1.4.1 - April 29, 2015
113 |
114 | * Added option to specify the portfolio view width
115 | * Added option to disable navigation only inside one category.
116 | * Added option to enable whole clickable overlay in the portfolio view.
117 | * Improved SEO - Removed links from the header on the single items or pages
118 | * Removed unnecessary code for the page background
119 | * Fixed issue with hidden title when featured image is disabled in the post view
120 | * Fixed issue with showing posts without featured images, when showing post excerpts in the portfolio view is disabled.
121 | * Fixed issue with non-clickable portfolio items when excerpts are disabled
122 |
123 | ### 1.4.0 - April 16, 2015
124 |
125 | * Added option to hide tags in the portfolio view
126 | * Added navigation between posts in the single item view
127 | * Added options for the portfolio block height and padding
128 | * Added mobile menu animation
129 | * Added submenu animation on hover
130 | * Added initial-scale=1 in the viewport in order to fix rotation issues on iOS devices
131 | * Added support for the title-tag theme future
132 | * Added option for the portfolio animation type and speed
133 | * Added option to enable portfolio :hover effect
134 | * Fixed issue with empty comments block when comments are closed and there is no earlier comments
135 | * Fixed problem with non-working background color selection control
136 | * Fixed issue with spacing when comments are disabled on pages
137 | * Fixed issue with access to the portfolio items description on touch screen devices
138 | * Small visual fix for the mobile menu
139 | * Tablet and Mobile CSS improvements and fixes of the small issues
140 |
141 | ### 1.3.0 - March 30, 2015
142 |
143 | * Added custom portfolio image size
144 | * Added option to hide featured images
145 | * Added logo auto-size
146 | * Added disabled loading of the two the same font URLs
147 | * Totally rewritten Theme Customizer code
148 | * Fixed default font configuration
149 | * Fixed issue with the content width option
150 | * Fixed issue with active menu item on mobile devices
151 |
152 | ### 1.2.0 - February 19, 2015
153 |
154 | * Added option to enable/disable frontpage animation
155 | * Added option to enable/disable post elements
156 | * Added option to specify content width
157 | * Added option to enable/disable full-width images
158 | * Improved sticky posts styling
159 |
160 | ### 1.1.1 - December 9, 2014
161 |
162 | * Improved editor CSS loading
163 | * Improved translations
164 | * Small code improvements
165 |
166 | ### 1.1.0 - November 3, 2014
167 |
168 | * Added support for logo image
169 | * Added sanitization for the Theme Customizer options
170 | * Added hiding effect for the Google Fonts URL field when other font type is selected
171 | * Small CSS and code improvements
172 |
173 | ### 1.0.0 - September 18, 2014
174 |
175 | * Initial release
176 |
--------------------------------------------------------------------------------
/editor.css:
--------------------------------------------------------------------------------
1 | /*
2 | CSS for the back-end editor
3 | */
4 |
5 | * {
6 | -webkit-box-sizing: border-box;
7 | -moz-box-sizing: border-box;
8 | -ms-box-sizing: border-box;
9 | box-sizing: border-box;
10 | }
11 | html {
12 | font-size: 62.5%;
13 | -webkit-font-smoothing: subpixel-antialiased;
14 | }
15 | html > body#tinymce {
16 | background: #fff;
17 | color: #777;
18 | font-family: 'Open Sans', sans-serif;
19 | font-size: 14px;
20 | font-weight: 400;
21 | line-height: 1.8;
22 | max-width: 556px!important;
23 | padding: 0 5px 10px 5px!important;
24 | }
25 | a,
26 | .social-menu li:before {
27 | text-decoration: none;
28 | -webkit-transition: all 0.3s ease-out;
29 | -moz-transition: all 0.3s ease-out;
30 | -ms-transition: all 0.3s ease-out;
31 | transition: all 0.3s ease-out;
32 | }
33 | a:active,
34 | a:focus,
35 | a:hover { color: #363636; }
36 | img { max-width: 100%; }
37 | .site {
38 | margin: 0 auto;
39 | max-width: 1100px;
40 | width: 100%;
41 | }
42 | h1,
43 | h2,
44 | h3,
45 | h4,
46 | h5,
47 | h6 {
48 | color: #363636;
49 | font-weight: 300;
50 | }
51 |
52 | h2 { font-size: 28px; }
53 | h3 { font-size: 24px; }
54 | h4 { font-size: 20px; }
55 | h5 { font-size: 18px; }
56 | h6 { font-size: 16px; }
57 |
58 | p {
59 | margin: 1em 0 2em;
60 | }
61 |
62 | iframe {
63 | border: none;
64 | }
65 | code {
66 | background: #f5f5f5;
67 | padding: 5px 10px;
68 | }
69 | pre {
70 | background: #fafafa;
71 | border: 1px solid #e5e5e5;
72 | padding: 20px;
73 | }
74 | dt {
75 | font-weight: bold;
76 | margin: 10px 0 5px 0;
77 | }
78 | dd {
79 | margin-left: 0;
80 | }
81 | table {
82 | border: 1px solid #e5e5e5;
83 | }
84 | th {
85 | background: #f5f5f5;
86 | border: 1px solid #e5e5e5;
87 | padding: 5px 10px;
88 | word-break: normal;
89 | }
90 | td {
91 | border: 1px solid #e5e5e5;
92 | padding: 5px 10px;
93 | }
94 |
95 | /* Form fields, general styles first. */
96 | button,
97 | input,
98 | textarea {
99 | border: 2px solid #d4d0ba;
100 | font-family: inherit;
101 | padding: 5px;
102 | }
103 |
104 | input,
105 | textarea {
106 | border: 1px solid #ddd;
107 | -webkit-border-radius: 2px;
108 | -moz-border-radius: 2px;
109 | border-radius: 2px;
110 | font-size: 14px;
111 | font-weight: 300;
112 | color: #888;
113 | height: 40px;
114 | max-width: 100%!important;
115 | padding: 0 10px;
116 | }
117 |
118 | textarea {
119 | height: auto;
120 | max-width: 100%!important;
121 | padding: 24px;
122 | }
123 |
124 | input:focus,
125 | textarea:focus {
126 | background: #fffef4;
127 | }
128 |
129 | /* Buttons */
130 | button,
131 | input[type="submit"],
132 | input[type="button"],
133 | input[type="reset"] {
134 | background: transparent;
135 | border-radius: 0;
136 | cursor: pointer;
137 | display: inline-block;
138 | font-family: Arial, sans-serif;
139 | font-size: 12px;
140 | font-weight: 400;
141 | height: 40px;
142 | line-height: 40px;
143 | margin: 40px 0 0 0;
144 | padding: 0 40px;
145 | text-transform: uppercase;
146 | text-decoration: none;
147 | -webkit-transition: all 0.3s ease-out;
148 | -moz-transition: all 0.3s ease-out;
149 | -ms-transition: all 0.3s ease-out;
150 | transition: all 0.3s ease-out;
151 | }
152 |
153 | button:hover,
154 | button:focus,
155 | input[type="submit"]:hover,
156 | input[type="button"]:hover,
157 | input[type="reset"]:hover,
158 | input[type="submit"]:focus,
159 | input[type="button"]:focus,
160 | input[type="reset"]:focus,
161 | button:active,
162 | input[type="submit"]:active,
163 | input[type="button"]:active,
164 | input[type="reset"]:active {
165 | border-color: #34373b;
166 | color: #34373b;
167 | }
168 |
169 | /* Placeholder text color -- selectors need to be separate to work. */
170 | ::-webkit-input-placeholder {
171 | color: #7d7b6d;
172 | }
173 |
174 | :-moz-placeholder {
175 | color: #7d7b6d;
176 | }
177 |
178 | ::-moz-placeholder {
179 | color: #7d7b6d;
180 | }
181 |
182 | :-ms-input-placeholder {
183 | color: #7d7b6d;
184 | }
185 |
186 | /*
187 | * Responsive images
188 | *
189 | * Fluid images for posts, comments, and widgets
190 | */
191 | img {
192 | max-width: 100%;
193 | }
194 |
195 | .wp-caption {
196 | margin: 10px 0;
197 | }
198 |
199 | /* Make sure images with WordPress-added height and width attributes are scaled correctly. */
200 | .entry-content img,
201 | .entry-summary img,
202 | .comment-content img[height],
203 | img[class*="align"],
204 | img[class*="wp-image-"],
205 | img[class*="attachment-"] {
206 | height: auto;
207 | }
208 |
209 | img.size-full,
210 | img.size-large,
211 | img.wp-post-image {
212 | height: auto;
213 | max-width: 100%;
214 | }
215 |
216 | /* Make sure videos and embeds fit their containers. */
217 | embed,
218 | iframe,
219 | object,
220 | video {
221 | max-width: 100%;
222 | }
223 |
224 | /* Override the Twitter embed fixed width. */
225 | .twitter-tweet-rendered {
226 | max-width: 100% !important;
227 | }
228 |
229 | /* Images */
230 | .alignleft {
231 | float: left;
232 | }
233 |
234 | .alignright {
235 | float: right;
236 | }
237 |
238 | .aligncenter {
239 | display: block;
240 | margin-left: auto;
241 | margin-right: auto;
242 | }
243 |
244 | img.alignleft {
245 | margin: 5px 20px 5px 0;
246 | }
247 |
248 | .wp-caption.alignleft {
249 | margin: 5px 10px 5px 0;
250 | }
251 |
252 | img.alignright {
253 | margin: 5px 0 5px 20px;
254 | }
255 |
256 | .wp-caption.alignright {
257 | margin: 5px 0 5px 10px;
258 | }
259 |
260 | img.aligncenter {
261 | margin: 5px auto;
262 | }
263 |
264 | img.alignnone {
265 | margin: 5px 0;
266 | }
267 |
268 | .wp-caption .wp-caption-text,
269 | .entry-caption,
270 | .gallery-caption {
271 | color: #aaa;
272 | font-size: 14px;
273 | font-style: italic;
274 | font-weight: 300;
275 | margin: 5px 0 10px 0;
276 | text-align: center;
277 | }
278 |
279 | img.wp-smiley,
280 | .rsswidget img {
281 | border: 0;
282 | border-radius: 0;
283 | box-shadow: none;
284 | margin-bottom: 0;
285 | margin-top: 0;
286 | padding: 0;
287 | }
288 |
289 | .wp-caption.alignleft + ul,
290 | .wp-caption.alignleft + ol {
291 | list-style-position: inside;
292 | }
293 |
294 | /**
295 | * Entry Content
296 | * ----------------------------------------------------------------------------
297 | */
298 |
299 | .readon {
300 | display: inline-block;
301 | font-family: Arial, sans-serif;
302 | font-size: 12px;
303 | font-weight: 400;
304 | height: 40px;
305 | line-height: 40px;
306 | margin: 40px 0 0 0;
307 | padding: 0 40px;
308 | text-transform: uppercase;
309 | }
310 | .readon:active,
311 | .readon:focus,
312 | .readon:hover {
313 | border-color: #34373b;
314 | color: #34373b;
315 | }
316 |
317 | blockquote {
318 | border-left: 4px solid #59c0ab;
319 | background: #fdfbec;
320 | font-size: 12px;
321 | font-weight: 500;
322 | line-height: 2;
323 | margin: 30px 0;
324 | padding: 15px 30px 15px 45px;
325 | }
326 |
327 | blockquote p {
328 | margin: 0;
329 | }
330 |
331 | blockquote cite,
332 | blockquote small {
333 | display: block;
334 | font-size: 14px;
335 | }
336 |
337 | /* Mediaelements */
338 | .hentry .mejs-mediaelement,
339 | .hentry .mejs-container .mejs-controls {
340 | background: #220e10;
341 | }
342 |
343 | .hentry .mejs-controls .mejs-time-rail .mejs-time-loaded,
344 | .hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
345 | background: #fff;
346 | }
347 |
348 | .hentry .mejs-controls .mejs-time-rail .mejs-time-current {
349 | background: #5cc1a9;
350 | }
351 |
352 | .hentry .mejs-controls .mejs-time-rail .mejs-time-total,
353 | .hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total {
354 | background: #595959;
355 | }
356 |
357 | .hentry .mejs-controls .mejs-time-rail span,
358 | .hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total,
359 | .hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
360 | border-radius: 0;
361 | }
362 |
363 |
364 | /**
365 | * Galleries
366 | * ----------------------------------------------------------------------------
367 | */
368 |
369 | .gallery {
370 | margin: 20px 0!important;
371 | width: 100%;
372 | }
373 |
374 | .gallery-item {
375 | float: left;
376 | margin: 0!important;
377 | overflow: hidden;
378 | padding: 0 4px 4px 0;
379 | position: relative;
380 | }
381 |
382 | .gallery-item a,
383 | .gallery-item img {
384 | display: block;
385 | height: auto;
386 | width: 100%;
387 | }
388 |
389 | .gallery-columns-1.gallery-size-medium,
390 | .gallery-columns-1.gallery-size-thumbnail,
391 | .gallery-columns-2.gallery-size-thumbnail,
392 | .gallery-columns-3.gallery-size-thumbnail {
393 | display: table;
394 | margin: 0 auto 20px;
395 | }
396 |
397 | .gallery-columns-1 .gallery-item,
398 | .gallery-columns-2 .gallery-item,
399 | .gallery-columns-3 .gallery-item {
400 | text-align: center;
401 | }
402 |
403 | .gallery-columns-2 .gallery-item {
404 | width: 50%;
405 | }
406 |
407 | .gallery-columns-3 .gallery-item {
408 | width: 33.333333%;
409 | }
410 |
411 | .gallery-columns-4 .gallery-item {
412 | width: 25%;
413 | }
414 |
415 | .gallery-columns-5 .gallery-item {
416 | width: 20%;
417 | }
418 |
419 | .gallery-columns-6 .gallery-item {
420 | width: 16.666666%;
421 | }
422 |
423 | .gallery-columns-7 .gallery-item {
424 | width: 14.285714%;
425 | }
426 |
427 | .gallery-columns-8 .gallery-item {
428 | width: 12.5%;
429 | }
430 |
431 | .gallery-columns-9 .gallery-item {
432 | width: 11.111111%;
433 | }
434 |
435 | .gallery-columns-1 .gallery-item:nth-of-type(1n),
436 | .gallery-columns-2 .gallery-item:nth-of-type(2n),
437 | .gallery-columns-3 .gallery-item:nth-of-type(3n),
438 | .gallery-columns-4 .gallery-item:nth-of-type(4n),
439 | .gallery-columns-5 .gallery-item:nth-of-type(5n),
440 | .gallery-columns-6 .gallery-item:nth-of-type(6n),
441 | .gallery-columns-7 .gallery-item:nth-of-type(7n),
442 | .gallery-columns-8 .gallery-item:nth-of-type(8n),
443 | .gallery-columns-9 .gallery-item:nth-of-type(9n) {
444 | margin-right: 0;
445 | }
446 |
447 | .gallery-icon {
448 | margin: 0!important;
449 | }
450 |
451 | .gallery-caption {
452 | background-color: rgba(0, 0, 0, 0.7);
453 | color: #fff;
454 | font-size: 14px;
455 | line-height: 1.3;
456 | margin: 0!important;
457 | max-height: 50%;
458 | opacity: 0;
459 | padding: 4px 8px;
460 | position: absolute;
461 | bottom: 4px;
462 | right: 4px;
463 | left: 0;
464 | text-align: left;
465 | -webkit-transition: opacity 400ms ease;
466 | transition: opacity 400ms ease;
467 | }
468 |
469 | .gallery-item:hover .gallery-caption {
470 | opacity: 1;
471 | }
472 |
473 | .gallery-columns-7 .gallery-caption,
474 | .gallery-columns-8 .gallery-caption,
475 | .gallery-columns-9 .gallery-caption {
476 | display: none;
477 | }
478 |
--------------------------------------------------------------------------------
/css/normalize.css:
--------------------------------------------------------------------------------
1 | /*! normalize.css 2012-01-17T16:33 UTC - http://github.com/necolas/normalize.css */
2 |
3 | /* =============================================================================
4 | HTML5 display definitions
5 | ========================================================================== */
6 |
7 | /*
8 | * Corrects block display not defined in IE6/7/8/9 & FF3
9 | */
10 |
11 | article,
12 | aside,
13 | details,
14 | figcaption,
15 | figure,
16 | footer,
17 | header,
18 | hgroup,
19 | nav,
20 | section {
21 | display: block;
22 | }
23 |
24 | /*
25 | * Corrects inline-block display not defined in IE6/7/8/9 & FF3
26 | */
27 |
28 | audio,
29 | canvas,
30 | video {
31 | display: inline-block;
32 | *display: inline;
33 | *zoom: 1;
34 | }
35 |
36 | /*
37 | * Prevents modern browsers from displaying 'audio' without controls
38 | */
39 |
40 | audio:not([controls]) {
41 | display: none;
42 | }
43 |
44 | /*
45 | * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
46 | * Known issue: no IE6 support
47 | */
48 |
49 | [hidden] {
50 | display: none;
51 | }
52 |
53 |
54 | /* =============================================================================
55 | Base
56 | ========================================================================== */
57 |
58 | /*
59 | * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
60 | * http://clagnut.com/blog/348/#c790
61 | * 2. Keeps page centred in all browsers regardless of content height
62 | * 3. Prevents iOS text size adjust after orientation change, without disabling user zoom
63 | * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
64 | */
65 |
66 | html {
67 | font-size: 100%; /* 1 */
68 | overflow-y: scroll; /* 2 */
69 | -webkit-text-size-adjust: 100%; /* 3 */
70 | -ms-text-size-adjust: 100%; /* 3 */
71 | }
72 |
73 | /*
74 | * Addresses margins handled incorrectly in IE6/7
75 | */
76 |
77 | body {
78 | margin: 0;
79 | }
80 |
81 | /*
82 | * Addresses font-family inconsistency between 'textarea' and other form elements.
83 | */
84 |
85 | body,
86 | button,
87 | input,
88 | select,
89 | textarea {
90 | font-family: sans-serif;
91 | }
92 |
93 |
94 | /* =============================================================================
95 | Links
96 | ========================================================================== */
97 |
98 | /*
99 | * Addresses outline displayed oddly in Chrome
100 | */
101 |
102 | a:focus {
103 | outline: thin dotted;
104 | }
105 |
106 | /*
107 | * Improves readability when focused and also mouse hovered in all browsers
108 | * people.opera.com/patrickl/experiments/keyboard/test
109 | */
110 |
111 | a:hover,
112 | a:active {
113 | outline: 0;
114 | }
115 |
116 |
117 | /* =============================================================================
118 | Typography
119 | ========================================================================== */
120 |
121 | /*
122 | * Neutralise smaller font-size in 'section' and 'article' in FF4+, Chrome, S5
123 | */
124 |
125 | h1 {
126 | font-size: 2em;
127 | }
128 |
129 | /**
130 | * Address differences between Firefox and other browsers.
131 | */
132 |
133 | hr {
134 | border: 0;
135 | height: 6rem;
136 | position: relative;
137 | }
138 | /*
139 | * Addresses styling not present in IE7/8/9, S5, Chrome
140 | */
141 |
142 | abbr[title] {
143 | border-bottom: 1px dotted;
144 | }
145 |
146 | /*
147 | * Addresses style set to 'bolder' in FF3+, S4/5, Chrome
148 | */
149 |
150 | b,
151 | strong {
152 | font-weight: bold;
153 | }
154 |
155 | blockquote {
156 | margin: 1em 40px;
157 | position: relative;
158 | }
159 |
160 | /*
161 | * Addresses styling not present in S5, Chrome
162 | */
163 |
164 | dfn {
165 | font-style: italic;
166 | }
167 |
168 | /*
169 | * Addresses styling not present in IE6/7/8/9
170 | */
171 |
172 | mark {
173 | background: #ff0;
174 | color: #000;
175 | }
176 |
177 | /*
178 | * Corrects font family set oddly in IE6, S4/5, Chrome
179 | * en.wikipedia.org/wiki/User:Davidgothberg/Test59
180 | */
181 |
182 | pre,
183 | code,
184 | kbd,
185 | samp {
186 | font-family: monospace, serif;
187 | _font-family: 'courier new', monospace;
188 | font-size: 1em;
189 | }
190 |
191 | /*
192 | * Improves readability of pre-formatted text in all browsers
193 | */
194 |
195 | pre {
196 | white-space: pre;
197 | white-space: pre-wrap;
198 | word-wrap: break-word;
199 | }
200 |
201 | /*
202 | * 1. Addresses CSS quotes not supported in IE6/7
203 | * 2. Addresses quote property not supported in S4
204 | */
205 |
206 | /* 1 */
207 |
208 | q {
209 | quotes: none;
210 | }
211 |
212 | /* 2 */
213 |
214 | q:before,
215 | q:after {
216 | content: '';
217 | content: none;
218 | }
219 |
220 | small {
221 | font-size: 75%;
222 | }
223 |
224 | /*
225 | * Prevents sub and sup affecting line-height in all browsers
226 | * gist.github.com/413930
227 | */
228 |
229 | sub,
230 | sup {
231 | font-size: 75%;
232 | line-height: 0;
233 | position: relative;
234 | vertical-align: baseline;
235 | }
236 |
237 | sup {
238 | top: -0.5em;
239 | }
240 |
241 | sub {
242 | bottom: -0.25em;
243 | }
244 |
245 |
246 | /* =============================================================================
247 | Lists
248 | ========================================================================== */
249 |
250 | ul,
251 | ol {
252 | margin-left: 0;
253 | padding: 0 0 0 40px;
254 | }
255 |
256 | dd {
257 | margin: 0 0 0 40px;
258 | }
259 |
260 | nav ul,
261 | nav ol {
262 | list-style: none;
263 | list-style-image: none;
264 | }
265 |
266 |
267 | /* =============================================================================
268 | Embedded content
269 | ========================================================================== */
270 |
271 | /*
272 | * 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
273 | * 2. Improves image quality when scaled in IE7
274 | * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
275 | */
276 |
277 | img {
278 | border: 0; /* 1 */
279 | -ms-interpolation-mode: bicubic; /* 2 */
280 | }
281 |
282 | /*
283 | * Corrects overflow displayed oddly in IE9
284 | */
285 |
286 | svg:not(:root) {
287 | overflow: hidden;
288 | }
289 |
290 |
291 | /* =============================================================================
292 | Figures
293 | ========================================================================== */
294 |
295 | /*
296 | * Addresses margin not present in IE6/7/8/9, S5, O11
297 | */
298 |
299 | figure {
300 | margin: 0;
301 | }
302 |
303 |
304 | /* =============================================================================
305 | Forms
306 | ========================================================================== */
307 |
308 | /*
309 | * Corrects margin displayed oddly in IE6/7
310 | */
311 |
312 | form {
313 | margin: 0;
314 | }
315 |
316 | /*
317 | * Define consistent border, margin, and padding
318 | */
319 |
320 | fieldset {
321 | border: 1px solid #c0c0c0;
322 | margin: 0 2px;
323 | padding: 0.35em 0.625em 0.75em;
324 | }
325 |
326 | /*
327 | * 1. Corrects color not being inherited in IE6/7/8/9
328 | * 2. Corrects text not wrapping in FF3
329 | * 3. Corrects alignment displayed oddly in IE6/7
330 | */
331 |
332 | legend {
333 | border: 0; /* 1 */
334 | padding: 0;
335 | white-space: normal; /* 2 */
336 | *margin-left: -7px; /* 3 */
337 | }
338 |
339 | /*
340 | * 1. Corrects font size not being inherited in all browsers
341 | * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
342 | * 3. Improves appearance and consistency in all browsers
343 | */
344 |
345 | button,
346 | input,
347 | select,
348 | textarea {
349 | font-size: 100%; /* 1 */
350 | margin: 0; /* 2 */
351 | vertical-align: baseline; /* 3 */
352 | *vertical-align: middle; /* 3 */
353 | }
354 |
355 | /*
356 | * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
357 | */
358 |
359 | button,
360 | input {
361 | line-height: normal; /* 1 */
362 | }
363 |
364 | /*
365 | * 1. Improves usability and consistency of cursor style between image-type 'input' and others
366 | * 2. Corrects inability to style clickable 'input' types in iOS
367 | * 3. Removes inner spacing in IE7 without affecting normal text inputs
368 | * Known issue: inner spacing remains in IE6
369 | */
370 |
371 | button,
372 | input[type="button"],
373 | input[type="reset"],
374 | input[type="submit"] {
375 | cursor: pointer; /* 1 */
376 | -webkit-appearance: button; /* 2 */
377 | *overflow: visible; /* 3 */
378 | }
379 |
380 | /*
381 | * 1. Addresses box sizing set to content-box in IE8/9
382 | * 2. Removes excess padding in IE8/9
383 | * 3. Removes excess padding in IE7
384 | Known issue: excess padding remains in IE6
385 | */
386 |
387 | input[type="checkbox"],
388 | input[type="radio"] {
389 | box-sizing: border-box; /* 1 */
390 | padding: 0; /* 2 */
391 | *height: 13px; /* 3 */
392 | *width: 13px; /* 3 */
393 | }
394 |
395 | /*
396 | * 1. Addresses appearance set to searchfield in S5, Chrome
397 | * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
398 | */
399 |
400 | input[type="search"] {
401 | -webkit-appearance: textfield; /* 1 */
402 | }
403 |
404 | /*
405 | * Removes inner padding that is displayed in S5, Chrome on OS X
406 | */
407 |
408 | input[type="search"]::-webkit-search-decoration {
409 | -webkit-appearance: none;
410 | }
411 |
412 | /*
413 | * Removes search cancel button in S5, Chrome on OS X
414 | */
415 |
416 | input[type="search"]::-webkit-search-cancel-button {
417 | -webkit-appearance: none;
418 | }
419 |
420 | /*
421 | * Removes inner padding and border in FF3+
422 | * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
423 | */
424 |
425 | button::-moz-focus-inner,
426 | input::-moz-focus-inner {
427 | border: 0;
428 | padding: 0;
429 | }
430 |
431 | /*
432 | * 1. Removes default vertical scrollbar in IE6/7/8/9
433 | * 2. Improves readability and alignment in all browsers
434 | */
435 |
436 | textarea {
437 | overflow: auto; /* 1 */
438 | vertical-align: top; /* 2 */
439 | }
440 |
441 |
442 | /* =============================================================================
443 | Tables
444 | ========================================================================== */
445 |
446 | /*
447 | * Remove most spacing between table cells
448 | */
449 |
450 | table {
451 | border-collapse: collapse;
452 | border-spacing: 0;
453 | }
--------------------------------------------------------------------------------
/languages/Portfolio.pot:
--------------------------------------------------------------------------------
1 | # Portfolio
2 | # Copyright (C) 2014-2015 GavickPro
3 | # This file is distributed under the same license as the PACKAGE package.
4 | # GavickPro
, 2014-2015.
5 | #
6 | #, fuzzy
7 | msgid ""
8 | msgstr "Project-Id-Version: 1.5.1\n"
9 | "Report-Msgid-Bugs-To: \n"
10 | "POT-Creation-Date: 2014-09-15 15:12+0200\n"
11 | "PO-Revision-Date: 2015-22-06 09:50+0200\n"
12 | "Last-Translator: Tomasz Dziuda \n"
13 | "Language-Team: LANGUAGE \n"
14 | "MIME-Version: 1.0\n"
15 | "Content-Type: text/plain; charset=CHARSET\n"
16 | "Content-Transfer-Encoding: 8bit\n"
17 |
18 | #: comments.php:31
19 | #, php-format
20 | msgid "%1$s Comments"
21 | msgstr ""
22 |
23 | #: comments.php:56
24 | msgid "← Older Comments"
25 | msgstr ""
26 |
27 | #: image.php:41
28 | msgid "↑ Return to post"
29 | msgstr ""
30 |
31 | #: content-meta.php:35
32 | msgid ", "
33 | msgstr ""
34 |
35 | #: comments.php:27
36 | msgid "1 Comment"
37 | msgstr ""
38 |
39 | #: theme-customizer.php:591
40 | msgid "2 Columns"
41 | msgstr ""
42 |
43 | #: comments.php:29
44 | msgid "2 Comments"
45 | msgstr ""
46 |
47 | #: theme-customizer.php:590
48 | msgid "3 Columns"
49 | msgstr ""
50 |
51 | #: theme-customizer.php:589
52 | msgid "4 Column"
53 | msgstr ""
54 |
55 | #: image.php:37
56 | msgid "← Previous Image"
57 | msgstr ""
58 |
59 | #: theme-customizer.php:492
60 | msgid "Adjust header size to the logo image"
61 | msgstr ""
62 |
63 | #: theme-customizer.php:59
64 | msgid "Advanced settings"
65 | msgstr ""
66 |
67 | #: author.php:17
68 | #, php-format
69 | msgid "All posts by %s"
70 | msgstr ""
71 |
72 | #: theme-customizer.php:586
73 | msgid "Amount of article columns"
74 | msgstr ""
75 |
76 | #: theme-customizer.php:850
77 | msgid "Animation speed"
78 | msgstr ""
79 |
80 | #: theme-customizer.php:832
81 | msgid "Animation type"
82 | msgstr ""
83 |
84 | #: functions.php:245
85 | msgid "Appears at the bottom of the website."
86 | msgstr ""
87 |
88 | #: archive.php:23
89 | msgid "Blog Archives"
90 | msgstr ""
91 |
92 | #: theme-customizer.php:546
93 | msgid "Body Font"
94 | msgstr ""
95 |
96 | #: functions.php:243
97 | msgid "Bottom widget area"
98 | msgstr ""
99 |
100 | #: category.php:14
101 | #, php-format
102 | msgid "Category Archives: %s"
103 | msgstr ""
104 |
105 | #: theme-customizer.php:836
106 | msgid "Center flip"
107 | msgstr ""
108 |
109 | #: comments.php:55
110 | msgid "Comment navigation"
111 | msgstr ""
112 |
113 | #: comments.php:62
114 | msgid "Comments are closed."
115 | msgstr ""
116 |
117 | #: theme-customizer.php:613
118 | msgid "Content width"
119 | msgstr ""
120 |
121 | #: archive.php:17
122 | #, php-format
123 | msgid "Daily Archives: %s"
124 | msgstr ""
125 |
126 | #: theme-customizer.php:600
127 | msgid "Date format"
128 | msgstr ""
129 |
130 | #: theme-customizer.php:835
131 | msgid "Default (flip)"
132 | msgstr ""
133 |
134 | #: theme-customizer.php:603
135 | msgid "Default theme format"
136 | msgstr ""
137 |
138 | #: content-meta.php:43 comments-template.php:30 comments-template.php:65
139 | #: page.php:32
140 | msgid "Edit"
141 | msgstr ""
142 |
143 | #: theme-customizer.php:42
144 | msgid "Effects"
145 | msgstr ""
146 |
147 | #: theme-customizer.php:631
148 | msgid "Enable word-break"
149 | msgstr ""
150 |
151 | #: theme-customizer.php:918
152 | msgid "Excerpt length"
153 | msgstr ""
154 |
155 | #: theme-customizer.php:853
156 | msgid "Fast animation"
157 | msgstr ""
158 |
159 | #: theme-customizer.php:927
160 | msgid "Filter categories"
161 | msgstr ""
162 |
163 | #: theme-customizer.php:26
164 | msgid "Font options"
165 | msgstr ""
166 |
167 | #: footer.php:27
168 | msgid "Free WordPress Theme designed by "
169 | msgstr ""
170 |
171 | #: theme-customizer.php:814
172 | msgid "Frontpage items animation"
173 | msgstr ""
174 |
175 | #: theme-customizer.php:640
176 | msgid "Full-width images"
177 | msgstr ""
178 |
179 | #: theme-customizer.php:536
180 | msgid "Google Font URL for Header"
181 | msgstr ""
182 |
183 | #: theme-customizer.php:567
184 | msgid "Google Font URL for the Body"
185 | msgstr ""
186 |
187 | #: theme-customizer.php:515
188 | msgid "Header Font"
189 | msgstr ""
190 |
191 | #: theme-customizer.php:823
192 | msgid "Hover effect in portfolio"
193 | msgstr ""
194 |
195 | #: theme-customizer.php:60
196 | msgid "If you change the portfolio image dimensions please remember to "
197 | "regenerate all thumbnails i.e. using the Regenerate Thumbnails "
198 | "plugin."
199 | msgstr ""
200 |
201 | #: 404.php:21
202 | msgid "It looks like nothing was found at this location. Maybe try a search?"
203 | msgstr ""
204 |
205 | #: content-none.php:23
206 | msgid "It seems we can’t find what you’re looking for. Perhaps "
207 | "searching can help."
208 | msgstr ""
209 |
210 | #: theme-customizer.php:34
211 | msgid "Layout & Features"
212 | msgstr ""
213 |
214 | #: comments.php:69
215 | msgid "Leave a Reply"
216 | msgstr ""
217 |
218 | #: theme-customizer.php:482
219 | msgid "Logo image"
220 | msgstr ""
221 |
222 | #: archive.php:19
223 | #, php-format
224 | msgid "Monthly Archives: %s"
225 | msgstr ""
226 |
227 | #: theme-customizer.php:730
228 | msgid "Navigate between posts in the same category"
229 | msgstr ""
230 |
231 | #: functions.php:94
232 | msgid "Navigation Menu"
233 | msgstr ""
234 |
235 | #: comments.php:57
236 | msgid "Newer Comments →"
237 | msgstr ""
238 |
239 | #: functions.php:283
240 | msgid "Newer posts"
241 | msgstr ""
242 |
243 | #: image.php:38
244 | msgid "Next Image →"
245 | msgstr ""
246 |
247 | #: theme-customizer.php:854
248 | msgid "Normal animation"
249 | msgstr ""
250 |
251 | #: 404.php:15
252 | msgid "Not Found"
253 | msgstr ""
254 |
255 | #: content-none.php:8
256 | msgid "Nothing Found"
257 | msgstr ""
258 |
259 | #: functions.php:277
260 | msgid "Older posts"
261 | msgstr ""
262 |
263 | #: theme-customizer.php:840 theme-customizer.php:872
264 | msgid "Opacity"
265 | msgstr ""
266 |
267 | #: functions.php:280
268 | msgid "Page"
269 | msgstr ""
270 |
271 | #: image.php:32 content-video.php:31 content-archive.php:94 page.php:28
272 | #: content-gallery.php:22 content-quote.php:16 content-link.php:16
273 | #: content.php:23 content-image.php:22
274 | msgid "Pages:"
275 | msgstr ""
276 |
277 | #: comments-template.php:28
278 | msgid "Pingback:"
279 | msgstr ""
280 |
281 | #: theme-customizer.php:882
282 | msgid "Portfolio block height (px)"
283 | msgstr ""
284 |
285 | #: theme-customizer.php:891
286 | msgid "Portfolio block height on mobile (px)"
287 | msgstr ""
288 |
289 | #: theme-customizer.php:900
290 | msgid "Portfolio block padding"
291 | msgstr ""
292 |
293 | #: theme-customizer.php:909
294 | msgid "Portfolio block padding on mobile"
295 | msgstr ""
296 |
297 | #: functions.php:435
298 | msgid "Portfolio image"
299 | msgstr ""
300 |
301 | #: theme-customizer.php:794
302 | msgid "Portfolio image height (px)"
303 | msgstr ""
304 |
305 | #: theme-customizer.php:784
306 | msgid "Portfolio image width (px)"
307 | msgstr ""
308 |
309 | #: theme-customizer.php:622
310 | msgid "Portfolio view width"
311 | msgstr ""
312 |
313 | #: comments-template.php:36
314 | msgid "Post author"
315 | msgstr ""
316 |
317 | #: theme-customizer.php:950
318 | msgid "Post categories"
319 | msgstr ""
320 |
321 | #: theme-customizer.php:951
322 | msgid "Post date"
323 | msgstr ""
324 |
325 | #: theme-customizer.php:50
326 | msgid "Post display"
327 | msgstr ""
328 |
329 | #: theme-customizer.php:946
330 | msgid "Post information under image"
331 | msgstr ""
332 |
333 | #: theme-customizer.php:865
334 | msgid "Post preview animation type"
335 | msgstr ""
336 |
337 | #: theme-customizer.php:949
338 | msgid "Post tags"
339 | msgstr ""
340 |
341 | #: theme-customizer.php:952
342 | msgid "Post title"
343 | msgstr ""
344 |
345 | #: content-meta.php:37
346 | msgid "Posted in "
347 | msgstr ""
348 |
349 | #: theme-customizer.php:577
350 | msgid "Posts per page"
351 | msgstr ""
352 |
353 | #: theme-customizer.php:504
354 | msgid "Primary Color"
355 | msgstr ""
356 |
357 | #: footer.php:28
358 | msgid "Proudly published with "
359 | msgstr ""
360 |
361 | #: content-video.php:21 content-video.php:26 content-video.php:28
362 | #: content-archive.php:93 content-gallery.php:17 content-gallery.php:21
363 | #: content-quote.php:15 content-link.php:15 content.php:18 content.php:22
364 | #: content-image.php:17 content-image.php:21
365 | msgid "Read more"
366 | msgstr ""
367 |
368 | #: content-none.php:14
369 | #, php-format
370 | msgid "Ready to publish your first post? Get started here"
371 | "a>."
372 | msgstr ""
373 |
374 | #: theme-customizer.php:873
375 | msgid "Scale"
376 | msgstr ""
377 |
378 | #: theme-customizer.php:837
379 | msgid "Scale bottom"
380 | msgstr ""
381 |
382 | #: theme-customizer.php:838
383 | msgid "Scale center"
384 | msgstr ""
385 |
386 | #: theme-customizer.php:839
387 | msgid "Scale top"
388 | msgstr ""
389 |
390 | #: search.php:13
391 | #, php-format
392 | msgid "Search Results for: %s"
393 | msgstr ""
394 |
395 | #: theme-customizer.php:936
396 | msgid "Select categories"
397 | msgstr ""
398 |
399 | #: functions.php:399
400 | msgid "Share:"
401 | msgstr ""
402 |
403 | #: theme-customizer.php:766
404 | msgid "Show author"
405 | msgstr ""
406 |
407 | #: theme-customizer.php:739
408 | msgid "Show category"
409 | msgstr ""
410 |
411 | #: theme-customizer.php:712
412 | msgid "Show date"
413 | msgstr ""
414 |
415 | #: theme-customizer.php:649
416 | msgid "Show excerpts on portfolio"
417 | msgstr ""
418 |
419 | #: theme-customizer.php:694
420 | msgid "Show featured image"
421 | msgstr ""
422 |
423 | #: theme-customizer.php:658
424 | msgid "Show post information on portfolio"
425 | msgstr ""
426 |
427 | #: theme-customizer.php:721
428 | msgid "Show post navigation"
429 | msgstr ""
430 |
431 | #: theme-customizer.php:676
432 | msgid "Show search at top bar"
433 | msgstr ""
434 |
435 | #: theme-customizer.php:757
436 | msgid "Show social icons"
437 | msgstr ""
438 |
439 | #: theme-customizer.php:685
440 | msgid "Show social icons at top bar"
441 | msgstr ""
442 |
443 | #: theme-customizer.php:748
444 | msgid "Show tags"
445 | msgstr ""
446 |
447 | #: theme-customizer.php:703
448 | msgid "Show title"
449 | msgstr ""
450 |
451 | #: theme-customizer.php:869
452 | msgid "Slide down"
453 | msgstr ""
454 |
455 | #: theme-customizer.php:870
456 | msgid "Slide left"
457 | msgstr ""
458 |
459 | #: theme-customizer.php:871
460 | msgid "Slide right"
461 | msgstr ""
462 |
463 | #: theme-customizer.php:868
464 | msgid "Slide up"
465 | msgstr ""
466 |
467 | #: theme-customizer.php:855
468 | msgid "Slow animation"
469 | msgstr ""
470 |
471 | #: functions.php:95
472 | msgid "Social Menu"
473 | msgstr ""
474 |
475 | #: content-none.php:18
476 | msgid "Sorry, but nothing matched your search terms. Please try again with "
477 | "different keywords."
478 | msgstr ""
479 |
480 | #: tag.php:13
481 | #, php-format
482 | msgid "Tag Archives: %s"
483 | msgstr ""
484 |
485 | #: 404.php:20
486 | msgid "This is somewhat embarrassing, isn’t it?"
487 | msgstr ""
488 |
489 | #: comments.php:13
490 | msgid "This post is password protected. Enter the password to view any "
491 | "comments."
492 | msgstr ""
493 |
494 | #: theme-customizer.php:775
495 | msgid "Use dedicated portfolio image size"
496 | msgstr ""
497 |
498 | #: theme-customizer.php:804
499 | msgid "Use hard crop mode"
500 | msgstr ""
501 |
502 | #: theme-customizer.php:667
503 | msgid "Whole overlay clickable in portfolio"
504 | msgstr ""
505 |
506 | #: theme-customizer.php:604
507 | msgid "WordPress Date Format"
508 | msgstr ""
509 |
510 | #: archive.php:21
511 | #, php-format
512 | msgid "Yearly Archives: %s"
513 | msgstr ""
514 |
515 | #: header.php:21
516 | msgid "You're using an unsupported version of Internet Explorer. Please upgrade your browser for the best user experience on "
519 | "our site. Thank you."
520 | msgstr ""
521 |
522 | #: comments-template.php:56
523 | msgid "Your comment is awaiting moderation."
524 | msgstr ""
525 |
526 | #: functions.php:280
527 | msgid "of"
528 | msgstr ""
529 |
--------------------------------------------------------------------------------
/functions.php:
--------------------------------------------------------------------------------
1 | for posts and comments.
70 | add_theme_support( 'automatic-feed-links' );
71 |
72 | /*
73 | * Switches default core markup for search form, comment form,
74 | * and comments to output valid HTML5.
75 | */
76 | add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );
77 |
78 | /**
79 | * Add support for the title-tag
80 | *
81 | * @since Portfolio 1.4
82 | */
83 | add_theme_support( 'title-tag' );
84 |
85 | /*
86 | * This theme supports all available post formats by default.
87 | * See http://codex.wordpress.org/Post_Formats
88 | */
89 | add_theme_support('post-formats', array(
90 | 'gallery', 'image', 'link', 'quote', 'video'
91 | ));
92 |
93 | // This theme uses wp_nav_menu() in two locations.
94 | register_nav_menu('primary', __('Navigation Menu', 'portfolio'));
95 | register_nav_menu('footer', __('Social Menu', 'portfolio'));
96 |
97 | /*
98 | * This theme uses a custom image size for featured images, displayed on
99 | * "standard" posts and pages.
100 | */
101 | add_theme_support('post-thumbnails');
102 |
103 | // Support for custom background
104 | $args = array(
105 | 'default-color' => 'f1f1f1',
106 | 'wp-head-callback' => 'portfolio_custom_background_callback'
107 | );
108 | add_theme_support('custom-background', $args);
109 |
110 | // This theme uses its own gallery styles.
111 | add_filter('use_default_gallery_style', '__return_false');
112 | }
113 | }
114 |
115 | add_action('after_setup_theme', 'portfolio_setup');
116 |
117 | if(!function_exists('portfolio_custom_background_callback')) {
118 | /**
119 | * Modify the custom background head code
120 | *
121 | * @return void
122 | */
123 |
124 | function portfolio_custom_background_callback() {
125 | $background = get_background_image();
126 | $color = get_background_color();
127 | if ( ! $background && ! $color )
128 | return;
129 |
130 | $style = $color ? "background-color: #$color;" : '';
131 |
132 | if ($background) {
133 | $image = " background-image: url('$background');";
134 |
135 | $repeat = get_theme_mod('background_repeat', 'repeat');
136 | if (!in_array($repeat, array('no-repeat', 'repeat-x', 'repeat-y', 'repeat'))) {
137 | $repeat = 'repeat';
138 | }
139 | $repeat = " background-repeat: $repeat;";
140 |
141 | $position = get_theme_mod('background_position_x', 'left');
142 | if (!in_array($position, array( 'center', 'right', 'left'))) {
143 | $position = 'left';
144 | }
145 | $position = " background-position: top $position;";
146 |
147 | $attachment = get_theme_mod( 'background_attachment', 'scroll' );
148 | if (!in_array($attachment, array( 'fixed', 'scroll' ))) {
149 | $attachment = 'scroll';
150 | }
151 | $attachment = " background-attachment: $attachment;";
152 |
153 | $style .= $image . $repeat . $position . $attachment;
154 | }
155 | ?>
156 |
159 | __( 'Bottom widget area', 'portfolio' ),
244 | 'id' => 'bottom',
245 | 'description' => __( 'Appears at the bottom of the website.', 'portfolio' ),
246 | 'before_widget' => '',
247 | 'after_widget' => '
',
248 | 'before_title' => '',
250 | ));
251 | }
252 | }
253 |
254 | add_action('widgets_init', 'portfolio_widgets_init');
255 |
256 | if (!function_exists('portfolio_paging_nav')) {
257 | /**
258 | * Display navigation to next/previous set of posts when applicable.
259 | *
260 | *
261 | * @return void
262 | */
263 | function portfolio_paging_nav() {
264 | global $wp_query, $paged;
265 |
266 | //display number of current page
267 | $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
268 |
269 | // Don't print empty markup if there's only one page.
270 | if ( $wp_query->max_num_pages < 2 )
271 | return;
272 | ?>
273 |
288 | ') !== FALSE || stripos(get_the_content(), '') !== FALSE;
295 |
296 | if($video_condition) {
297 | $video_code = '';
298 |
299 | if(stripos(get_the_content(), '') !== FALSE) {
300 | $start = stripos(get_the_content(), '
22 | 23 |
24 |