<?php
# last code update datetime : datetime.datetime.utcnow().isoformat() == '2023-01-17T14:55:11.323000'
# display_date_and_expiration_date_code_start
function _show_content_based_on_display_date_and_expiration_date($default_return_value = true) {
    $default_display_date = '2023-07-17T00:00:00+00:00';
    $default_expiration_date = '';
    $php_filename = '.php';

    $pages_links = "data/pages_links.json";
    if (!file_exists($pages_links)) {
        return $default_return_value;
    }


    $pages_links_data = json_decode(file_get_contents($pages_links), true);
    if (!is_array($pages_links_data)) {
        return $default_return_value;
    }


    $current_php_filename_data = null;
    foreach ($pages_links_data as $page_link_data) {
        if ($page_link_data['link_url'] != $php_filename) {
            continue;
        }

        $current_php_filename_data = $page_link_data;
        break;
    }

    if (is_null($current_php_filename_data)) {
        return $default_return_value;
    }

    $_date_iso = gmdate(DATE_ATOM);


    if (isset($current_php_filename_data['display_date']) && $current_php_filename_data['display_date'] > $_date_iso) {
//        echo $current_php_filename_data['link_title'] . ' : display_date: ' . $current_php_filename_data['display_date'] . ' > ' . $_date_iso . PHP_EOL;

        return false;
    }
    if (isset($current_php_filename_data['expiration_date']) && $current_php_filename_data['expiration_date'] < $_date_iso) {
//        echo $current_php_filename_data['link_title'] . ' : expiration_date: ' . $current_php_filename_data['expiration_date'] . ' < ' . $_date_iso . PHP_EOL;

        return false;
    }

    return true;
}

ob_start();
if (!_show_content_based_on_display_date_and_expiration_date(true)) {
    ob_clean();
    http_response_code(404);
    echo 'page not found';
    exit();
}
ob_clean();

# display_date_and_expiration_date_code_end
?><!DOCTYPE html>
<html >
<head>
  
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <title></title>

<meta name="description" content=""/>

<meta name="keywords" content=""/>


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
</head>
<body>
<div id="container">
  <div id="header">
    <h1 style="text-align: center;">NOOR TAKAFUL</h1>
  </div>
  <div id="sideheader"></div>
  <div id="left_column">
    <div class="left_column_boxes">
      <h4>Posts</h4>
      <div id="navcontainer">
        <ul id="navlist"> 
             <div class="links toggled" style="height: 100px;"> 
								<?php

    $pages_links = "templates/pages_links.php";


    $index = FALSE;


    if (file_exists($pages_links)) {


        include $pages_links;

    }

?>
							 
							
							</div>
								 <a  class="show-more-links" style="cursor: pointer;">Show more  </a>
						 
						 <script type="text/javascript">
            $(document).ready(function () {
                $('.show-more-links').click(function () {

                    if ($(".links").hasClass("toggled")) {
                        $(".links").animate({"height": "100%"}).removeClass("toggled");
                    } else {
                        $(".links").animate({"height": "100px"}).addClass("toggled");
                    }


                });


            });
        </script>
        
        <style>
            .links a {
                display: block;
            }
            .links{
                height:auto;
                overflow: hidden;
                width: 100%;
                background-color: #e0e0e0;
            }
        </style>
           
          </li>
        </ul>
      </div>
    </div>
     <div class="left_column_boxes">
      <h4>Menu</h4>
      <dl>
        <dt class="news"><a href="http://noor-takaful.com/index.php" title="">Home</a></dt>
        
        <dt class="news"> <a href="" title=""> Blog</a></dt>
        <dt class="news">News</dt>
        
        <dt class="news"> <a href="http://noor-takaful.com/contact.php" title="">Contact Us</a></dt>
        
      </dl>
    </div>
  </div>
  <div id="content">
        <h2></h2>

		<p><p>On may 12, 2023, the Minneapolis Target Center <a href='https://www.ticketsminneapolis.org' >Ticketsminneapolis</a> will be of a highly anticipated match-up between the minnesota timberwolves and the portland trail blazers. With both teams coming off of successful seasons, this game is sure to be a nail-biter. Timberwolves star center karl-anthony towns will look to lead his squad to a victory against the trail blazers' damian lillard, who is one of the best point guards in the league. With the arena packed and the stakes high, this is sure to be an exciting game that no fan will want to miss. </p></p>




  </div>
  <div style="clear: both;">
    
  </div>
  <div id="content">
      
	            <?php

        $current_filename = "";


    if (file_exists('twitter_video.php')) {

        include 'twitter_video.php';

    }

?>
  </div>
  </div>
  <div id="footer">
    <p>© CopyRight  NOOR-TAKAFUL.COM 2018</p>

  </div>
</body>
</html>
