Exemple #1
0
/**
 * 2016-11-29
 * @param int|null $id [optional]
 * @return Theme|null
 */
function df_theme($id = null)
{
    if ($id) {
        $result = df_themes()->getItemById($id);
    } else {
        /** @var Theme $result */
        $result = df_theme_resolver()->get();
        if ($result->isVirtual()) {
            $result = df_themes()->getItemById(df_design()->getConfigurationDesignTheme('frontend'));
        }
    }
    return $result;
}
Exemple #2
0
 /**
  * @test
  * 2016-11-29
  */
 public function t02()
 {
     $theme = df_theme_resolver()->get();
     xdebug_break();
 }