-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,317 changed files
with
139,850 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/* | ||
********************************************************************** | ||
* ------------------------------------------------------------------- | ||
* Project Name : AbdalNewsTheme | ||
* File Name : 404.php | ||
* Author : Ebrahim Shafiei (EbraSha) | ||
* Email : Prof.Shafiei@Gmail.com | ||
* Created On : 2024-08-03 5:23 PM | ||
* Description : [A brief description of what this file does] | ||
* ------------------------------------------------------------------- | ||
* | ||
* "Coding is an engaging and beloved hobby for me. I passionately and insatiably pursue knowledge in cybersecurity and programming." | ||
* – Ebrahim Shafiei | ||
* | ||
********************************************************************** | ||
*/ | ||
?> | ||
|
||
<?php get_header(); ?> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-12 text-center"> | ||
<h1>404</h1> | ||
<p>Sorry, the page you are looking for could not be found.</p> | ||
<a class="btn btn-primary" href="<?php echo home_url(); ?>">Go to Homepage</a> | ||
</div> | ||
</div> | ||
</div> | ||
<?php get_footer(); ?> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
/* | ||
********************************************************************** | ||
* ------------------------------------------------------------------- | ||
* Project Name : AbdalNewsTheme | ||
* File Name : archive.php | ||
* Author : Ebrahim Shafiei (EbraSha) | ||
* Email : Prof.Shafiei@Gmail.com | ||
* Created On : 2024-08-03 5:27 PM | ||
* Description : [A brief description of what this file does] | ||
* ------------------------------------------------------------------- | ||
* | ||
* "Coding is an engaging and beloved hobby for me. I passionately and insatiably pursue knowledge in cybersecurity and programming." | ||
* – Ebrahim Shafiei | ||
* | ||
********************************************************************** | ||
*/ | ||
?> | ||
|
||
<?php get_header(); ?> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-8"> | ||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | ||
<div class="post"> | ||
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> | ||
<div class="meta"> | ||
<span>Posted on <?php the_date(); ?> by <?php the_author(); ?></span> | ||
</div> | ||
<div class="excerpt"> | ||
<?php the_excerpt(); ?> | ||
</div> | ||
</div> | ||
<?php endwhile; endif; ?> | ||
</div> | ||
<div class="col-md-4"> | ||
<?php get_sidebar(); ?> | ||
</div> | ||
</div> | ||
</div> | ||
<?php get_footer(); ?> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?php | ||
/* | ||
********************************************************************** | ||
* ------------------------------------------------------------------- | ||
* Project Name : AbdalNewsTheme | ||
* File Name : class-bootstrap-navwalker.php | ||
* Author : Ebrahim Shafiei (EbraSha) | ||
* Email : Prof.Shafiei@Gmail.com | ||
* Created On : 2024-08-03 5:29 PM | ||
* Description : [A brief description of what this file does] | ||
* ------------------------------------------------------------------- | ||
* | ||
* "Coding is an engaging and beloved hobby for me. I passionately and insatiably pursue knowledge in cybersecurity and programming." | ||
* – Ebrahim Shafiei | ||
* | ||
********************************************************************** | ||
*/ | ||
?> | ||
|
||
|
||
<?php | ||
class Bootstrap_NavWalker extends Walker_Nav_Menu { | ||
// Start level. | ||
public function start_lvl( &$output, $depth = 0, $args = null ) { | ||
$indent = str_repeat( "\t", $depth ); | ||
$output .= "\n$indent<ul class=\"dropdown-menu\">\n"; | ||
} | ||
|
||
// Start element. | ||
public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) { | ||
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; | ||
$classes = empty( $item->classes ) ? array() : (array) $item->classes; | ||
$classes[] = 'nav-item'; | ||
if ( in_array( 'menu-item-has-children', $classes ) ) { | ||
$classes[] = 'dropdown'; | ||
} | ||
if ( in_array( 'current-menu-item', $classes ) ) { | ||
$classes[] = 'active'; | ||
} | ||
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args, $depth ) ); | ||
$class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : ''; | ||
$id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args, $depth ); | ||
$id = $id ? ' id="' . esc_attr( $id ) . '"' : ''; | ||
$output .= $indent . '<li' . $id . $class_names .'>'; | ||
$atts = array(); | ||
$atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : ''; | ||
$atts['target'] = ! empty( $item->target ) ? $item->target : ''; | ||
$atts['rel'] = ! empty( $item->xfn ) ? $item->xfn : ''; | ||
$atts['href'] = ! empty( $item->url ) ? $item->url : ''; | ||
if ( in_array( 'menu-item-has-children', $classes ) ) { | ||
$atts['class'] = 'nav-link dropdown-toggle'; | ||
$atts['data-bs-toggle'] = 'dropdown'; | ||
$atts['aria-haspopup'] = 'true'; | ||
$atts['aria-expanded'] = 'false'; | ||
} else { | ||
$atts['class'] = 'nav-link'; | ||
} | ||
$atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args, $depth ); | ||
$attributes = ''; | ||
foreach ( $atts as $attr => $value ) { | ||
if ( ! empty( $value ) ) { | ||
$value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value ); | ||
$attributes .= ' ' . $attr . '="' . $value . '"'; | ||
} | ||
} | ||
$title = apply_filters( 'the_title', $item->title, $item->ID ); | ||
$title = apply_filters( 'nav_menu_item_title', $title, $item, $args, $depth ); | ||
$item_output = $args->before; | ||
$item_output .= '<a'. $attributes .'>'; | ||
$item_output .= $args->link_before . $title . $args->link_after; | ||
$item_output .= '</a>'; | ||
$item_output .= $args->after; | ||
$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args ); | ||
} | ||
|
||
// End element. | ||
public function end_el( &$output, $item, $depth = 0, $args = null ) { | ||
$output .= "</li>\n"; | ||
} | ||
|
||
// End level. | ||
public function end_lvl( &$output, $depth = 0, $args = null ) { | ||
$indent = str_repeat( "\t", $depth ); | ||
$output .= "$indent</ul>\n"; | ||
} | ||
} | ||
?> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"nesbot/carbon": "^3.7" | ||
} | ||
} |
Oops, something went wrong.