Lines Matching full:if
28 * default template if the custom version doesn't exist.
39 if (@is_readable(DOKU_INC . 'lib/tpl/' . $conf['template'] . '/' . $file))
58 if (!$tpl) $tpl = $conf['template'];
75 if (!$tpl) $tpl = $conf['template'];
90 * @return bool true if any output
133 * If you use this you most probably want to call tpl_content with
151 if (is_array($TOC)) {
152 // if a TOC was prepared in global scope, always use it
155 // get TOC from metadata, render if neccessary
159 … if (!$tocok || !is_array($toc) || !$conf['tocminheads'] || count($toc) < $conf['tocminheads']) {
165 if ($plugin = plugin_getRequestAdminPlugin()) {
173 if ($return) return $html;
193 if (!empty($class)) {
196 if (in_array($class, $pluginlist)) {
203 if ($plugin instanceof PluginInterface) {
204 if (!is_array($TOC)) $TOC = $plugin->getTOC(); //if TOC wasn't requested yet
205 if ($INFO['prependTOC']) tpl_toc();
252 if (actionOK('search')) {
262 if (actionOK('index')) {
270 if (actionOK('manifest')) {
281 if (!empty($replacements['__theme_color__'])) {
288 if ($alt) {
289 if (actionOK('rss')) {
297 if (($ACT == 'show' || $ACT == 'search') && $INFO['writable']) {
305 if (actionOK('rss') && $ACT == 'search') {
314 if (actionOK('export_xhtml')) {
323 if (actionOK('export_raw')) {
334 if (($ACT == 'show' || $ACT == 'export_xhtml') && !$REV) {
335 if ($INFO['exists']) {
337 if ((time() - $INFO['lastmod']) >= $conf['indexdelay'] && !isHiddenPage($ID)) {
343 if ($ID == $conf['start']) {
357 if ($ACT == 'show' || $ACT == 'export_xhtml') {
359 if (!empty($INFO['meta']['subject'])) {
373 if ($conf['useacl'] && $INPUT->server->str('REMOTE_USER')) {
422 if (empty($attr)) {
425 if ($nonce && $tag == 'script' && !empty($attr['_data'])) {
429 if (isset($attr['_data']) || $tag == 'script') {
442 * This function will add the nonce attribute if a nonce is available.
453 if ($nonce) {
459 if ($return) return $script;
471 * @param bool $return if true return the link html, otherwise print
472 * @return bool|string html of the link, or true if printed
479 if ($more) $out .= ' ' . $more;
481 if ($return) return $out;
501 if ($return) return $out;
510 * returns false if none is available
523 if ($parent == $id) {
527 if ($parent == $id) return false;
537 * @return bool|string html, or false if no data, true if printed
547 if ($data === false) {
559 if ($id === '#dokuwiki__top') {
565 if ($return) return $out;
577 * @param bool $return if true it returns html, otherwise prints
578 * @return bool|string html or false if no data, true if printed
589 if ($data === false) {
603 if (str_starts_with($id, '#')) {
609 if (strpos($caption, '%s')) {
614 if ($accesskey) {
628 if ($return) return $out;
647 if ($type == 'history') $type = 'revisions';
648 if ($type == 'subscription') $type = 'subscribe';
649 if ($type == 'img_backto') $type = 'imgBackto';
652 if (class_exists($class)) {
676 if ($evt->advise_before()) {
678 if ($unknown) {
707 if ($link) {
712 if ($out && $wrapper) $out = "<$wrapper>$out</$wrapper>";
714 if ($return) return $out;
722 * If the first parameter is given a div with the ID 'qsearch_out' will
725 * attribute autocomplete. If set to false this attribute will be set with an
742 // don't print the search form if search action has been disabled
743 if (!actionOK('search')) return false;
770 if ($ajax) {
795 //check if enabled
796 if (!$conf['breadcrumbs']) return false;
799 if (is_null($sep)) $sep = '•';
814 if ($i == $last) $out .= '<span class="curid">';
816 if ($i == $last) $out .= '</span>';
818 if ($return) return $out;
845 // check if enabled
846 if (!$conf['youarehere']) return false;
849 if (is_null($sep)) $sep = ' » ';
866 if ($page == $conf['start']) continue; // Skip startpage
873 if (isset($page)) {
875 if ($page == $part . $parts[$i]) {
876 if ($return) return $out;
882 if ($page == $conf['start']) {
883 if ($return) return $out;
889 if ($return) return $out;
895 * Print info if the user is logged in
910 if ($INPUT->server->str('REMOTE_USER')) {
932 // return if we are not allowed to view the page
933 if (!auth_quickaclcheck($ID)) {
939 if (!$conf['fullpath']) {
940 if ($INFO['rev']) {
951 if ($INFO['exists']) {
957 if ($INFO['editor']) {
963 if ($INFO['locked']) {
969 if ($ret) {
980 * Prints or returns the name of the given page (current one if none given).
982 * If useheading is enabled this will use the first headline else
995 if (is_null($id)) {
1001 if (useHeading('navigation')) {
1003 if ($first_heading) $name = $first_heading;
1013 if ($plugin = plugin_getRequestAdminPlugin()) {
1051 if ($ret) {
1062 * If $tags is an array all given tags are tried until a
1063 * value is found. If no value is found $alt is returned.
1072 * @param string $alt alternative output if no data was found
1073 * @param null|string $src the image src, uses global $SRC if not given
1083 if (is_null($src)) $src = $SRC;
1084 if (is_null($src)) return $alt;
1086 if (!isset($imgMeta)) {
1089 if ($imgMeta === false) return $alt;
1091 if (!$info) return $alt;
1117 if (!$label) $label = $tag['langkey'] . ':';
1120 if ($tag['type'] == 'date') {
1134 * - string langkey key to lookup in the $lang var, if not found printed as is
1143 if (file_exists($config_file)) {
1150 if (!empty($tag[0])) {
1153 if (isset($tag[3]) && is_array($tag[3])) {
1157 if ($value) {
1188 if ($maxwidth) $srcParams['w'] = $maxwidth;
1189 if ($maxheight) $srcParams['h'] = $maxheight;
1190 if ($maxwidth && $maxheight) $srcParams['fit'] = 1;
1196 if (is_null($params)) {
1201 if ($w) $p['width'] = $w;
1202 if ($h) $p['height'] = $h;
1204 if ($alt) {
1227 … if ($data['url']) echo '<a href="' . hsc($data['url']) . '" title="' . $lang['mediaview'] . '">';
1229 if ($data['url']) echo '</a>';
1261 * @param mixed $notset what to return if the setting is not available
1271 if (!$tpl_configloaded) {
1273 if ($tconf !== false) {
1275 if (isset($conf['tpl'][$tpl][$key])) continue;
1299 if (!file_exists($file)) return false;
1321 if (count($lang) === 0) {
1331 if (file_exists($config_file . $conf['template'] . '/en/lang.php')) {
1336 if ($conf['lang'] != 'en') {
1339 … if (file_exists($config_file . $conf['template'] . '/' . $conf['lang'] . '/lang.php')) {
1371 if (!file_exists($file)) {
1373 if (!file_exists($file)) {
1407 if (in_array($do, ['save', 'cancel'])) $do = '';
1409 if (!$do) {
1410 if ($INPUT->bool('edit')) {
1420 if (!$fromajax) echo '<div id="media__content">';
1423 if ($evt->advise_before()) {
1425 if ($do == 'filesinuse') {
1437 if (!$fromajax) echo '</div>';
1457 … if (!$opened_tab || !in_array($opened_tab, ['files', 'upload', 'search'])) $opened_tab = 'files';
1458 if ($INPUT->str('mediado') == 'update') $opened_tab = 'upload';
1469 if ($opened_tab === 'search' || $opened_tab === 'files') {
1475 if ($opened_tab == 'files') {
1507 if (!$image || (!file_exists(mediaFN($image)) && !$removed) || $DEL) return;
1508 if ($rev && !file_exists(mediaFN($image, $rev))) $rev = false;
1516 if ($mime == 'image/jpeg') {
1519 if ($conf['mediarevisions']) {
1523 if (!$opened_tab || !in_array($opened_tab, $tab_array)) $opened_tab = 'view';
1524 if ($INPUT->bool('edit')) $opened_tab = 'edit';
1525 if ($do == 'restore') $opened_tab = 'view';
1542 if ($opened_tab === 'view' && $rev) {
1552 if ($opened_tab == 'view') {
1612 if (!$conf['license']) return '';
1613 if (!is_array($license[$conf['license']])) return '';
1618 if ($wrap) $out .= '<div class="license">';
1619 if ($img) {
1621 if ($src) {
1624 if (!$imgonly) $out .= ' ';
1627 if (!$imgonly) {
1632 if ($wrap) $out .= '</div>';
1634 if ($return) return $out;
1648 * @param bool $useacl Include the page only if the ACLs check out?
1653 if ($propagate) {
1658 if (!$pageid) return false;
1665 if ($print) echo $html;
1690 if (ob_get_level() > 0) ob_flush();
1697 * If a given location starts with a colon it is assumed to be a media
1701 * @param bool $abs if to use absolute URL
1703 * @param bool $fallback use fallback image if target isn't found or return 'false' if potential
1716 if (str_starts_with($img, ':')) {
1724 if (file_exists($file)) break;
1728 if (!file_exists($file)) {
1730 if ($fallback) {
1732 // stop process if false result is required (if $fallback is false)
1738 // fetch image data if requested
1739 if (!is_null($imginfo)) {
1744 if ($ismedia) {
1748 if ($abs) $url = DOKU_URL . substr($url, strlen(DOKU_REL));
1757 * either from the conf directory if it exists, otherwise use
1776 if (empty($config_cascade['main'][$config_group])) continue;
1779 if (file_exists("$dir/$file")) {
1788 if (file_exists($file)) {
1840 if (isset($IMG)) $image = $IMG;
1841 if (isset($JUMPTO)) $image = $JUMPTO;
1842 if (isset($REV) && !$JUMPTO) $rev = $REV;
1912 if ($evt->advise_before()) {