function readmorecontent($content, $len = 100) { //assuming $content is not changed to smily already ! $llen = strlen($content) > $len ? $len - 10 : $len; $fhalf = Fun::smilymsg(substr($content, 0, $llen)); opent("span"); ocloset("span", $fhalf); if (strlen($content) > $len) { ocloset("a", " Read more", array("onclick" => "a.readmore(this);")); $shalf = Fun::smilymsg(substr($content, $llen)); ocloset("span", $shalf, array("style" => "display:none;")); } closet("span"); }
">About Us</a></li> <li class="<?php pit('active', g("curpage") === 'contactus'); ?> "><a href="<?php echo BASE . "contactus"; ?> ">Contact Us</a></li> <?php if (User::islogin()) { ?> <li> <a class="dropdown-button" href="#" data-beloworigin="true" data-activates="dropdownaccount"> <?php echo Fun::smilymsg(fixedlen(getval("name", g("myf"), "My Profile"))); ?> <i class="material-icons right">arrow_drop_down</i> </a> </li> <?php } else { ?> <li class="<?php pit('active', g("curpage") === 'login'); ?> "><a href="<?php echo BASE . "login"; ?> ">Login</a></li> <li class="<?php