Skip to content

Commit

Permalink
? what is this
Browse files Browse the repository at this point in the history
I dunno what this is.
  • Loading branch information
Jessika Mika Caldera authored and Jessika Mika Caldera committed Feb 3, 2015
1 parent 92ec886 commit 6038ecd
Show file tree
Hide file tree
Showing 23 changed files with 2,387 additions and 1,384 deletions.
20 changes: 19 additions & 1 deletion 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,25 @@
</header><!-- .page-header -->
<div class="page-content">
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links above or a search?', 'cs' ); ?></p>
<?php get_search_form(); ?>
<div class="col-sm-6">
<?php get_search_form(); ?>
</div>
<div class="col-sm-6">
<ul>
<?php
if (wp_get_nav_menu_object('404')){
$defaults = array(
'menu' => '404',
'container' => false,
'items_wrap' => '%3$s',
'depth' => 1,
'fallback_cb' => false
);
wp_nav_menu( $defaults );
}
?>
</ul>
</div>
</div><!-- .page-content -->
</div>
<div class="col-sm-6">
Expand Down
118 changes: 66 additions & 52 deletions content-az.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,58 +26,72 @@
</div><!-- .entry-content -->

<div id="az-index" class="clearfix">
<?php
function getChars(){
$pages = get_pages();
$letters = array();
foreach( (array) $pages as $pg ){
$title = ucwords($pg->post_title);
$char = $title{0};
if( !(is_numeric($char)) && !in_array($char, $letters) ){
array_push($letters, $char);
}
}
return $letters;
}

// Generate AZ Navigation
echo '<nav class="btn-group">';
$anchors = getChars();
foreach( range('A', 'Z') as $char ){
if( in_array( $char, $anchors ) ){
echo '<a href="#'.$char.'-pages" class="btn btn-default">'.$char.'</a>';
} else {
echo '<span class="btn btn-default disabled">'.$char.'</span>';
}
}
echo '</nav>';

// Generate AZ List
$pages = get_pages(array('sort_order' => 'asc', 'sort_column' => 'post_title', 'hierarchical' => false, 'exclude' => $exclude));
if( !preg_match($pattern, $exclude, $matches) ){
$letters = array();
echo '<section class="letter-directory">';
foreach( (array) $pages as $pg ){
$title = ucwords($pg->post_title);
$char = $title{0};
if( !( is_numeric($char) || empty($char) ) ){
if( $char != end($letters) && !empty($letters) ){
echo '</ol></div>';
}
if( !in_array($char, $letters) ){
echo '<div class="az-letter"><a name="'.$char.'-pages" class="az-anchor"></a><h2 id="'.$char.'-pages az-letter-title"><span class="az-letter">'.$char.'</span></h2><ol class="az-letter-list">';
array_push($letters, $char);
}
echo '<li><a href="'.get_page_link($pg->ID).'" class="az-letter-page">'.$title.'</a></li>';
}
}
echo '</ol></div></section>';
} else {
echo '<p>Invalid input in field: "exclude"</p>';
}
?>
</div>
<footer class="entry-footer">
<?php
function getChars(){
$pages = get_pages();
$letters = array();
foreach( (array) $pages as $pg ){
$parent = is_parent_private($pg->ID);
if($parent !== false) $page = $parent;
else $page = $pg->ID;
$private = get_post_meta($page, 'uc-private', true);
if($private == 'admins' || $private == 'users' || $private == 'list'){
continue;
}
$title = ucwords($pg->post_title);
$char = $title{0};
if( !(is_numeric($char)) && !in_array($char, $letters) ){
array_push($letters, $char);
}
}
return $letters;
}

// Generate AZ Navigation
echo '<nav class="btn-group">';
$anchors = getChars();
foreach( range('A', 'Z') as $char ){
if( in_array( $char, $anchors ) ){
echo '<a href="#'.$char.'-pages" class="btn btn-default">'.$char.'</a>';
} else {
echo '<span class="btn btn-default disabled">'.$char.'</span>';
}
}
echo '</nav>';

