/**
  * Finds the default template and retrieves the detail information of the template.
  * 
  * This is used when no default template is set.
  * 
  * @return       array      The default template array
  */
 public function findDefaultTemplateDetails($sDirPath = '')
 {
     static $_aDefault = array();
     if (isset($_aDefault[$sDirPath])) {
         return $_aDefault[$sDirPath];
     }
     $sDirPath = $sDirPath ? $sDirPath : FetchTweets_Commons::getPluginDirPath() . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'plain';
     $_aDefaultTemplate = $this->getTemplateArrayByDirPath($sDirPath);
     $_aDefaultTemplate['bIsActive'] = true;
     $_aDefaultTemplate['bIsDefault'] = true;
     $_aDefaultTemplate['fIsActive'] = true;
     // backward compatibility
     $_aDefaultTemplate['fIsDefault'] = true;
     // backward compatibility
     $_aDefault[$sDirPath] = $_aDefaultTemplate;
     return $_aDefault[$sDirPath];
 }
 /**
  * Returns the template container directories.
  * @since       2.3.5
  */
 private function _getTemplateContainerDirs()
 {
     $_aTemplateContainerDirs = array();
     $_aTemplateContainerDirs[] = FetchTweets_Commons::getPluginDirPath() . DIRECTORY_SEPARATOR . 'template';
     $_aTemplateContainerDirs[] = get_stylesheet_directory() . DIRECTORY_SEPARATOR . 'fetch-tweets';
     $_aTemplateContainerDirs = apply_filters('fetch_tweets_filter_template_container_directories', $_aTemplateContainerDirs);
     $_aTemplateContainerDirs = array_filter($_aTemplateContainerDirs);
     // drops elements of empty values.
     return array_unique($_aTemplateContainerDirs);
 }
 public function findDefaultTemplateDetails($strDirPath = null)
 {
     // Finds the default template and retrieves the detail information of the template.
     // This is used when no default template is set.
     $strDirPath = isset($strDirPath) && $strDirPath ? $strDirPath : FetchTweets_Commons::getPluginDirPath() . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'plain';
     $arrDefaultTemplate = array('fIsActive' => true, 'fIsDefault' => true, 'strCSSPath' => $strDirPath . DIRECTORY_SEPARATOR . 'style.css', 'strDirPath' => $strDirPath, 'strFunctionPath' => file_exists($strDirPath . DIRECTORY_SEPARATOR . 'functions.php') ? $strDirPath . DIRECTORY_SEPARATOR . 'functions.php' : null, 'strTemplatePath' => file_exists($strDirPath . DIRECTORY_SEPARATOR . 'template.php') ? $strDirPath . DIRECTORY_SEPARATOR . 'template.php' : null, 'strSettingsPath' => file_exists($strDirPath . DIRECTORY_SEPARATOR . 'settings.php') ? $strDirPath . DIRECTORY_SEPARATOR . 'settings.php' : null, 'strThumbnailPath' => $this->getScreenshotPath($strDirPath), 'strSlug' => md5($strDirPath)) + $this->getTemplateData($strDirPath . '/style.css') + self::$arrStructure_Template;
     // FetchTweets_Debug::getArray( $arrDefaultTemplate, dirname( __FILE__ ) . '/default_template.txt' );
     return $arrDefaultTemplate;
 }