public static function _content_make_links_sticky($element_id, $element_type = 'post', $string_translation = true) { if (strpos($element_type, 'post') === 0) { // only need to do it if sticky links is not enabled. // create the object require_once ICL_PLUGIN_PATH . '/inc/absolute-links/absolute-links.class.php'; $icl_abs_links = new AbsoluteLinks(); $icl_abs_links->process_post($element_id); } elseif ($element_type == 'string') { require_once ICL_PLUGIN_PATH . '/inc/absolute-links/absolute-links.class.php'; $icl_abs_links = new AbsoluteLinks(); // call just for strings $icl_abs_links->process_string($element_id, $string_translation); } }
public static function _content_make_links_sticky($element_id, $element_type = 'post', $string_translation = true) { require_once ICL_PLUGIN_PATH . '/inc/absolute-links/absolute-links.class.php'; $icl_abs_links = new AbsoluteLinks(); if (strpos($element_type, 'post') === 0) { $icl_abs_links->process_post($element_id); } elseif ($element_type == 'string') { $icl_abs_links->process_string($element_id, $string_translation); } }