Skip to content

Commit

Permalink
codestar framework done
Browse files Browse the repository at this point in the history
  • Loading branch information
ashrafbd1496 committed Aug 24, 2021
1 parent 803b814 commit aea028e
Show file tree
Hide file tree
Showing 13 changed files with 4,584 additions and 79 deletions.
Binary file added assets/images/90.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
156 changes: 90 additions & 66 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,80 +1,104 @@

<!-- s-extra
================================================== -->
<section class="s-extra">

<div class="row top">

<div class="col-eight md-six tab-full popular">
<h3><?php _e('Popular Posts','philosophy') ?></h3>
<h3><?php _e('Popular Posts', 'philosophy') ?></h3>

<div class="block-1-2 block-m-full popular__posts">
<?php
$philosophy_popular_post = new WP_Query(array(
'posts_per_page' =>6,
'ignore_sticky_posts' =>1,
'orderby' =>'comment_count',
));

while($philosophy_popular_post->have_posts()){
$philosophy_popular_post->the_post();
?>
<article class="col-block popular__post">
<a href="<?php the_permalink(); ?>" class="popular__thumb">
<?php the_post_thumbnail(); ?>
</a>
<h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
<section class="popular__meta">
<span class="popular__author"><span><?php _e('By','philosophy') ?></span> <a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>"><?php the_author(); ?></a></span>
<span class="popular__date"><span><?php _e('On','philosophy') ?></span> <time datetime="2017-12-19"><?php echo get_the_date(); ?></time></span>
</section>
</article>
<?php
}
wp_reset_query();
?>
<?php
$philosophy_popular_post = new WP_Query(array(
'posts_per_page' => 6,
'ignore_sticky_posts' => 1,
'orderby' => 'comment_count',
));

while ($philosophy_popular_post->have_posts()) {
$philosophy_popular_post->the_post();
?>
<article class="col-block popular__post">
<a href="<?php the_permalink(); ?>" class="popular__thumb">
<?php the_post_thumbnail(); ?>
</a>
<h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
<section class="popular__meta">
<span class="popular__author"><span><?php _e('By', 'philosophy') ?></span> <a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>"><?php the_author(); ?></a></span>
<span class="popular__date"><span><?php _e('On', 'philosophy') ?></span> <time datetime="2017-12-19"><?php echo get_the_date(); ?></time></span>
</section>
</article>
<?php
}
wp_reset_query();
?>
</div> <!-- end popular_posts -->
</div> <!-- end popular -->

<div class="col-four md-six tab-full about">
<?php