// Generate AZ List
$pages = get_pages(array('sort_order' => 'asc', 'sort_column' => 'post_title', 'hierarchical' => false, 'exclude' => $exclude));
if( !preg_match($pattern, $exclude, $matches) ){
$letters = array();
echo '<section class="letter-directory">';
foreach( (array) $pages as $pg ){
$parent = is_parent_private($pg->ID);
if($parent !== false) $page = $parent;
else $page = $pg->ID;
$private = get_post_meta($page, 'uc-private', true);
if($private == 'admins' || $private == 'users' || $private == 'list'){
continue;
}
$title = ucwords($pg->post_title);
$char = $title{0};
if( !( is_numeric($char) || empty($char) ) ){
if( $char != end($letters) && !empty($letters) ){
echo '</ol></div>';
}
if( !in_array($char, $letters) ){
echo '<div class="az-letter"><a name="'.$char.'-pages" class="az-anchor"></a><h2 id="'.$char.'-pages az-letter-title"><span class="az-letter">'.$char.'</span></h2><ol class="az-letter-list">';
array_push($letters, $char);
}
echo '<li><a href="'.get_page_link($pg->ID).'" class="az-letter-page">'.$title.'</a></li>';
}
}
echo '</ol></div></section>';
} else {
echo '<p>Invalid input in field: "exclude"</p>';
}
?>
</div>
<footer class="entry-footer">
<?php edit_post_link( __( 'Edit', 'cs' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->
180 changes: 0 additions & 180 deletions css/admin-style.css
Original file line number Diff line number Diff line change
@@ -1,180 +0,0 @@
/* - - - - - - - - - - - - - - - - - - -
== Admin Style
- - - - - - - - - - - - - - - - - - - */
#wpadminbar {
background-color: #000E2F;
}

#accordion-section-layout_builder {
/* Homepage Layout builder */
}
#accordion-section-layout_builder .sliderDeleteRow {
float: right;
}
#accordion-section-layout_builder .sliders {
padding: 2.5em 0;
}
#accordion-section-layout_builder .slider-wrap {
float: left;
width: 100%;
padding: 5px 0;
clear: left;
}
#accordion-section-layout_builder .slider-wrap a:focus {
outline: thin dotted;
outline-color: #2ea2cc;
}
#accordion-section-layout_builder .slider,
#accordion-section-layout_builder .sliderAddColumn {
float: left;
}
#accordion-section-layout_builder .slider {
width: 195px;
margin-right: 15px;
}
#accordion-section-layout_builder .sliderAddColumn {
padding: 0px !important;
height: auto !important;
}
#accordion-section-layout_builder .ui-slider-horizontal {
height: 3.5em !important;
background-color: #eeeeee !important;
background-image: linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.5) 50%) !important;
background-size: 20px 50px !important;
}
#accordion-section-layout_builder .ui-slider .ui-slider-handle {
width: 0.01em !important;
height: 3.9em !important;
padding: 0 !important;
}
#accordion-section-layout_builder .ui-slider .ui-slider-handle:focus {
width: 0.05em !important;
height: 3.7em !important;
border: 1px solid #2ea2cc;
}
#accordion-section-layout_builder .ui-slider .ui-slider-handle:before {
content: "";
display: block;
position: relative;
top: -24px;
left: -13px;
width: 20px;
height: 20px;
margin-left: 3px;
border-radius: 3px;
background: grey;
}
#accordion-section-layout_builder .ui-slider .ui-slider-handle:focus:before {
position: relative;
top: -24px;
left: -12px;
background: #2ea2cc;
}
#accordion-section-layout_builder .ui-slider .ui-slider-handle:after {
content: "";
display: block;
position: relative;
top: -24px;
left: -8px;
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-top: 8px solid grey;
}
#accordion-section-layout_builder .ui-slider .ui-slider-handle:focus:after {
position: relative;
top: -24px;
left: -7px;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-top: 8px solid #2ea2cc;
}
#accordion-section-layout_builder .ui-slider .ui-slider-handle:hover {
cursor: -webkit-grab;
}
#accordion-section-layout_builder .ui-slider .ui-slider-handle:active {
cursor: -webkit-grabbing;
}
#accordion-section-layout_builder .ui-slider .ui-slider-handle:focus {
background-image: none;
background: #2ea2cc !important;
width: 2px !important;
}
#accordion-section-layout_builder .wp-core-ui .button.sliderDeleteColumn {
background: #2ea2cc;
border-color: #0074a2;
-webkit-box-shadow: inset 0 1px 0 rgba(120, 200, 230, 0.5), 0 1px 0 rgba(0, 0, 0, 0.15);
box-shadow: inset 0 1px 0 rgba(120, 200, 230, 0.5), 0 1px 0 rgba(0, 0, 0, 0.15);
color: #fff;
}
#accordion-section-layout_builder .wp-core-ui .button.sliderDeleteColumn .dashicons-minus {
padding: 4px;
}
#accordion-section-layout_builder .wp-core-ui .button.sliderAddColumn .dashicons-plus {
padding: 14px 4px;
}

