Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- bangla Current Time Day Date Year-->
- <?php
- date_default_timezone_set('Asia/Dhaka');
- $currentDate = date("l, F j, Y , h:i a");
- $engDATE = array(1,2,3,4,5,6,7,8,9,0,January,February,March,April,May,June,July,August,September,October,November,December,Saturday,Sunday,Monday,Tuesday,Wednesday,Thursday,Friday);
- $bangDATE = array('১','২','৩','৪','৫','৬','৭','৮','৯','০','জানুয়ারী','ফেব্রুয়ারী','মার্চ','এপ্রিল','মে','জুন','জুলাই','আগস্ট','সেপ্টেম্বর','অক্টোবর','নভেম্বর','ডিসেম্বর','শনিবার','রবিবার','সোমবার','মঙ্গলবার','বুধবার','বৃহস্পতিবার','শুক্রবার');
- $convertedDATE = str_replace($engDATE, $bangDATE, $currentDate);
- echo "$convertedDATE";
- ?>
- <!-- 'article-meta-comments' is the class of static html\s comment-->
- <?php
- if(comments_open() && !post_password_required()) {
- comments_popup_link('0', '1', '%', 'article-meta-comments');
- }
- ?>
- <?php the_author_posts_link(); ?>
- <!--to display author biograpy from wordpress backend-->
- <?php the_author_meta('description'); ?>
- <?php the_category(' / '); ?>
- <?php if(has_post_thumbnail()) : ?>
- <?php the_post_thumbnail('blog_img', array('class' => 'imgthumb')); ?> <!-- you should not use it within src= "".-->
- <?php endif; ?>
- <!-- To update blog post date and time as per your wordpress general setup-->
- <?php if (get_the_modified_time() != get_the_time()) : ?>
- <?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?>, Last Updated: <?php the_modified_time('F j, Y'); ?> at <?php the_modified_time('g:i a'); ?>
- <?php else: ?>
- <?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?>
- <?php endif; ?>
- <!-- To update copyright year-->
- <?php the_date('Y'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement