403Webshell
Server IP : 77.68.64.21  /  Your IP : 216.73.217.105
Web Server : Apache
System : Linux hp3-wp-1011378.hostingp3.local 3.10.0-1160.144.1.el7.tuxcare.els9.x86_64 #1 SMP Fri Jul 10 17:06:31 UTC 2026 x86_64
User : csh2668128 ( 2112425)
PHP Version : 8.1.34
Disable Function : shell_exec,exec,system,popen,set_time_limit
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/cwd/wp-content/themes/holsworthyschool/template-parts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/themes/holsworthyschool/template-parts/calltoaction.php
<?php
/**
 * The template part for displaying single posts
 *
 */
?>
<?php $pageId = get_post_meta($post->ID,'page_cta_link_1', true); ?>
<?php if ($pageId>0){ ?>

	<div class='container'>
		<div class='row cta-boxes-wrapper'>
<?php } ?>


			<?php
			function produceCTABox($pageIdOrUrl, $ctaOffset){
					$pageTitle = get_the_title($pageIdOrUrl);
					$pageLink = get_permalink($pageIdOrUrl);
					$imageData = wp_get_attachment_image_src( get_post_thumbnail_id($pageIdOrUrl) , 'large' );
					$curPageId = get_the_ID();
					$description = apply_filters('the_content', get_post_meta($curPageId,'page_cta_link_'.$ctaOffset.'_desc', true));
					$icon = wp_get_attachment_image_src( get_post_meta($curPageId,'page_cta_link_'.$ctaOffset.'_icon', true), "medium");

					print "<div class='col-md-4 col-sm-6 col-xs-12'>";
							print "<div class='cta-btn btn btn-fullwidth'>";
							if (is_array($icon)){
								print "<a class='cta-link' href='".$pageLink."'><img class='cta-btn-icon' src='".$icon[0]."' /></a>";
							}
							print "<div class='cta-btn-text'><a class='cta-link' href='".$pageLink."'>".$pageTitle."</a></div>";
							print "<div class='cta-btn-desc'><a class='cta-link' href='".$pageLink."'>".$description."</a></div>";
					print "</div>";
					print "</div>";

			}
			?>

			<?php $pageId = get_post_meta($post->ID,'page_cta_link_1', true); ?>
			<?php if ($pageId>0){ ?>
				<?php print produceCTABox($pageId, 1); ?>
			<?php } ?>

			<?php $pageId = get_post_meta($post->ID,'page_cta_link_2', true); ?>
			<?php if ($pageId>0){ ?>
				<?php print produceCTABox($pageId,2); ?>
			<?php } ?>

			<?php $pageId = get_post_meta($post->ID,'page_cta_link_3', true); ?>
			<?php if ($pageId>0){ ?>
				<?php print produceCTABox($pageId, 3); ?>
			<?php } ?>

			<?php $pageId = get_post_meta($post->ID,'page_cta_link_4', true); ?>
			<?php if ($pageId>0){ ?>
				<?php print produceCTABox($pageId,4); ?>
			<?php } ?>

			<?php $pageId = get_post_meta($post->ID,'page_cta_link_5', true); ?>
			<?php if ($pageId>0){ ?>
				<?php print produceCTABox($pageId,5); ?>
			<?php } ?>

			<?php $pageId = get_post_meta($post->ID,'page_cta_link_6', true); ?>
			<?php if ($pageId>0){ ?>
				<?php print produceCTABox($pageId,6); ?>
			<?php } ?>

<?php $pageId = get_post_meta($post->ID,'page_cta_link_1', true); ?>
<?php if ($pageId>0){ ?>
			</div>
		</div>
<?php } ?>

Youez - 2016 - github.com/yon3zu
LinuXploit