WordPress.org

Ready to get started?Download WordPress

Forums

Connections Business Directory
[Plugin: Connections] Proposed patch to templates location (2 posts)

  1. Lopo Lencastre de Almeida
    Member
    Posted 3 years ago #

    On a multi-blog environment the private templates should be hosted all in a common directory but they should be hosted on each blog's template directory. So I propose that the code...

    // First check to see if the template is in the custom template folder.
    	if (is_dir(WP_CONTENT_DIR . '/connections_templates'))
    	{
    		if (file_exists(WP_CONTENT_DIR . '/connections_templates/' .  $atts['template_name'] . '.php'))
    		{
    			$template = WP_CONTENT_DIR . '/connections_templates/' .  $atts['template_name'] . '.php';
    		}
    	}

    ... should be replaced by...

    // First check to see if the template is in the theme's folder.
    	if (file_exists(TEMPLATEPATH . $atts['template_name'] . '.php'))
    	{
    		$template = TEMPLATEPATH . $atts['template_name'] . '.php';
    	}
  2. shazahm1
    Member
    Plugin Author

    Posted 3 years ago #

    I think this would cause problems if you were to change theme templates.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic