Skip to content

Commit

Permalink
changed domain name for all functions e translations, fix footer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
diegorojas committed May 10, 2017
1 parent df9d855 commit 38dd36e
Show file tree
Hide file tree
Showing 53 changed files with 1,844 additions and 2,089 deletions.
12 changes: 6 additions & 6 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package OnePress
* @package coletivo
*/

get_header(); ?>
<div id="content" class="site-content">

<div class="page-header">
<div class="container">
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'onepress' ); ?></h1>
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'coletivo' ); ?></h1>
</div>
</div>

Expand All @@ -23,15 +23,15 @@
<section class="error-404 not-found">

<div class="page-content">
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'onepress' ); ?></p>
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'coletivo' ); ?></p>

<?php get_search_form(); ?>

<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>

<?php if ( onepress_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
<?php if ( coletivo_categorized_blog() ) : // Only show the widget if site has multiple categories. ?>
<div class="widget widget_categories">
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'onepress' ); ?></h2>
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'coletivo' ); ?></h2>
<ul>
<?php
wp_list_categories( array(
Expand All @@ -48,7 +48,7 @@

<?php
/* translators: %1$s: smiley */
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'onepress' ), convert_smilies( ':)' ) ) . '</p>';
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'coletivo' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>

Expand Down
4 changes: 2 additions & 2 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package OnePress
* @package coletivo
*/

get_header(); ?>
Expand All @@ -18,7 +18,7 @@
</div>
</div>

<?php echo onepress_breadcrumb(); ?>
<?php echo coletivo_breadcrumb(); ?>

<div id="content-inside" class="container">
<main id="main" class="site-main" role="main">
Expand Down
10 changes: 5 additions & 5 deletions assets/css/customizer.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
li[id*="accordion-panel-onepress"] > .accordion-section-title{
li[id*="accordion-panel-coletivo"] > .accordion-section-title{
padding-left: 30px;
}
li#accordion-panel-onepress_options > .accordion-section-title,
li#accordion-panel-onepress_typo > .accordion-section-title
li#accordion-panel-coletivo_options > .accordion-section-title,
li#accordion-panel-coletivo_typo > .accordion-section-title
{
padding-left: 14px;
}
Expand Down Expand Up @@ -108,7 +108,7 @@ li#accordion-panel-onepress_typo > .accordion-section-title
display: block;
margin-top: 15px;
}
.accordion-section-title .onepress-notice {
.accordion-section-title .coletivo-notice {
font-size: 10px;
text-transform: uppercase;
float: right;
Expand All @@ -127,7 +127,7 @@ body .wp-full-overlay{
z-index: 9999;
}

.wp-js-editor-active textarea, .onepress-editor-added textarea{
.wp-js-editor-active textarea, .coletivo-editor-added textarea{
display: none;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/editor-style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Theme Name: OnePress
Theme Name: Coletivo
Description: Used to style the TinyMCE editor.
*/

Expand Down
6 changes: 3 additions & 3 deletions assets/js/customizer-liveview.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


// Site footer bg
wp.customize( 'onepress_footer_bg', function( value ) {
wp.customize( 'coletivo_footer_bg', function( value ) {
value.bind( function( to ) {
$( '.site-footer' ).css( {
'background': to
Expand All @@ -19,7 +19,7 @@
} );

// Site footer info bg
wp.customize( 'onepress_footer_info_bg', function( value ) {
wp.customize( 'coletivo_footer_info_bg', function( value ) {
value.bind( function( to ) {
$( '.site-footer .site-info, .site-footer .btt a' ).css( {
'background': to
Expand Down Expand Up @@ -65,7 +65,7 @@


// Site footer widgets
wp.customize( 'onepress_btt_disable', function( value ) {
wp.customize( 'coletivo_btt_disable', function( value ) {
value.bind( function( to ) {
if ( to === true || to == 'true' ) {
$( '.site-footer .btt ' ).hide();
Expand Down
60 changes: 30 additions & 30 deletions assets/js/customizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@

var format = $context.attr('data-title-format') || '';
// Custom for special ID
if (control.id === 'onepress_section_order_styling') {
if (control.id === 'coletivo_section_order_styling') {
if ($context.find('input.add_by').val() !== 'click') {
format = '[live_title]';
}
Expand Down Expand Up @@ -630,7 +630,7 @@

var format = $context.attr('data-title-format') || '';
// custom for special ID
if (control.id === 'onepress_section_order_styling') {
if (control.id === 'coletivo_section_order_styling') {
if ($context.find('input.add_by').val() !== 'click') {
format = '[live_title]';
}
Expand Down Expand Up @@ -739,7 +739,7 @@
});

// Custom for special IDs
if ( control.id === 'onepress_section_order_styling' ) {
if ( control.id === 'coletivo_section_order_styling' ) {
if ($context.find('input.add_by').val() !== 'click') {
$context.addClass('no-changeable');
// Remove because we never use
Expand Down Expand Up @@ -1032,7 +1032,7 @@ jQuery( document ).ready( function( $ ){

var control = this;
control.container = container;
control.container.addClass( 'onepress-editor-added' );
control.container.addClass( 'coletivo-editor-added' );
control.editing_area = $( 'textarea' , control.container );
if ( control.editing_area.hasClass( 'wp-editor-added' ) ) {
return false;
Expand Down Expand Up @@ -1243,72 +1243,72 @@ jQuery( document ).ready( function( $ ){

jQuery( window ).ready( function( $ ){

if ( typeof onepress_customizer_settings !== "undefined" ) {
if (onepress_customizer_settings.number_action > 0) {
$('.control-section-themes h3.accordion-section-title').append('<a class="theme-action-count" href="' + onepress_customizer_settings.action_url + '">' + onepress_customizer_settings.number_action + '</a>');
if ( typeof coletivo_customizer_settings !== "undefined" ) {
if (coletivo_customizer_settings.number_action > 0) {
$('.control-section-themes h3.accordion-section-title').append('<a class="theme-action-count" href="' + coletivo_customizer_settings.action_url + '">' + coletivo_customizer_settings.number_action + '</a>');
}
}


/**
* For Hero layout content settings
*/
$( 'select[data-customize-setting-link="onepress_hero_layout"]').on( 'change on_custom_load', function(){
$( 'select[data-customize-setting-link="coletivo_hero_layout"]').on( 'change on_custom_load', function(){
var v = $( this).val() || '';

$( "li[id^='customize-control-onepress_hcl']").hide();
$( "li[id^='customize-control-onepress_hcl"+v+"']").show();
$( "li[id^='customize-control-coletivo_hcl']").hide();
$( "li[id^='customize-control-coletivo_hcl"+v+"']").show();

} );
$( 'select[data-customize-setting-link="onepress_hero_layout"]').trigger( 'on_custom_load' );
$( 'select[data-customize-setting-link="coletivo_hero_layout"]').trigger( 'on_custom_load' );


/**
* For Gallery content settings
*/
$( 'select[data-customize-setting-link="onepress_gallery_source"]').on( 'change on_custom_load', function(){
$( 'select[data-customize-setting-link="coletivo_gallery_source"]').on( 'change on_custom_load', function(){
var v = $( this).val() || '';

$( "li[id^='customize-control-onepress_gallery_source_']").hide();
$( "li[id^='customize-control-onepress_gallery_api_']").hide();
$( "li[id^='customize-control-onepress_gallery_settings_']").hide();
$( "li[id^='customize-control-onepress_gallery_source_"+v+"']").show();
$( "li[id^='customize-control-onepress_gallery_api_"+v+"']").show();
$( "li[id^='customize-control-onepress_gallery_settings_"+v+"']").show();
$( "li[id^='customize-control-coletivo_gallery_source_']").hide();
$( "li[id^='customize-control-coletivo_gallery_api_']").hide();
$( "li[id^='customize-control-coletivo_gallery_settings_']").hide();
$( "li[id^='customize-control-coletivo_gallery_source_"+v+"']").show();
$( "li[id^='customize-control-coletivo_gallery_api_"+v+"']").show();
$( "li[id^='customize-control-coletivo_gallery_settings_"+v+"']").show();

} );

$( 'select[data-customize-setting-link="onepress_gallery_source"]').trigger( 'on_custom_load' );
$( 'select[data-customize-setting-link="coletivo_gallery_source"]').trigger( 'on_custom_load' );

/**
* For Gallery display settings
*/
$( 'select[data-customize-setting-link="onepress_gallery_display"]').on( 'change on_custom_load', function(){
$( 'select[data-customize-setting-link="coletivo_gallery_display"]').on( 'change on_custom_load', function(){
var v = $( this).val() || '';
switch ( v ) {
case 'slider':
$( "#customize-control-onepress_g_row_height, #customize-control-onepress_g_col, #customize-control-onepress_g_spacing").hide();
$( "#customize-control-coletivo_g_row_height, #customize-control-coletivo_g_col, #customize-control-coletivo_g_spacing").hide();
break;
case 'justified':
$( "#customize-control-onepress_g_col, #customize-control-onepress_g_spacing").hide();
$( "#customize-control-onepress_g_row_height").show();
$( "#customize-control-coletivo_g_col, #customize-control-coletivo_g_spacing").hide();
$( "#customize-control-coletivo_g_row_height").show();
break;
case 'carousel':
$( "#customize-control-onepress_g_row_height, #customize-control-onepress_g_col").hide();
$( "#customize-control-onepress_g_col, #customize-control-onepress_g_spacing").show();
$( "#customize-control-coletivo_g_row_height, #customize-control-coletivo_g_col").hide();
$( "#customize-control-coletivo_g_col, #customize-control-coletivo_g_spacing").show();
break;
case 'masonry':
$( "#customize-control-onepress_g_row_height").hide();
$( "#customize-control-onepress_g_col, #customize-control-onepress_g_spacing").show();
$( "#customize-control-coletivo_g_row_height").hide();
$( "#customize-control-coletivo_g_col, #customize-control-coletivo_g_spacing").show();
break;
default:
$( "#customize-control-onepress_g_row_height").hide();
$( "#customize-control-onepress_g_col, #customize-control-onepress_g_spacing").show();
$( "#customize-control-coletivo_g_row_height").hide();
$( "#customize-control-coletivo_g_col, #customize-control-coletivo_g_spacing").show();

}

} );
$( 'select[data-customize-setting-link="onepress_gallery_display"]').trigger( 'on_custom_load' );
$( 'select[data-customize-setting-link="coletivo_gallery_display"]').trigger( 'on_custom_load' );

} );

Expand Down
Loading

0 comments on commit 38dd36e

Please sign in to comment.