#sidebar-manager #home0,
#sidebar-manager #home1,
#sidebar-manager #home2,
#sidebar-manager #home3,
#sidebar-manager #home4,
#sidebar-manager #home5,
#sidebar-manager #home6,
#sidebar-manager #home7,
#sidebar-manager #home8,
#sidebar-manager #home9,
#sidebar-manager #home10,
#sidebar-manager #home11,
#sidebar-manager #home12,
#sidebar-manager #home13,
#sidebar-manager #home14,
#sidebar-manager #home15,
#sidebar-manager #home16,
#sidebar-manager #home17,
#sidebar-manager #home18,
#sidebar-manager #home19,
#sidebar-manager #home20,
#sidebar-manager #home21,
#sidebar-manager #home22,
#sidebar-manager #home23,
#sidebar-manager #home24,
#sidebar-manager #home25,
#sidebar-manager #home26,
#sidebar-manager #home27,
#sidebar-manager #home28,
#sidebar-manager #home29,
#sidebar-manager #home30,
#sidebar-manager #home31,
#sidebar-manager #home32,
#sidebar-manager #home33,
#sidebar-manager #home34,
#sidebar-manager #home35,
#sidebar-manager #home36,
#sidebar-manager #home37,
#sidebar-manager #home38,
#sidebar-manager #home39,
#sidebar-manager #home40,
#sidebar-manager #home41,
#sidebar-manager #home42,
#sidebar-manager #home43,
#sidebar-manager #home44,
#sidebar-manager #home45,
#sidebar-manager #home46,
#sidebar-manager #home47,
#sidebar-manager #home48,
#sidebar-manager #home49,
#sidebar-manager #home50,
#sidebar-manager #home51,
#sidebar-manager #home52,
#sidebar-manager #home53,
#sidebar-manager #home54,
#sidebar-manager #home55,
#sidebar-manager #home56,
#sidebar-manager #home57,
#sidebar-manager #home58,
#sidebar-manager #home59,
#sidebar-manager #home60 {
display: none;
}
42 changes: 3 additions & 39 deletions css/widgets.css
Original file line number Diff line number Diff line change
@@ -1,39 +1,3 @@
/*--------------------------------------------------------------
9.0 Widgets
--------------------------------------------------------------*/
.widget {
border: 1px solid transparent;
border-width: 1px;
border-color: #cccccc;
border-radius: 0;
margin: 0 0 1.5em 0;
padding: none;
background-color: white;
color: black;
}
.widget a {
color: blue;
}
.widget a:hover {
color: red;
}
.widget .widget-head {
padding: 0.5em;
border: 1px solid transparent;
border-width: 0 0 1px 0;
border-color: #cccccc;
}
.widget .widget-head h2 {
font-size: 1em;
margin: 0;
}

/* Make sure select elements fit in widgets */
.widget select {
max-width: 100%;
}

/* Search widget */
.widget_search .search-submit {
display: none;
}
/* - - - - - - - - - - - - - - - - - - -
== Widgets
- - - - - - - - - - - - - - - - - - - */
Loading

0 comments on commit 6038ecd

Please sign in to comment.