Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WP Theme
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Anton Sarukhanov
WP Theme
Commits
1ef1a68c
Commit
1ef1a68c
authored
9 years ago
by
Anton Sarukhanov
Browse files
Options
Downloads
Patches
Plain Diff
dos2unix
parent
6991394a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
landing-page.php
+108
-108
108 additions, 108 deletions
landing-page.php
with
108 additions
and
108 deletions
landing-page.php
+
108
−
108
View file @
1ef1a68c
<?php
// Exit if accessed directly
if
(
!
defined
(
'ABSPATH'
)
)
{
exit
;
}
/**
* Landing Page Template
*
Template Name: Landing Page (no menu)
*
* @file landing-page.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 - 2014 CyberChimps
* @license license.txt
* @version Release: 1.0
* @filesource wp-content/themes/responsive/landing-page.php
* @link http://codex.wordpress.org/Theme_Development#Pages_.28page.php.29
* @since available since Release 1.0
*/
get_header
();
?>
<div
id=
"content-full"
class=
"grid col-940"
>
<?php
if
(
have_posts
()
)
:
?>
<?php
while
(
have_posts
()
)
:
the_post
();
?>
<?php
responsive_entry_before
();
?>
<div
id=
"post-
<?php
the_ID
();
?>
"
<?php
post_class
();
?>
>
<?php
responsive_entry_top
();
?>
<div
class=
"post-entry"
>
<?php
the_content
(
__
(
'Read more ›'
,
'responsive'
)
);
?>
<?php
wp_link_pages
(
array
(
'before'
=>
'<div class="pagination">'
.
__
(
'Pages:'
,
'responsive'
),
'after'
=>
'</div>'
)
);
?>
</div>
<?php
get_template_part
(
'post-data'
,
get_post_type
()
);
?>
<?php
responsive_entry_bottom
();
?>
<h3>
Projects
</h3>
<?php
$args
=
array
(
'posts_per_page'
=>
-
1
,
'post__in'
=>
get_option
(
'sticky_posts'
),
'tag'
=>
'project'
,
'ignore_sticky_posts'
=>
1
,
'orderby'
=>
'
titl
e'
,
'order'
=>
'
A
SC'
,
);
$sticky_posts
=
new
WP_Query
(
$args
);
?>
<?php
if
(
$sticky_posts
->
have_posts
()
)
:
?>
<?php
while
(
$sticky_posts
->
have_posts
()
)
:
$sticky_posts
->
the_post
();
?>
<?php
responsive_entry_before
();
?>
<div
id=
"post-
<?php
the_ID
();
?>
"
<?php
post_class
(
"fp-sticky-post"
);
?>
>
<?php
responsive_entry_top
();
?>
<?php
if
(
has_post_thumbnail
()
)
:
?>
<a
href=
"
<?php
the_permalink
();
?>
"
title=
"
<?php
the_title_attribute
();
?>
"
>
<?php
the_post_thumbnail
(
array
(
150
,
150
));
?>
</a>
<?php
endif
;
?>
<h4
class=
"entry-title post-title"
><a
href=
"
<?php
the_permalink
()
?>
"
rel=
"bookmark"
>
<?php
the_title
();
?>
</a></h4>
<?php
the_excerpt
();
?>
<?php
responsive_entry_bottom
();
?>
</div>
<?php
responsive_entry_after
();
?>
<?php
endwhile
;
get_template_part
(
'loop-nav'
,
get_post_type
()
);
else
:
get_template_part
(
'loop-no-posts'
,
get_post_type
()
);
endif
;
?>
</div>
<?php
responsive_entry_after
();
?>
<?php
endwhile
;
get_template_part
(
'loop-nav'
,
get_post_type
()
);
else
:
get_template_part
(
'loop-no-posts'
,
get_post_type
()
);
endif
;
?>
</div>
<?php
get_footer
();
?>
<?php
// Exit if accessed directly
if
(
!
defined
(
'ABSPATH'
)
)
{
exit
;
}
/**
* Landing Page Template
*
Template Name: Landing Page (no menu)
*
* @file landing-page.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 - 2014 CyberChimps
* @license license.txt
* @version Release: 1.0
* @filesource wp-content/themes/responsive/landing-page.php
* @link http://codex.wordpress.org/Theme_Development#Pages_.28page.php.29
* @since available since Release 1.0
*/
get_header
();
?>
<div
id=
"content-full"
class=
"grid col-940"
>
<?php
if
(
have_posts
()
)
:
?>
<?php
while
(
have_posts
()
)
:
the_post
();
?>
<?php
responsive_entry_before
();
?>
<div
id=
"post-
<?php
the_ID
();
?>
"
<?php
post_class
();
?>
>
<?php
responsive_entry_top
();
?>
<div
class=
"post-entry"
>
<?php
the_content
(
__
(
'Read more ›'
,
'responsive'
)
);
?>
<?php
wp_link_pages
(
array
(
'before'
=>
'<div class="pagination">'
.
__
(
'Pages:'
,
'responsive'
),
'after'
=>
'</div>'
)
);
?>
</div>
<?php
get_template_part
(
'post-data'
,
get_post_type
()
);
?>
<?php
responsive_entry_bottom
();
?>
<h3>
Projects
</h3>
<?php
$args
=
array
(
'posts_per_page'
=>
-
1
,
'post__in'
=>
get_option
(
'sticky_posts'
),
'tag'
=>
'project'
,
'ignore_sticky_posts'
=>
1
,
'orderby'
=>
'
dat
e'
,
'order'
=>
'
DE
SC'
,
);
$sticky_posts
=
new
WP_Query
(
$args
);
?>
<?php
if
(
$sticky_posts
->
have_posts
()
)
:
?>
<?php
while
(
$sticky_posts
->
have_posts
()
)
:
$sticky_posts
->
the_post
();
?>
<?php
responsive_entry_before
();
?>
<div
id=
"post-
<?php
the_ID
();
?>
"
<?php
post_class
(
"fp-sticky-post"
);
?>
>
<?php
responsive_entry_top
();
?>
<?php
if
(
has_post_thumbnail
()
)
:
?>
<a
href=
"
<?php
the_permalink
();
?>
"
title=
"
<?php
the_title_attribute
();
?>
"
>
<?php
the_post_thumbnail
(
array
(
150
,
150
));
?>
</a>
<?php
endif
;
?>
<h4
class=
"entry-title post-title"
><a
href=
"
<?php
the_permalink
()
?>
"
rel=
"bookmark"
>
<?php
the_title
();
?>
</a></h4>
<?php
the_excerpt
();
?>
<?php
responsive_entry_bottom
();
?>
</div>
<?php
responsive_entry_after
();
?>
<?php
endwhile
;
get_template_part
(
'loop-nav'
,
get_post_type
()
);
else
:
get_template_part
(
'loop-no-posts'
,
get_post_type
()
);
endif
;
?>
</div>
<?php
responsive_entry_after
();
?>
<?php
endwhile
;
get_template_part
(
'loop-nav'
,
get_post_type
()
);
else
:
get_template_part
(
'loop-no-posts'
,
get_post_type
()
);
endif
;
?>
</div>
<?php
get_footer
();
?>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment