Server IP : 213.176.29.180 / Your IP : 3.145.71.243 Web Server : Apache System : Linux 213.176.29.180.hostiran.name 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64 User : webtaragh ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/webtaragh/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
public_html/whmcs/templates_c/fab82d5d39b769d386e0d796870d6e907b4142a6_0.file.announcements.tpl.php 0000644 00000014100 14736120127 0030154 0 ustar 00 home/webtaragh <?php /* Smarty version 3.1.36, created on 2024-10-24 10:53:40 from '/home/webtaragh/public_html/mamad/templates/twenty-one/announcements.tpl' */ /* @var Smarty_Internal_Template $_smarty_tpl */ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( 'version' => '3.1.36', 'unifunc' => 'content_671a273454bad3_18063974', 'has_nocache_code' => false, 'file_dependency' => array ( 'fab82d5d39b769d386e0d796870d6e907b4142a6' => array ( 0 => '/home/webtaragh/public_html/mamad/templates/twenty-one/announcements.tpl', 1 => 1695537416, 2 => 'file', ), ), 'includes' => array ( ), ),false)) { function content_671a273454bad3_18063974 (Smarty_Internal_Template $_smarty_tpl) { ?><div class="card"> <div class="card-body"> <h3 class="card-title"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>"announcementstitle"),$_smarty_tpl ) );?> </h3> <div class="announcements"> <?php $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['announcements']->value, 'announcement'); $_smarty_tpl->tpl_vars['announcement']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['announcement']->value) { $_smarty_tpl->tpl_vars['announcement']->do_else = false; ?> <div class="announcement"> <h1> <a href="<?php echo routePath('announcement-view',$_smarty_tpl->tpl_vars['announcement']->value['id'],$_smarty_tpl->tpl_vars['announcement']->value['urlfriendlytitle']);?> "> <?php echo $_smarty_tpl->tpl_vars['announcement']->value['title'];?> </a> <?php if ($_smarty_tpl->tpl_vars['announcement']->value['editLink']) {?> <a href="<?php echo $_smarty_tpl->tpl_vars['announcement']->value['editLink'];?> " class="btn btn-default btn-sm show-on-hover"> <i class="fas fa-pencil-alt fa-fw"></i> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'edit'),$_smarty_tpl ) );?> </a> <?php }?> </h1> <ul class="list-inline"> <li class="list-inline-item text-muted pr-3"> <i class="far fa-calendar-alt fa-fw"></i> <?php echo $_smarty_tpl->tpl_vars['carbon']->value->createFromTimestamp($_smarty_tpl->tpl_vars['announcement']->value['timestamp'])->format('jS F Y');?> </li> </ul> <article> <?php if (strlen(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['announcement']->value['text'])) < 350) {?> <?php echo $_smarty_tpl->tpl_vars['announcement']->value['text'];?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['announcement']->value['summary'];?> <?php }?> </article> <a href="<?php echo routePath('announcement-view',$_smarty_tpl->tpl_vars['announcement']->value['id'],$_smarty_tpl->tpl_vars['announcement']->value['urlfriendlytitle']);?> " class="btn btn-default btn-sm"> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>"announcementscontinue"),$_smarty_tpl ) );?> <i class="far fa-arrow-right"></i> </a> </div> <?php } if ($_smarty_tpl->tpl_vars['announcement']->do_else) { ?> <?php ob_start(); echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'noannouncements'),$_smarty_tpl ) ); $_prefixVariable1=ob_get_clean(); $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"info",'msg'=>$_prefixVariable1,'textcenter'=>true), 0, true); ?> <?php } $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> </div> </div> </div> <?php if ($_smarty_tpl->tpl_vars['prevpage']->value || $_smarty_tpl->tpl_vars['nextpage']->value) {?> <nav aria-label="Announcements navigation"> <ul class="pagination"> <?php $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['pagination']->value, 'item'); $_smarty_tpl->tpl_vars['item']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) { $_smarty_tpl->tpl_vars['item']->do_else = false; ?> <li class="page-item<?php if ($_smarty_tpl->tpl_vars['item']->value['disabled']) {?> disabled<?php } if ($_smarty_tpl->tpl_vars['item']->value['active']) {?> active<?php }?>"> <a class="page-link" href="<?php echo $_smarty_tpl->tpl_vars['item']->value['link'];?> "><?php echo $_smarty_tpl->tpl_vars['item']->value['text'];?> </a> </li> <?php } $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> </ul> </nav> <?php }?> <?php if ($_smarty_tpl->tpl_vars['announcementsFbRecommend']->value) {?> <?php echo '<script'; ?> > (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) { return; } js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'locale'),$_smarty_tpl ) );?> /all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); <?php echo '</script'; ?> > <?php } } }