wordpress/wp-content/themes/basic/themify/themify-template-tags.php
/**
     * Create the opening <a> tag, links to the permalink by default
     *
     * @return string
     */
Create the opening  tag, links to the permalink by default
@return string
Create the opening tag links to the permalink by default @return string
function themify_open_link($args = array()) {
	$args = wp_parse_args($args, array(
	    'no_permalink' => false, 
	    'class' => '', 
	    'echo' => false,
	    'link' => '',
	    'lightbox' => false,
	));
	$attr = array(
	    'class' => $args['class']
	);
	$link = $args['link'];
	if (empty($link)) {
	    if (themify_get('external_link') != '') {
		$link = esc_url(themify_get('external_link'));
	    } elseif (themify_get('lightbox_link') != '') {
		$link = esc_url(themify_get('lightbox_link'));
		$args['lightbox'] = true;
	    } elseif (themify_check('link_url')) {
		$link = themify_get('link_url');
	    } elseif ($args['no_permalink']) {
		$link = '';
	    } else {
		$link = get_permalink();
		if (current_theme_supports('themify-post-in-lightbox')) {
		    if (!is_single() && '' != themify_get('setting-open_inline')) {
			$args['lightbox'] = true;
		    }
		    if (themify_is_query_page()) {
			if ('no' === themify_get('post_in_lightbox')) {
			    $link = get_permalink();
			} else {
			    $args['lightbox'] = true;
			}
		    }
		    if ($args['lightbox'] === true) {
			$link = add_query_arg(array('post_in_lightbox' => 1), get_permalink());
		    }
		}
	    }
	}
	$attr['href'] = $link;
	if ($args['lightbox'] === true) {
	    $attr['class'] .= ' themify_lightbox';
	}
	$link = sprintf('<a%s>', themify_get_element_attributes($attr));
	if ($args['echo'])
	    echo $link;
	return $link;
    }
function themify_open_link ( $ args = array ( ) ) { $ args = wp_parse_args ( $ args , array ( 'no_permalink' => false , 'class' => '' , 'echo' => false , 'link' => '' , 'lightbox' => false , ) ) ; $ attr = array ( 'class' => $ args [ 'class' ] ) ; $ link = $ args [ 'link' ] ; if ( empty ( $ link ) ) { if ( themify_get ( 'external_link' ) != '' ) { $ link = esc_url ( themify_get ( 'external_link' ) ) ; } elseif ( themify_get ( 'lightbox_link' ) != '' ) { $ link = esc_url ( themify_get ( 'lightbox_link' ) ) ; $ args [ 'lightbox' ] = true ; } elseif ( themify_check ( 'link_url' ) ) { $ link = themify_get ( 'link_url' ) ; } elseif ( $ args [ 'no_permalink' ] ) { $ link = '' ; } else { $ link = get_permalink ( ) ; if ( current_theme_supports ( 'themify-post-in-lightbox' ) ) { if ( ! is_single ( ) && '' != themify_get ( 'setting-open_inline' ) ) { $ args [ 'lightbox' ] = true ; } if ( themify_is_query_page ( ) ) { if ( 'no' === themify_get ( 'post_in_lightbox' ) ) { $ link = get_permalink ( ) ; } else { $ args [ 'lightbox' ] = true ; } } if ( $ args [ 'lightbox' ] === true ) { $ link = add_query_arg ( array ( 'post_in_lightbox' => 1 ) , get_permalink ( ) ) ; } } } } $ attr [ 'href' ] = $ link ; if ( $ args [ 'lightbox' ] === true ) { $ attr [ 'class' ] .= ' themify_lightbox' ; } $ link = sprintf ( '<a%s>' , themify_get_element_attributes ( $ attr ) ) ; if ( $ args [ 'echo' ] ) echo $ link ; return $ link ; }
Create the opening <a> tag, links to the permalink by default
 @return string
Create the opening <a > tag links to the permalink by default @return string
// if there is no lightbox link, don't return a link // additional classes to attach to link