header('location: ' . html_entity_decode($top->permalink()) . '#' . $section->getVar('nameid')); die; } if (!$res->getVar('approved')) { redirect_header(RDURL, 0, __('This content is not available!', 'docs')); die; } // Comprobamos permisos if (!$res->isAllowed($xoopsUser ? $xoopsUser->groups() : XOOPS_GROUP_ANONYMOUS)) { redirect_header(RDURL, 0, __('You are not allowed to read this content!', 'docs')); die; } // Select correct operation $action = rmc_server_var($_GET, 'action', ''); switch ($action) { case 'printbook': rd_section_forprint(1); die; case 'printsection': rd_section_forprint(0); die; case 'pdfbook': rd_section_forpdf(1); break; case 'pdfsection': rd_section_forpdf(0); break; default: showSection($res, $section); break; }
echo $vid_embed; ?> </span> </a> </div> </div> <?php } /* </content-video> */ ?> </section> <?php /* </content-head> */ /* print_r( get_post_meta(get_the_ID())); */ ?> <?php if (showSection('gallery')) { ?> <section class="content-gallery<?php hasBackground('gallery'); ?> " style="background-image:url(<?php echoMeta('background', 'gallery'); ?> )"> <div class="inner-content wrap"> <header class="section-header"> <h2 class="section-title"><?php echoMeta('title', 'gallery'); ?> </h2> </header>
} else { redirect_header($url_ret, 0, __('Sections updated successfully!', 'docs')); } } $action = rmc_server_var($_POST, 'action', isset($action) ? $action : ''); switch ($action) { case 'new': formSection(); break; case 'edit': formSection(1); break; case 'save': saveSection(); break; case 'saveedit': saveSection(1, 0); break; case 'saveret': saveSection(0, 1); break; case 'saveretedit': saveSection(1, 1); break; case 'changeorder': changeOrderSections(); break; default: showSection(); break; }
<h2 class="section-title"><?php echoMeta('title', '4'); ?> </h2> </header> <?php echo apply_filters('the_content', getMeta('content', '4')); ?> </div> </section> <?php } /* </content-four> */ ?> <?php if (showSection('5')) { ?> <section class="content-five<?php echo getMeta('parallax', '5') ? ' PARALLAX bg-parallax' : ' bg-repeat'; ?> " style="background-image:url(<?php echoMeta('background', '5'); ?> )"> <div class="inner-content wrap"> <header class="section-header"> <h2 class="section-title"><?php echoMeta('title', '5'); ?> </h2> </header>