Lines Matching full:if
27 * default template if the custom version doesn't exist.
38 if (@is_readable(DOKU_INC . 'lib/tpl/' . $conf['template'] . '/' . $file))
57 if (!$tpl) $tpl = $conf['template'];
74 if (!$tpl) $tpl = $conf['template'];
89 * @return bool true if any output
132 * If you use this you most probably want to call tpl_content with
150 if (is_array($TOC)) {
151 // if a TOC was prepared in global scope, always use it
154 // get TOC from metadata, render if neccessary
158 … if (!$tocok || !is_array($toc) || !$conf['tocminheads'] || count($toc) < $conf['tocminheads']) {
164 if ($plugin = plugin_getRequestAdminPlugin()) {
172 if ($return) return $html;
192 if (!empty($class)) {
195 if (in_array($class, $pluginlist)) {
202 if ($plugin instanceof PluginInterface) {
203 if (!is_array($TOC)) $TOC = $plugin->getTOC(); //if TOC wasn't requested yet
204 if ($INFO['prependTOC']) tpl_toc();
251 if (actionOK('search')) {
261 if (actionOK('index')) {
269 if (actionOK('manifest')) {
280 if (!empty($replacements['__theme_color__'])) {
287 if ($alt) {
288 if (actionOK('rss')) {
302 if (($ACT == 'show' || $ACT == 'search') && $INFO['writable']) {
310 if (actionOK('rss') && $ACT == 'search') {
319 if (actionOK('export_xhtml')) {
328 if (actionOK('export_raw')) {
339 if (($ACT == 'show' || $ACT == 'export_xhtml') && !$REV) {
340 if ($INFO['exists']) {
342 if ((time() - $INFO['lastmod']) >= $conf['indexdelay'] && !isHiddenPage($ID)) {
348 if ($ID == $conf['start']) {
362 if ($ACT == 'show' || $ACT == 'export_xhtml') {
364 if (!empty($INFO['meta']['subject'])) {
378 if ($conf['useacl'] && $INPUT->server->str('REMOTE_USER')) {
427 if (empty($attr)) {
430 if ($nonce && $tag == 'script' && !empty($attr['_data'])) {
434 if (isset($attr['_data']) || $tag == 'script') {
447 * This function will add the nonce attribute if a nonce is available.
458 if ($nonce) {
464 if ($return) return $script;
476 * @param bool $return if true return the link html, otherwise print
477 * @return bool|string html of the link, or true if printed
484 if ($more) $out .= ' ' . $more;
486 if ($return) return $out;
506 if ($return) return $out;
515 * returns false if none is available
528 if ($parent == $id) {
532 if ($parent == $id) return false;
542 * @return bool|string html, or false if no data, true if printed
552 if ($data === false) {
564 if ($id === '#dokuwiki__top') {
570 if ($return) return $out;
582 * @param bool $return if true it returns html, otherwise prints
583 * @return bool|string html or false if no data, true if printed
594 if ($data === false) {
608 if (strpos($id, '#') === 0) {
614 if (strpos($caption, '%s')) {
619 if ($accesskey) {
633 if ($return) return $out;
652 if ($type == 'history') $type = 'revisions';
653 if ($type == 'subscription') $type = 'subscribe';
654 if ($type == 'img_backto') $type = 'imgBackto';
657 if (class_exists($class)) {
681 if ($evt->advise_before()) {
683 if ($unknown) {
712 if ($link) {
717 if ($out && $wrapper) $out = "<$wrapper>$out</$wrapper>";
719 if ($return) return $out;
727 * If the first parameter is given a div with the ID 'qsearch_out' will
730 * attribute autocomplete. If set to false this attribute will be set with an
747 // don't print the search form if search action has been disabled
748 if (!actionOK('search')) return false;
775 if ($ajax) {
800 //check if enabled
801 if (!$conf['breadcrumbs']) return false;
804 if (is_null($sep)) $sep = '•';
819 if ($i == $last) $out .= '<span class="curid">';
821 if ($i == $last) $out .= '</span>';
823 if ($return) return $out;
850 // check if enabled
851 if (!$conf['youarehere']) return false;
854 if (is_null($sep)) $sep = ' » ';
871 if ($page == $conf['start']) continue; // Skip startpage
878 if (isset($page)) {
880 if ($page == $part . $parts[$i]) {
881 if ($return) return $out;
887 if ($page == $conf['start']) {
888 if ($return) return $out;
894 if ($return) return $out;
900 * Print info if the user is logged in
915 if ($INPUT->server->str('REMOTE_USER')) {
937 // return if we are not allowed to view the page
938 if (!auth_quickaclcheck($ID)) {
944 if (!$conf['fullpath']) {
945 if ($INFO['rev']) {
956 if ($INFO['exists']) {
962 if ($INFO['editor']) {
968 if ($INFO['locked']) {
974 if ($ret) {
985 * Prints or returns the name of the given page (current one if none given).
987 * If useheading is enabled this will use the first headline else
1000 if (is_null($id)) {
1006 if (useHeading('navigation')) {
1008 if ($first_heading) $name = $first_heading;
1018 if ($plugin = plugin_getRequestAdminPlugin()) {
1056 if ($ret) {
1067 * If $tags is an array all given tags are tried until a
1068 * value is found. If no value is found $alt is returned.
1077 * @param string $alt alternative output if no data was found
1078 * @param null|string $src the image src, uses global $SRC if not given
1088 if (is_null($src)) $src = $SRC;
1089 if (is_null($src)) return $alt;
1091 if (!isset($imgMeta)) {
1094 if ($imgMeta === false) return $alt;
1096 if (!$info) return $alt;
1122 if (!$label) $label = $tag['langkey'] . ':';
1125 if ($tag['type'] == 'date') {
1139 * - string langkey key to lookup in the $lang var, if not found printed as is
1148 if (file_exists($config_file)) {
1155 if (!empty($tag[0])) {
1158 if (isset($tag[3]) && is_array($tag[3])) {
1162 if ($value) {
1192 if ($w >= $h) {
1193 if ($maxwidth && $w >= $maxwidth) {
1203 if ($ratio) {
1214 if (is_null($params)) {
1219 if ($w) $p['width'] = $w;
1220 if ($h) $p['height'] = $h;
1222 if ($alt) {
1245 … if ($data['url']) echo '<a href="' . hsc($data['url']) . '" title="' . $lang['mediaview'] . '">';
1247 if ($data['url']) echo '</a>';
1279 * @param mixed $notset what to return if the setting is not available
1289 if (!$tpl_configloaded) {
1291 if ($tconf !== false) {
1293 if (isset($conf['tpl'][$tpl][$key])) continue;
1317 if (!file_exists($file)) return false;
1339 if (count($lang) === 0) {
1349 if (file_exists($config_file . $conf['template'] . '/en/lang.php')) {
1354 if ($conf['lang'] != 'en') {
1357 … if (file_exists($config_file . $conf['template'] . '/' . $conf['lang'] . '/lang.php')) {
1389 if (!file_exists($file)) {
1391 if (!file_exists($file)) {
1425 if (in_array($do, ['save', 'cancel'])) $do = '';
1427 if (!$do) {
1428 if ($INPUT->bool('edit')) {
1438 if (!$fromajax) echo '<div id="media__content">';
1441 if ($evt->advise_before()) {
1443 if ($do == 'filesinuse') {
1455 if (!$fromajax) echo '</div>';
1475 … if (!$opened_tab || !in_array($opened_tab, ['files', 'upload', 'search'])) $opened_tab = 'files';
1476 if ($INPUT->str('mediado') == 'update') $opened_tab = 'upload';
1487 if ($opened_tab === 'search' || $opened_tab === 'files') {
1493 if ($opened_tab == 'files') {
1525 if (!$image || (!file_exists(mediaFN($image)) && !$removed) || $DEL) return;
1526 if ($rev && !file_exists(mediaFN($image, $rev))) $rev = false;
1534 if ($mime == 'image/jpeg') {
1537 if ($conf['mediarevisions']) {
1541 if (!$opened_tab || !in_array($opened_tab, $tab_array)) $opened_tab = 'view';
1542 if ($INPUT->bool('edit')) $opened_tab = 'edit';
1543 if ($do == 'restore') $opened_tab = 'view';
1560 if ($opened_tab === 'view' && $rev) {
1570 if ($opened_tab == 'view') {
1630 if (!$conf['license']) return '';
1631 if (!is_array($license[$conf['license']])) return '';
1636 if ($wrap) $out .= '<div class="license">';
1637 if ($img) {
1639 if ($src) {
1642 if (!$imgonly) $out .= ' ';
1645 if (!$imgonly) {
1650 if ($wrap) $out .= '</div>';
1652 if ($return) return $out;
1666 * @param bool $useacl Include the page only if the ACLs check out?
1671 if ($propagate) {
1676 if (!$pageid) return false;
1683 if ($print) echo $html;
1708 if (ob_get_level() > 0) ob_flush();
1715 * If a given location starts with a colon it is assumed to be a media
1719 * @param bool $abs if to use absolute URL
1721 * @param bool $fallback use fallback image if target isn't found or return 'false' if potential
1734 if (str_starts_with($img, ':')) {
1742 if (file_exists($file)) break;
1746 if (!file_exists($file)) {
1748 if ($fallback) {
1750 // stop process if false result is required (if $fallback is false)
1756 // fetch image data if requested
1757 if (!is_null($imginfo)) {
1762 if ($ismedia) {
1766 if ($abs) $url = DOKU_URL . substr($url, strlen(DOKU_REL));
1775 * either from the conf directory if it exists, otherwise use
1794 if (empty($config_cascade['main'][$config_group])) continue;
1797 if (file_exists("$dir/$file")) {
1806 if (file_exists($file)) {
1858 if (isset($IMG)) $image = $IMG;
1859 if (isset($JUMPTO)) $image = $JUMPTO;
1860 if (isset($REV) && !$JUMPTO) $rev = $REV;
1930 if ($evt->advise_before()) {