if ( is_active_sidebar( 'before-footer-right' ) ) {
dynamic_sidebar( 'before-footer-right' );
if (is_active_sidebar('before-footer-right')) {
dynamic_sidebar('before-footer-right');
}

?>
<ul class="about__social">
<?php
$options = get_option('philosophy_options');

$social_links = $options['social_link_group'];

if (is_array($social_links) || is_object($social_links)) {
foreach ($social_links as $social_icon_link) {
?>
<a href="<?php echo $social_icon_link['social_link']['url']; ?>"><i class="<?php echo $social_icon_link['social_link_icon']; ?>"></i></a>
<?php
}
}

?>
</ul> <!-- end header__social -->

</div> <!-- end about -->

</div> <!-- end row -->

<div class="row bottom tags-wrap">
<div class="col-full tags">
<?php
$philosophy_tags_heading = apply_filters('philosophy_tags_heading',__('Tags','philosophy'));
$philosophy_tags_items = apply_filters('philosophy_tags_items',get_tags());
?>
<?php
$philosophy_tags_heading = apply_filters('philosophy_tags_heading', __('Tags', 'philosophy'));
$philosophy_tags_items = apply_filters('philosophy_tags_items', get_tags());
?>

<h3><?php echo esc_html($philosophy_tags_heading); ?></h3>

<div class="tagcloud">
<?php
if(is_array($philosophy_tags_items)){
foreach($philosophy_tags_items as $pti){
printf('<a href="%s">%s</a>',get_term_link($pti->term_id),$pti->name);
}
}
?>
<!-- --><?php
// $tags = get_tags();
// foreach ( $tags as $tag ) :
// $tag_link = get_tag_link( $tag->term_id );
// ?>
<!-- <a href='--><?php //echo wp_kses_post($tag_link); ?><!--' title='--><?php //echo wp_kses_post($tag->name); ?><!--' class='--><?php //echo wp_kses_post($tag->slug); ?><!--'>--><?php //echo wp_kses_post($tag->name); ?><!--</a>-->
<!-- --><?php
// endforeach;
// ?>
<?php
if (is_array($philosophy_tags_items)) {
foreach ($philosophy_tags_items as $pti) {
printf('<a href="%s">%s</a>', get_term_link($pti->term_id), $pti->name);
}
}
?>
<!-- --><?php
// $tags = get_tags();
// foreach ( $tags as $tag ) :
// $tag_link = get_tag_link( $tag->term_id );
//
?>
<!-- <a href='--><?php //echo wp_kses_post($tag_link);
?>
<!--' title='--><?php //echo wp_kses_post($tag->name);
?>
<!--' class='--><?php //echo wp_kses_post($tag->slug);
?>
<!--'>--><?php //echo wp_kses_post($tag->name);
?>
<!--</a>-->
<!-- --><?php
// endforeach;
//
?>
</div> <!-- end tagcloud -->
</div> <!-- end tags -->
</div> <!-- end tags-wrap -->
Expand All @@ -91,49 +115,49 @@

<div class="col-two md-four mob-full s-footer__sitelinks">

<h4><?php _e('Quick Links','philosophy') ?></h4>
<h4><?php _e('Quick Links', 'philosophy') ?></h4>

<?php
$philosophy_menu = wp_nav_menu(array(
'theme_location' =>'footerleftmenu',
'menu_id' =>'footerleftmenu',
'menu_class' =>'s-footer__linklist',
'theme_location' => 'footerleftmenu',
'menu_id' => 'footerleftmenu',
'menu_class' => 's-footer__linklist',
));
?>
?>
</div> <!-- end s-footer__sitelinks -->

<div class="col-two md-four mob-full s-footer__archives">

<h4><?php _e('Archives','philosophy') ?></h4>
<h4><?php _e('Archives', 'philosophy') ?></h4>

<?php
$philosophy_menu = wp_nav_menu(array(
'theme_location' =>'footermiddletmenu',
'menu_id' =>'footermiddletmenu',
'menu_class' =>'s-footer__linklist',
'theme_location' => 'footermiddletmenu',
'menu_id' => 'footermiddletmenu',
'menu_class' => 's-footer__linklist',
));
?>

</div> <!-- end s-footer__archives -->

<div class="col-two md-four mob-full s-footer__social">

<h4><?php _e('Social','philosophy') ?></h4>
<h4><?php _e('Social', 'philosophy') ?></h4>

<?php
$philosophy_menu = wp_nav_menu(array(
'theme_location' =>'footerrightmenu',
'menu_id' =>'footerrightmenu',
'menu_class' =>'s-footer__linklist',
'theme_location' => 'footerrightmenu',
'menu_id' => 'footerrightmenu',
'menu_class' => 's-footer__linklist',
));
?>

</div> <!-- end s-footer__social -->

<div class="col-five md-full end s-footer__subscribe">
<?php
if ( is_active_sidebar( 'footer-right-mail' ) ) {
dynamic_sidebar( 'footer-right-mail' );
if (is_active_sidebar('footer-right-mail')) {
dynamic_sidebar('footer-right-mail');
}
?>
<div class="subscribe-form">
Expand All @@ -158,8 +182,8 @@
<div class="col-full">
<div class="s-footer__copyright">
<?php
if ( is_active_sidebar( 'footer-bottom-copyright' ) ) {
dynamic_sidebar( 'footer-bottom-copyright' );
if (is_active_sidebar('footer-bottom-copyright')) {
dynamic_sidebar('footer-bottom-copyright');
}
?>
</div>
Expand Down
5 changes: 5 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

require_once get_theme_file_path( '/inc/tgm.php');
require_once get_theme_file_path( '/inc/attachments.php');
require_once get_theme_file_path( '/inc/admin-options.php');
require_once get_theme_file_path( '/inc/nav-menu-options.php');
//require_once get_theme_file_path( '/inc/Philosophpy_options.php');
require_once get_theme_file_path( '/inc/cf-metabox.php');
//require_once get_theme_file_path( '/widgets/social-icons-widget2.php');

if ( ! isset( $content_width ) ) $content_width = 960;
Expand Down Expand Up @@ -36,6 +40,7 @@ function philosophy_after_setup(){
function philosophy_assets(){
//stylesheets
wp_enqueue_style( 'fontaweseom-css',get_theme_file_uri('/assets/css/font-awesome/css/font-awesome.css'),null,VERSION);
wp_enqueue_style( 'fa5', 'https://use.fontawesome.com/releases/v5.13.0/css/all.css', array(), '5.13.0', 'all' );
wp_enqueue_style( 'fonts-css',get_theme_file_uri('/assets/css/fonts.css'),null,1.0);
wp_enqueue_style( 'base-css',get_theme_file_uri('/assets/css/base.css'),null,1.0);
wp_enqueue_style( 'vendor-css',get_theme_file_uri('/assets/css/vendor.css'),null,1.0);
Expand Down
49 changes: 36 additions & 13 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,44 @@
<div class="header__content row">

<div class="header__logo">
<a class="logo" href="<?php home_url('/'); ?>">
<?php
if(has_custom_logo()){
the_custom_logo();
}else{
echo "<h1><a href='".home_url("/")."'>". get_bloginfo('name')."</a></h1>";
}
?>
</a>
<?php
$options = get_option('philosophy_options');

$logo = $options['logo'];
?>
<img src="<?php echo $logo['url']; ?>" alt="Philosophy">

</div> <!-- end header__logo -->
<?php
if ( is_active_sidebar( 'header-social' ) ) {
dynamic_sidebar( 'header-social' );
}

<!--Start header Social -->

<?php



?>
<ul class="header__social">

<?php
$options = get_option('philosophy_options');

$social_links = $options['social_link_group'];

if (is_array($social_links) || is_object($social_links))
{
foreach ($social_links as $social_icon_link)

{
?>
<li><a href="<?php echo $social_icon_link['social_link']['url']; ?>"><i class="<?php echo $social_icon_link['social_link_icon']; ?>"></i></a></li>
<?php
}
}

?>


</ul>
<!-- end header__social -->

<a class="header__search-trigger" href="#0"></a>
Expand Down
Loading

0 comments on commit aea028e

Please sign in to comment.