Skip to content

Commit

Permalink
Removed redundant function: blog_theme_layouts()
Browse files Browse the repository at this point in the history
Update to #55

This function is no longer required because the option to choose between
themes has been removed.
  • Loading branch information
John Stray committed Feb 15, 2015
1 parent b3384fa commit d552816
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions gs-blog/inc/adminFunctions.php
Expand Up @@ -219,21 +219,3 @@ function savePost() {
echo '</div>';
}
}

/**-------------------------------------------------------------------------------------------------
* blog_theme_layouts()
* Returns a list of layout templates for the blog
*
* @return $list (array) List of available templates
*/
function blog_theme_layouts() {

$files = array_filter(glob(BLOGPLUGINFOLDER.'templates/*.php'), 'is_file'); // Get the list of template files
$list = array(); // Prepare the $list array

foreach ($files as $file) { // For each file in the list
array_push($list, pathinfo($file, PATHINFO_FILENAME)); // Get its name without path or extention
}

return $list; // Return the list
}

0 comments on commit d552816

Please sign in to comment.