HEX
Server: Apache/2.4.65 (Debian)
System: Linux web6 5.10.0-36-amd64 #1 SMP Debian 5.10.244-1 (2025-09-29) x86_64
User: innocamp (1028)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/madison/public_html/wp-content/plugins/paperio-addons/shortcodes/paperio-button.php
<?php
/**
 * Shortcode For Button Style
 */
?>
<?php

/*-----------------------------------------------------------------------------------*/
/* Button Style */
/*-----------------------------------------------------------------------------------*/

if ( ! function_exists( 'paperio_button_shortcode' ) ) :
	function paperio_button_shortcode( $atts, $content = ''  ) {
			
			extract( shortcode_atts( array(
				'tz_button_style' => '',
				'tz_button_size' => '',
				'tz_button_text' => '',
				'tz_button_url'	=> '',
				'tz_button_link_target'	=> '',
				'tz_extra_class' => '',
				'tz_extra_id' => '',
				'tz_button_rel_nofollow' => '',
			), $atts ) );
	
			$output = '';
			
			$tz_button_style = ( $tz_button_style ) ? $tz_button_style : 'button-style1';
			$tz_button_size = ( $tz_button_size ) ? ' '.$tz_button_size : '';
			$tz_button_text = ( $tz_button_text ) ? $tz_button_text : '';
			$tz_button_url = ( $tz_button_url ) ? $tz_button_url : '#';
			$tz_button_link_target = ( $tz_button_link_target ) ? $tz_button_link_target : '_self';
			$tz_extra_class = ( $tz_extra_class ) ? ' '.$tz_extra_class : '';
			$tz_extra_id = ( $tz_extra_id ) ? ' id="' . $tz_extra_id .'"' : '';
			$tz_button_rel_nofollow = ( $tz_button_rel_nofollow ) ? ' rel="'.$tz_button_rel_nofollow.'"' : '';
			
			 // For Button Style
			switch ($tz_button_style) {
				case 'button-style1':
					if( $tz_button_text ) :
						$output .= '<a '.$tz_button_rel_nofollow.' href="'.$tz_button_url.'" target="'.$tz_button_link_target.'" class="btn btn-border text-uppercase'.$tz_button_size.$tz_extra_class.'"'.$tz_extra_id.'>'.$tz_button_text.'</a>';
					endif;
				break;
				case 'button-style2':
					if( $tz_button_text ) :
						$output .= '<a '.$tz_button_rel_nofollow.' href="'.$tz_button_url.'" target="'.$tz_button_link_target.'" class="btn btn-black text-uppercase'.$tz_button_size.$tz_extra_class.'"'.$tz_extra_id.'>'.$tz_button_text.'</a>';
					endif;
				break;
				case 'button-style3':
					if( $tz_button_text ) :
						$output .= '<a '.$tz_button_rel_nofollow.' href="'.$tz_button_url.'" target="'.$tz_button_link_target.'" class="btn btn-white text-uppercase'.$tz_button_size.$tz_extra_class.'"'.$tz_extra_id.'>'.$tz_button_text.'</a>';
					endif;
				break;
				case 'button-style4':
					if( $tz_button_text ) :
						$output .= '<a '.$tz_button_rel_nofollow.' href="'.$tz_button_url.'" target="'.$tz_button_link_target.'" class="btn btn-black text-uppercase'.$tz_button_size.$tz_extra_class.'"'.$tz_extra_id.'>'.$tz_button_text.'<i class="fas fa-arrow-right"></i></a>';
					endif;
				break;
				case 'button-style5':
					if( $tz_button_text ) :
						$output .= '<a '.$tz_button_rel_nofollow.' href="'.$tz_button_url.'" target="'.$tz_button_link_target.'" class="btn btn-border text-uppercase'.$tz_button_size.$tz_extra_class.'"'.$tz_extra_id.'>'.$tz_button_text.'<i class="fas fa-long-arrow-alt-right"></i></a>';
					endif;
				break;
				case 'button-style6':
					if( $tz_button_text ) :
						$output .= '<a '.$tz_button_rel_nofollow.' href="'.$tz_button_url.'" target="'.$tz_button_link_target.'" class="btn btn-black text-uppercase'.$tz_button_size.$tz_extra_class.'"'.$tz_extra_id.'>'.$tz_button_text.'<i class="fas fa-long-arrow-alt-right"></i></a>';
					endif;
				break;
				case 'button-style7':
					if( $tz_button_text ) :
						$output .= '<a '.$tz_button_rel_nofollow.' href="'.$tz_button_url.'" class="btn btn-dark-gray text-uppercase'.$tz_button_size.$tz_extra_class.'"'.$tz_extra_id.'>'.$tz_button_text.'<i class="fas fa-long-arrow-alt-right"></i></a>';
					endif;
				break;
				case 'button-style8':
					if( $tz_button_text ) :
						$output .= '<a '.$tz_button_rel_nofollow.' href="'.$tz_button_url.'" target="'.$tz_button_link_target.'" class="btn btn-border-white text-uppercase'.$tz_button_size.$tz_extra_class.'"'.$tz_extra_id.'>'.$tz_button_text.'</a>';
					endif;
				break;
				case 'button-style9':
					if( $tz_button_text ) :
						$output .= '<a '.$tz_button_rel_nofollow.' href="'.$tz_button_url.'" target="'.$tz_button_link_target.'" class="btn btn-white text-uppercase'.$tz_button_size.$tz_extra_class.'"'.$tz_extra_id.'>'.$tz_button_text.'<i class="fas fa-arrow-right"></i></a>';
					endif;
				break;
				case 'button-style10':
					if( $tz_button_text ) :
						$output .= '<a '.$tz_button_rel_nofollow.' href="'.$tz_button_url.'" target="'.$tz_button_link_target.'" class="btn btn-border-white text-uppercase'.$tz_button_size.$tz_extra_class.'"'.$tz_extra_id.'>'.$tz_button_text.'<i class="fas fa-long-arrow-alt-right"></i></a>';
					endif;
				break;
				case 'button-style11':
					if( $tz_button_text ) :
						$output .= '<a '.$tz_button_rel_nofollow.' href="'.$tz_button_url.'" target="'.$tz_button_link_target.'" class="btn btn-white text-uppercase'.$tz_button_size.$tz_extra_class.'"'.$tz_extra_id.'>'.$tz_button_text.'<i class="fas fa-long-arrow-alt-right"></i></a>';
					endif;
				break;
			}
		return $output;
	}
endif;

add_shortcode( 'paperio_button', 'paperio_button_shortcode' );