I've been looking at Twenty Thirteen's code structure and thought I could learn a thing or two about theme development.
There's something that I haven't found an answer to:
Twenty Thirteen's widget areas are called by just using
get_sidebar(). However, there are 2 sidebar files in the theme's folder - sidebar-main.php, sidebar.php.
From what I understand, sidebar-main.php can be called by defining the parameter of
get_sidebar('main'). In Twenty Thirteen's case, I see no code which calls that, yet
is_active_sidebar('sidebar-1') is executed.
How does it call sidebar-main.php without defining the parameter?
Another thing I've tried doing is switching the file names. The one with 'sidebar-2' to sidebar-main.php and 'sidebar-1' to sidebar.php. Everything screws up! The right sidebar widget isn't in place and the footer widget doesn't even show.
How is Twenty Thirteen calling it's sidebars?
Thanks in advance.