Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1,29 @@
|
||||
// Tabs
|
||||
|
||||
( function( $ ) {
|
||||
$( document ).ready( function() {
|
||||
var titleWrap = '.wp-block-themepunchblocks-tpc-tabs-tab-title-wrap';
|
||||
var contentWrap = '.wp-block-themepunchblocks-tpc-tabs-tab-content-wrap';
|
||||
$( document )
|
||||
.on( 'click', '.wp-block-themepunchblocks-tpc-tabs-tab-title-wrap', function() {
|
||||
var parent = $(this)
|
||||
.closest('.wp-block-themepunchblocks-tpc-tabs');
|
||||
var contentWrapEl = parent
|
||||
.find('.wp-block-themepunchblocks-tpc-tabs-tab-content-wrap');
|
||||
var activeStyle = parent
|
||||
.find('.wp-block-themepunchblocks-tpc-tabs-tab-title-wrap.active')
|
||||
.attr('style');
|
||||
var defaultStyle = parent
|
||||
.find('.wp-block-themepunchblocks-tpc-tabs-tab-title-wrap:not(.active)')
|
||||
.attr('style');
|
||||
|
||||
$(this).siblings(titleWrap).removeClass('active').attr('style', defaultStyle);
|
||||
$(this).addClass('active').attr('style', activeStyle);
|
||||
|
||||
contentWrapEl.removeClass('active').addClass('tpc-hide');
|
||||
parent.find(contentWrap +':nth-of-type(' + ($(this).index() + 1) + ')')
|
||||
.addClass('active')
|
||||
.removeClass('tpc-hide');
|
||||
} );
|
||||
} );
|
||||
}( jQuery ) );
|
||||
@@ -0,0 +1 @@
|
||||
wp.i18n.setLocaleData( { '': {} }, 'themepunchblocks' );
|
||||
@@ -0,0 +1,11 @@
|
||||
import './i18n.js';
|
||||
//import './tpc-headlines';
|
||||
//import './tpc-contents';
|
||||
//import './tpc-related';
|
||||
//import './tpc-btn';
|
||||
//import './tpc-infobox';
|
||||
//import './tpc-gallery';
|
||||
//import './tpc-tabs';
|
||||
//import './tpc-container';
|
||||
//import './tpc-code';
|
||||
import './revslider';
|
||||
@@ -0,0 +1,39 @@
|
||||
div.revslider_block {
|
||||
background: url(../images/revlogo.png);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 205px;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
div.revslider_block .components-text-control__input {
|
||||
display:none;
|
||||
}
|
||||
|
||||
div.revslider_block span{
|
||||
font-weight: bold;
|
||||
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
|
||||
}
|
||||
|
||||
div.revslider_block .slider_slug {
|
||||
float:left;
|
||||
}
|
||||
|
||||
div.revslider_block .slider_edit_button {
|
||||
float:right;
|
||||
}
|
||||
|
||||
[data-type="themepunch/revslider"] .editor-block-list__block-edit:before{
|
||||
outline: 1px solid rgba(145,151,162,.25)!important;
|
||||
}
|
||||
|
||||
.editor-block-list-item-themepunch-revslider svg,
|
||||
.components-panel__body.edit-post-block-sidebar__panel svg.dashicons-update
|
||||
{
|
||||
width:24px;
|
||||
height:24px;
|
||||
}
|
||||
|
||||
.editor-block-list-item-themepunch-revslider .editor-block-types-list__item-title{
|
||||
padding: 4px 1px 4px 1px;
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
/**
|
||||
* Block dependencies
|
||||
*/
|
||||
import './style.scss';
|
||||
|
||||
/**
|
||||
* Internal block libraries
|
||||
*/
|
||||
const { __ } = wp.i18n;
|
||||
const { registerBlockType } = wp.blocks;
|
||||
const { TextControl, Button } = wp.components;
|
||||
const { Component } = wp.element;
|
||||
|
||||
/**
|
||||
* RevSlider Editor Element
|
||||
*/
|
||||
export class RevSlider extends Component {
|
||||
|
||||
constructor() {
|
||||
super( ...arguments );
|
||||
const { attributes: { text,sliderTitle } } = this.props;
|
||||
this.state = {
|
||||
text ,
|
||||
sliderTitle
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
const {
|
||||
attributes: { text,sliderTitle },
|
||||
setAttributes } = this.props;
|
||||
|
||||
window.revslider_react = this;
|
||||
const openDialog = () => {
|
||||
jQuery('#revslider-tiny-mce-dialog').dialog({
|
||||
id : 'revslider-tiny-mce-dialog',
|
||||
width : 900,
|
||||
height : 600,
|
||||
resizable: false
|
||||
})
|
||||
}
|
||||
return (
|
||||
<div className="revslider_block">
|
||||
<span>{this.state.sliderTitle} </span>
|
||||
<TextControl
|
||||
className="slider_slug"
|
||||
value={ this.state.text }
|
||||
onChange={ ( text ) => setAttributes( { text } ) }
|
||||
/>
|
||||
<Button
|
||||
isDefault
|
||||
onClick = { openDialog }
|
||||
className="slider_edit_button"
|
||||
>
|
||||
Edit
|
||||
</Button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register block
|
||||
*/
|
||||
export default registerBlockType(
|
||||
'themepunch/revslider',
|
||||
{
|
||||
title: __( 'Slider Revolution', 'revslider' ),
|
||||
description: __( 'Add your Slider Revolution.', 'revslider' ),
|
||||
category: 'themepunch',
|
||||
icon: {
|
||||
src: 'update',
|
||||
background: 'rgb(210,0,0)',
|
||||
color: 'white',
|
||||
viewbox: "0 0 24 24"
|
||||
},
|
||||
keywords: [
|
||||
__( 'Banner', 'revslider' ),
|
||||
__( 'CTA', 'revslider' ),
|
||||
__( 'Slider', 'revslider' ),
|
||||
],
|
||||
attributes: {
|
||||
text: {
|
||||
selector: '.revslider',
|
||||
type: 'string',
|
||||
source: 'text',
|
||||
},
|
||||
sliderTitle: {
|
||||
selector: '.revslider',
|
||||
type: 'string',
|
||||
source: 'attribute',
|
||||
attribute: 'data-slidertitle',
|
||||
}
|
||||
},
|
||||
edit: props => {
|
||||
const { setAttributes } = props;
|
||||
return (
|
||||
<div>
|
||||
<RevSlider {...{ setAttributes, ...props }} />
|
||||
</div>
|
||||
);
|
||||
},
|
||||
save: props => {
|
||||
const { attributes: { text,sliderTitle } } = props;
|
||||
return (
|
||||
<div className="revslider" data-slidertitle={sliderTitle}>
|
||||
{text}
|
||||
</div>
|
||||
);
|
||||
},
|
||||
},
|
||||
);
|
||||
@@ -0,0 +1,39 @@
|
||||
div.revslider_block {
|
||||
background: url(../images/revlogo.png);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 205px;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
div.revslider_block .components-text-control__input {
|
||||
display:none;
|
||||
}
|
||||
|
||||
div.revslider_block span{
|
||||
font-weight: bold;
|
||||
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
|
||||
}
|
||||
|
||||
div.revslider_block .slider_slug {
|
||||
float:left;
|
||||
}
|
||||
|
||||
div.revslider_block .slider_edit_button {
|
||||
float:right;
|
||||
}
|
||||
|
||||
[data-type="themepunch/revslider"] .editor-block-list__block-edit:before{
|
||||
outline: 1px solid rgba(145,151,162,.25)!important;
|
||||
}
|
||||
|
||||
.editor-block-list-item-themepunch-revslider svg,
|
||||
.components-panel__body.edit-post-block-sidebar__panel svg.dashicons-update
|
||||
{
|
||||
width:24px;
|
||||
height:24px;
|
||||
}
|
||||
|
||||
.editor-block-list-item-themepunch-revslider .editor-block-types-list__item-title{
|
||||
padding: 4px 1px 4px 1px;
|
||||
}
|
||||
Reference in new issue
Block a user