Me gustaria que me alguien me pudiera ayudar...Como lo dije solo quiero que un icono que este mostrando en mi pagina principal lo pueda dirigir a otro lugar... de antemano gracias!!! dejo el codigo el cual el soporte me dijo que buscara yo mismo la solucion... y que la solucion estaba en la funcion mpc_icon_columns
Código PHP:
<?php
/*-----------------------------------------------------------------------------------*/
/* Shortcodes PHP:
/*
/*
/*
/*-----------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------*/
/* X. Headig
/*-----------------------------------------------------------------------------------*/
function mpc_heading_shortcode($atts, $content = null ) {
extract(shortcode_atts(array(
'heading' => '',
'subheading' => '',
'align' => 'center'
), $atts));
$return = '<h2 class="mpc-home-header '.$align.'">'.$heading.'</h2><h4 class="mpc-home-header '.$align.'">'.$subheading.'</h4>';
$return = parse_shortcode_content($return);
return $return;
}
add_shortcode('mpc_heading', 'mpc_heading_shortcode');
/*-----------------------------------------------------------------------------------*/
/* X. Drop Caps
/*-----------------------------------------------------------------------------------*/
function mpc_gentle_dropcaps($atts, $content = null ) {
extract(shortcode_atts(array(
'background' => '',
'color' => '',
'size' => 'normal'
), $atts));
$return = '<span class="mpc-dropcaps dropcasps-size-'.$size.'" style="background: '.$background.'; color: '.$color.';">'.$content.'</span>';
$return = parse_shortcode_content($return);
return $return;
}
add_shortcode('mpc_dropcaps', 'mpc_gentle_dropcaps');
/*-----------------------------------------------------------------------------------*/
/* X. Column Icons
/*-----------------------------------------------------------------------------------*/
function mpc_icon_columns($atts, $content) {
$GLOBALS['column_icon_count'] = 0;
$GLOBALS['column_icon'] = '';
do_shortcode($content);
if(is_array($GLOBALS['column_icon'])) {
$i = 1; $j = 1;
foreach( $GLOBALS['column_icon'] as $column_icon ) {
if($column_icon['icon'] == "ingreso" || $column_icon['icon'] == "upn"
|| $column_icon['icon'] == "renovacion" || $column_icon['icon'] == "responsive") {
$icon = MPC_THEME_ROOT.'/images/ui/icons/'.$column_icon['icon'].'.png';
} else {
$icon = $column_icon['icon'];
}
$column_icons[] = '<div class="mpc-icon-column"><span class="mpc-icon"><img src="'.$icon.'" alt="'.$icon.'"></span><h4>'.$column_icon['heading'].'</h4><span class="mpc-column-text">'.$column_icon['content'].'</span><div class="gentle-deco-line"></div></div>';
}
$return = '<div class="mpc-icon-columns icon-columns-'.$GLOBALS['column_icon_count'].'">'.implode( "\n", $column_icons ).'</div>';
}
$return = parse_shortcode_content($return);
return $return;
}
add_shortcode('mpc_icon_columns', 'mpc_icon_columns');
function mpc_icon_column($atts, $content) {
extract(shortcode_atts(array
(
'icon' => '',
'heading' => ''
), $atts));
$x = $GLOBALS['column_icon_count'];
$GLOBALS['column_icon'][$x] = array('icon' => sprintf($icon, $GLOBALS['column_icon_count']), 'heading' => sprintf($heading, $GLOBALS['column_icon_count']), 'content' => $content );
$GLOBALS['column_icon_count']++;
}
add_shortcode('mpc_icon_column', 'mpc_icon_column');