/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/plugins
/custom-twitter-feeds
/inc
/CtfFeed.php
$ctf_header_html .= '</div>';
$ctf_header_html .= '</a>';
$ctf_header_html .= '</div>';
}
return $ctf_header_html;
}
/**
* outputs the html for a set of tweets to be used in the feed
*
* @param int $is_pagination 1 or 0, used to differentiate between the first set and subsequent tweet sets
*
* @return string $tweet_html
*/
public function getTweetSetHtml( $is_pagination = 0 ){
$feed_id = $this->feedID();
$tweet_set = isset( $this->tweet_set['statuses'] ) ? $this->tweet_set['statuses'] : $this->tweet_set;
$options = ctf_get_database_settings();
$len = min( $this->feed_options['num'] + $is_pagination, count( $tweet_set ) );
$i = $is_pagination; // starts at index "1" to offset duplicate tweet
$feed_options = $this->feed_options;
$tweet_html = $this->feed_html;
$feed_id = $this->is_legacy ? $this->unique_legacy_id : $this->feed_id;
$ctf_data_needed = $this->num_tweets_needed;
$ctf_feed_classes = CTF_Parse::get_feed_classes($feed_options, $this->check_for_duplicates, $feed_id);
$ctf_enable_intents = ((bool)$options['disableintents'] === false) && ctf_show('actions', $feed_options) ? ' data-ctfintents="1" ' : '';
$ctf_main_atts = CTF_Display_Elements::get_feed_container_data_attributes( $feed_options, $feed_id, $this->feedID() ) . $ctf_enable_intents;
if (!$is_pagination) {
if ( empty( $this->was_error_or_empty( $this->tweet_set ) ) ) {
$this->error_report->process_error( 'no_tweets_found_cache' );
}
ob_start();
include ctf_get_feed_template_part('feed', $feed_options);
$tweet_html .= ob_get_contents();
ob_get_clean();
}
Arguments
"count(): Parameter must be an array or an object that implements Countable"
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/plugins
/custom-twitter-feeds
/inc
/CtfFeed.php
$ctf_header_html .= '</div>';
$ctf_header_html .= '</a>';
$ctf_header_html .= '</div>';
}
return $ctf_header_html;
}
/**
* outputs the html for a set of tweets to be used in the feed
*
* @param int $is_pagination 1 or 0, used to differentiate between the first set and subsequent tweet sets
*
* @return string $tweet_html
*/
public function getTweetSetHtml( $is_pagination = 0 ){
$feed_id = $this->feedID();
$tweet_set = isset( $this->tweet_set['statuses'] ) ? $this->tweet_set['statuses'] : $this->tweet_set;
$options = ctf_get_database_settings();
$len = min( $this->feed_options['num'] + $is_pagination, count( $tweet_set ) );
$i = $is_pagination; // starts at index "1" to offset duplicate tweet
$feed_options = $this->feed_options;
$tweet_html = $this->feed_html;
$feed_id = $this->is_legacy ? $this->unique_legacy_id : $this->feed_id;
$ctf_data_needed = $this->num_tweets_needed;
$ctf_feed_classes = CTF_Parse::get_feed_classes($feed_options, $this->check_for_duplicates, $feed_id);
$ctf_enable_intents = ((bool)$options['disableintents'] === false) && ctf_show('actions', $feed_options) ? ' data-ctfintents="1" ' : '';
$ctf_main_atts = CTF_Display_Elements::get_feed_container_data_attributes( $feed_options, $feed_id, $this->feedID() ) . $ctf_enable_intents;
if (!$is_pagination) {
if ( empty( $this->was_error_or_empty( $this->tweet_set ) ) ) {
$this->error_report->process_error( 'no_tweets_found_cache' );
}
ob_start();
include ctf_get_feed_template_part('feed', $feed_options);
$tweet_html .= ob_get_contents();
ob_get_clean();
}
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/plugins
/custom-twitter-feeds
/custom-twitter-feed.php
*
* @param $atts array shortcode arguments
*
* @return string
*/
function ctf_init( $atts, $preview_settings = false ) {
wp_enqueue_script( 'ctf_scripts' );
$twitter_feed = TwitterFeed\CtfFeed::init( $atts, null, 0, array(), 1, $preview_settings);
if ( isset( $twitter_feed->feed_options['feederror'] ) && ! empty( $twitter_feed->feed_options['feederror'] ) ) {
return "<span id='ctf-no-id'>" . sprintf( __( 'No feed found with the ID %1$s. Go to the %2$sAll Feeds page%3$s and select an ID from an existing feed.', 'custom-twitter-feeds' ), esc_html( $twitter_feed->feed_options['feed'] ), '<a href="' . esc_url( admin_url( 'admin.php?page=ctf-feed-builder' ) ) . '">', '</a>' ) . '</span><br /><br />';
} else {
// if there is an error, display the error html, otherwise the feed
if ( ! $twitter_feed->tweet_set || ($twitter_feed->missing_credentials && ! CTF_DOING_SMASH_TWITTER) || ! isset( $twitter_feed->tweet_set[0]['created_at'] ) ) {
if ( ! empty( $twitter_feed->tweet_set['errors'] ) ) {
$twitter_feed->maybeCacheTweets();
} else {
$twitter_feed->maybeCacheTweets(true);
}
$feed_html = '';
$feed_html .= $twitter_feed->getTweetSetHtml();
return $feed_html;
} else {
if ( ! $twitter_feed->feed_options['persistentcache'] ) {
$twitter_feed->maybeCacheTweets();
}
$feed_html = '';
$feed_html .= $twitter_feed->getTweetSetHtml();
return $feed_html;
}
}
}
add_shortcode( 'custom-twitter-feed', 'ctf_init' );
add_shortcode( 'custom-twitter-feeds', 'ctf_init' );
/**
* Called via ajax to get more posts after the "load more" button is clicked
*/
function ctf_get_more_posts() {
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-includes
/shortcodes.php
*
* Returning a non-false value from filter will short-circuit the
* shortcode generation process, returning that value instead.
*
* @since 4.7.0
* @since 6.5.0 The `$attr` parameter is always an array.
*
* @param false|string $output Short-circuit return value. Either false or the value to replace the shortcode with.
* @param string $tag Shortcode name.
* @param array $attr Shortcode attributes array, can be empty if the original arguments string cannot be parsed.
* @param array $m Regular expression match array.
*/
$return = apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m );
if ( false !== $return ) {
return $return;
}
$content = isset( $m[5] ) ? $m[5] : null;
$output = $m[1] . call_user_func( $shortcode_tags[ $tag ], $attr, $content, $tag ) . $m[6];
/**
* Filters the output created by a shortcode callback.
*
* @since 4.7.0
* @since 6.5.0 The `$attr` parameter is always an array.
*
* @param string $output Shortcode output.
* @param string $tag Shortcode name.
* @param array $attr Shortcode attributes array, can be empty if the original arguments string cannot be parsed.
* @param array $m Regular expression match array.
*/
return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );
}
/**
* Searches only inside HTML elements for shortcodes and process them.
*
* Any [ or ] characters remaining inside elements will be HTML encoded
* to prevent interference with shortcodes that are outside the elements.
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-includes
/shortcodes.php
// Find all registered tag names in $content.
preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches );
$tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] );
if ( empty( $tagnames ) ) {
return $content;
}
// Ensure this context is only added once if shortcodes are nested.
$has_filter = has_filter( 'wp_get_attachment_image_context', '_filter_do_shortcode_context' );
$filter_added = false;
if ( ! $has_filter ) {
$filter_added = add_filter( 'wp_get_attachment_image_context', '_filter_do_shortcode_context' );
}
$content = do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames );
$pattern = get_shortcode_regex( $tagnames );
$content = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $content );
// Always restore square braces so we don't break things like <!--[if IE ]>.
$content = unescape_invalid_shortcodes( $content );
// Only remove the filter if it was added in this scope.
if ( $filter_added ) {
remove_filter( 'wp_get_attachment_image_context', '_filter_do_shortcode_context' );
}
return $content;
}
/**
* Filter the `wp_get_attachment_image_context` hook during shortcode rendering.
*
* When wp_get_attachment_image() is called during shortcode rendering, we need to make clear
* that the context is a shortcode and not part of the theme's template rendering logic.
*
* @since 6.3.0
* @access private
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/plugins
/custom-twitter-feeds
/inc
/widget.php
function __construct() {
parent::__construct(
'custom-twitter-feeds-widget',
__( 'Custom Twitter Feeds', 'custom-twitter-feeds' ),
array( 'description' => __( 'Display your Twitter feed', 'custom-twitter-feeds' ), )
);
}
public function widget( $args, $instance ) {
$title = isset( $instance['title'] ) ? apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ) : '';
$content = isset( $instance['content'] ) ? strip_tags( $instance['content'] ) : '[custom-twitter-feeds]';
echo $args['before_widget'];
if ( ! empty( $title ) ) {
echo $args['before_title'] . esc_html( $title ) . $args['after_title'];
}
echo do_shortcode( $content );
echo $args['after_widget'];
}
public function form( $instance ) {
$title = isset( $instance['title'] ) ? $instance['title'] : '';
$content = isset ( $instance['content'] ) ? strip_tags( $instance['content'] ) : '[custom-twitter-feeds]';
?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:' ); ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
</p>
<textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'content' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'content' ) ); ?>" rows="16"><?php echo strip_tags( $content ); ?></textarea>
<?php
}
public function update( $new_instance, $old_instance ) {
$instance = array();
$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-includes
/widgets.php
/** This filter is documented in wp-includes/class-wp-widget.php */
$instance = apply_filters( 'widget_display_callback', $instance, $widget_obj, $args );
if ( false === $instance ) {
return;
}
/**
* Fires before rendering the requested widget.
*
* @since 3.0.0
*
* @param string $widget The widget's class name.
* @param array $instance The current widget instance's settings.
* @param array $args An array of the widget's sidebar arguments.
*/
do_action( 'the_widget', $widget, $instance, $args );
$widget_obj->_set( -1 );
$widget_obj->widget( $args, $instance );
}
/**
* Retrieves the widget ID base value.
*
* @since 2.8.0
*
* @param string $id Widget ID.
* @return string Widget ID base.
*/
function _get_widget_id_base( $id ) {
return preg_replace( '/-[0-9]+$/', '', $id );
}
/**
* Handles sidebars config after theme change.
*
* @access private
* @since 3.3.0
*
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/pagebuilder
/elements
/widget
/widget.php
} elseif ( ! empty( $widget_option ) ) {
$widget_slug = $widget_option;
}
if ( ! empty( $widget_slug ) && isset( $wp_widget_factory->widgets[ $widget_slug ] ) ) {
// Widget instance
$factory_instance = $wp_widget_factory->widgets[ $widget_slug ];
$widget_class = get_class( $factory_instance );
$widget_instance = new $widget_class( $factory_instance->id_base, $factory_instance->name, $factory_instance->widget_options );
// Get saved options
$saved_options = ! empty( $this->data['options'] ) ? $this->data['options'] : array();
// Widget settings
$settings_key = 'widget-' . $widget_instance->id_base;
$widget_settings = isset( $saved_options[$settings_key][0] ) ? $saved_options[$settings_key][0] : $saved_options[$settings_key];
// Render the widget
the_widget( $widget_slug, $widget_settings, array( 'widget_id' => 'znpb_widget' . $this->data['uid'] ) );
} elseif ( isset( $widget_slug ) && ZNB()->utility->isActiveEditor() ) {
// Widget doesn't exist!
printf( _x( '%s does not exists.', '%s stands for widget slug.', 'zn_framework' ), $widget_slug );
}
?>
</div>
<?php
}
}
?>
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/framework
/zion-builder
/inc
/ZionElement.php
}
/**
* Will check if the element has a render condition
*
* @return bool
*/
function canRender()
{
return true;
}
/**
* Will render the element
*/
function elementRender()
{
if ( $this->_can_render() ) {
$this->element();
}
}
/**
* Description
*
* @param string|bool $key
* @param string|bool $default
* @return mixed
*/
function opt( $key = false, $default = false )
{
return ( ( isset( $this->data[ 'options' ][ $key ] ) && '' != $this->data[ 'options' ][ $key ] ) ? $this->data[ 'options' ][ $key ] : $default);
}
/**
* Retrieve the element's options
* @return array
*/
function options()
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/framework
/zion-builder
/inc
/ZionPageBuilderFrontend.php
if ( $ishidden ) {
$canRender = false;
}
}
// Don't proceed if we can't render this element
if ( ! $canRender ) {
return false;
}
// Perform an action that other can use to add extra content
do_action( 'znb:before_element_render', $elementInstance );
// Use the edit method if the element supports it and the editor is active
if ( $isActiveEditor && method_exists( $elementInstance, 'element_edit' ) ) {
// render active editor version of the element
$elementInstance->element_edit();
} else {
// Render element
$elementInstance->elementRender();
}
// Perform an action that other can use to add extra content
do_action( 'znb:after_element_render', $elementInstance );
}
/**
* Will add Edit/view page buttons to admin bar if pagebuilder is active on current page
* @param [type] $wp_admin_bar [description]
* @return [type] [description]
*/
function adminBarMenu( $wp_admin_bar ) {
if ( ! ZNB()->utility->allowedEdit() || ! ZNB()->utility->isPageBuilderEnabled() ) {
return false;
}
$post_id = ZNB()->utility->getPostID();
$args = array();
if ( ZNB()->utility->isActiveEditor() ) {
$args = array(
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/framework
/zion-builder
/inc
/ZionPageBuilderFrontend.php
}
public function disableActiveEditor() {
return false;
}
/**
* @TODO: move to elements manager
* @param [type] $element [description]
* @param mixed $elements
* @return [type] [description]
*/
function renderElements( $elements = array() ) {
if ( ! is_array( $elements ) ) {
return;
}
foreach ( $elements as $element ) {
$this->renderSingleElement( $element );
}
}
function getElementWithData( $elementData ) {
// Set-up UID if not provided. The UID is not provided when the element is cloned for example
if ( ! isset( $elementData[ 'uid' ] ) ) {
$elementData[ 'uid' ] = zn_uid( 'eluid' );
}
if ( ! empty( $this->instantiated_modules[ $elementData[ 'uid' ] ] ) ) {
$elementInstance = $this->instantiated_modules[ $elementData[ 'uid' ] ];
} else {
// Create a new instance of the element
// get an instance of the element
$elementInstance = $this->getElementInstance( $elementData );
}
return $elementInstance;
}
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/pagebuilder
/elements
/column
/column.php
$stickyCol_options = array(
'distance' => $this->opt('sticky_col_distance', '100'),
'offset' => $this->opt('sticky_col_offset', '0'),
);
?>
<div class="<?php echo implode(' ', $classes); ?> znColumnElement" <?php echo '' . $attributes; ?> id="<?php echo esc_attr( $element_id ); ?>" >
<?php
if ( 'yes' == $this->opt('sticky_col', '') && 'yes' != $this->opt('obj_parallax_enable', '') ) {
echo '<div class="znColumnElement-stickyCol" data-sticky-col=\'' . json_encode($stickyCol_options) . '\'>';
}
?>
<div class="znColumnElement-innerWrapper-<?php echo esc_attr( $uid ); ?> znColumnElement-innerWrapper znColumnElement-innerWrapper--valign-<?php echo esc_attr( $this->opt('valign', 'top') ); ?> znColumnElement-innerWrapper--halign-<?php echo esc_attr( $this->opt('halign', 'left') ); ?> <?php echo esc_attr( $innerWrapper_class ); ?>" <?php echo $innerWrapper_attributes; ?>>
<?php echo ZNB()->utility->getColumnsContainer(array(
'cssClasses' => 'znColumnElement-innerContent',
)); ?>
<?php ZNB()->frontend->renderElements( $this->data['content'] ); ?>
</div>
</div>
<?php
if ( 'yes' == $this->opt('sticky_col', '') && 'yes' != $this->opt('obj_parallax_enable', '') ) {
echo '</div>';
}
?>
</div>
<?php
}
}
?>
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/framework
/zion-builder
/inc
/ZionElement.php
}
/**
* Will check if the element has a render condition
*
* @return bool
*/
function canRender()
{
return true;
}
/**
* Will render the element
*/
function elementRender()
{
if ( $this->_can_render() ) {
$this->element();
}
}
/**
* Description
*
* @param string|bool $key
* @param string|bool $default
* @return mixed
*/
function opt( $key = false, $default = false )
{
return ( ( isset( $this->data[ 'options' ][ $key ] ) && '' != $this->data[ 'options' ][ $key ] ) ? $this->data[ 'options' ][ $key ] : $default);
}
/**
* Retrieve the element's options
* @return array
*/
function options()
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/framework
/zion-builder
/inc
/ZionPageBuilderFrontend.php
if ( $ishidden ) {
$canRender = false;
}
}
// Don't proceed if we can't render this element
if ( ! $canRender ) {
return false;
}
// Perform an action that other can use to add extra content
do_action( 'znb:before_element_render', $elementInstance );
// Use the edit method if the element supports it and the editor is active
if ( $isActiveEditor && method_exists( $elementInstance, 'element_edit' ) ) {
// render active editor version of the element
$elementInstance->element_edit();
} else {
// Render element
$elementInstance->elementRender();
}
// Perform an action that other can use to add extra content
do_action( 'znb:after_element_render', $elementInstance );
}
/**
* Will add Edit/view page buttons to admin bar if pagebuilder is active on current page
* @param [type] $wp_admin_bar [description]
* @return [type] [description]
*/
function adminBarMenu( $wp_admin_bar ) {
if ( ! ZNB()->utility->allowedEdit() || ! ZNB()->utility->isPageBuilderEnabled() ) {
return false;
}
$post_id = ZNB()->utility->getPostID();
$args = array();
if ( ZNB()->utility->isActiveEditor() ) {
$args = array(
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/framework
/zion-builder
/inc
/ZionPageBuilderFrontend.php
}
public function disableActiveEditor() {
return false;
}
/**
* @TODO: move to elements manager
* @param [type] $element [description]
* @param mixed $elements
* @return [type] [description]
*/
function renderElements( $elements = array() ) {
if ( ! is_array( $elements ) ) {
return;
}
foreach ( $elements as $element ) {
$this->renderSingleElement( $element );
}
}
function getElementWithData( $elementData ) {
// Set-up UID if not provided. The UID is not provided when the element is cloned for example
if ( ! isset( $elementData[ 'uid' ] ) ) {
$elementData[ 'uid' ] = zn_uid( 'eluid' );
}
if ( ! empty( $this->instantiated_modules[ $elementData[ 'uid' ] ] ) ) {
$elementInstance = $this->instantiated_modules[ $elementData[ 'uid' ] ];
} else {
// Create a new instance of the element
// get an instance of the element
$elementInstance = $this->getElementInstance( $elementData );
}
return $elementInstance;
}
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/pagebuilder
/elements
/section
/section.php
'source_overlay_color' => $this->opt('source_overlay_color'),
'source_overlay_opacity' => $this->opt('source_overlay_opacity'),
'source_overlay_color_gradient' => $this->opt('source_overlay_color_gradient'),
'source_overlay_color_gradient_opac' => $this->opt('source_overlay_color_gradient_opac'),
'source_overlay_gloss' => $this->opt('source_overlay_gloss',''),
'enable_parallax' => $this->opt('enable_parallax'),
'source_overlay_custom_css' => $this->opt('source_overlay_custom_css',''),
'mobile_play' => $this->opt('mobile_play', 'no'),
) );
?>
<div class="zn_section_size <?php echo esc_attr( $this->opt('size','container') );?> zn-section-height--<?php echo esc_attr( $this->opt('sec_height','auto') );?> zn-section-content_algn--<?php echo esc_attr( $this->opt('valign','top') );?> ">
<?php echo ZNB()->utility->getElementContainer(array(
'cssClasses' => 'row '. $this->opt('gutter_size','')
)); ?>
<?php
ZNB()->frontend->renderElements( $this->data['content'] );
?>
</div>
</div>
<?php
// top mask
if( $this->opt('section_topmasks','none') != 'none' ){
zn_bottommask_markup(
$this->opt('section_topmasks','none'),
$this->opt('topmasks_bg',''),
'top',
$this->opt('top_mask_bg_image'),
$this->opt('top_mask_bg_height')
);
}
// bottom mask
if($bottom_mask != 'none'){
zn_bottommask_markup(
$bottom_mask,
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/framework
/zion-builder
/inc
/ZionElement.php
}
/**
* Will check if the element has a render condition
*
* @return bool
*/
function canRender()
{
return true;
}
/**
* Will render the element
*/
function elementRender()
{
if ( $this->_can_render() ) {
$this->element();
}
}
/**
* Description
*
* @param string|bool $key
* @param string|bool $default
* @return mixed
*/
function opt( $key = false, $default = false )
{
return ( ( isset( $this->data[ 'options' ][ $key ] ) && '' != $this->data[ 'options' ][ $key ] ) ? $this->data[ 'options' ][ $key ] : $default);
}
/**
* Retrieve the element's options
* @return array
*/
function options()
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/framework
/zion-builder
/inc
/ZionPageBuilderFrontend.php
if ( $ishidden ) {
$canRender = false;
}
}
// Don't proceed if we can't render this element
if ( ! $canRender ) {
return false;
}
// Perform an action that other can use to add extra content
do_action( 'znb:before_element_render', $elementInstance );
// Use the edit method if the element supports it and the editor is active
if ( $isActiveEditor && method_exists( $elementInstance, 'element_edit' ) ) {
// render active editor version of the element
$elementInstance->element_edit();
} else {
// Render element
$elementInstance->elementRender();
}
// Perform an action that other can use to add extra content
do_action( 'znb:after_element_render', $elementInstance );
}
/**
* Will add Edit/view page buttons to admin bar if pagebuilder is active on current page
* @param [type] $wp_admin_bar [description]
* @return [type] [description]
*/
function adminBarMenu( $wp_admin_bar ) {
if ( ! ZNB()->utility->allowedEdit() || ! ZNB()->utility->isPageBuilderEnabled() ) {
return false;
}
$post_id = ZNB()->utility->getPostID();
$args = array();
if ( ZNB()->utility->isActiveEditor() ) {
$args = array(
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/framework
/zion-builder
/inc
/ZionPageBuilderFrontend.php
}
public function disableActiveEditor() {
return false;
}
/**
* @TODO: move to elements manager
* @param [type] $element [description]
* @param mixed $elements
* @return [type] [description]
*/
function renderElements( $elements = array() ) {
if ( ! is_array( $elements ) ) {
return;
}
foreach ( $elements as $element ) {
$this->renderSingleElement( $element );
}
}
function getElementWithData( $elementData ) {
// Set-up UID if not provided. The UID is not provided when the element is cloned for example
if ( ! isset( $elementData[ 'uid' ] ) ) {
$elementData[ 'uid' ] = zn_uid( 'eluid' );
}
if ( ! empty( $this->instantiated_modules[ $elementData[ 'uid' ] ] ) ) {
$elementInstance = $this->instantiated_modules[ $elementData[ 'uid' ] ];
} else {
// Create a new instance of the element
// get an instance of the element
$elementInstance = $this->getElementInstance( $elementData );
}
return $elementInstance;
}
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/framework
/zion-builder
/inc
/ZionPageBuilderFrontend.php
echo '<div class="zn_pb_wrapper clearfix zn_sortable_content" data-droplevel="0">';
echo do_shortcode( $html );
echo '</div>';
}
/**
* @TODO: move to elements manager
* @param [type] $element [description]
* @param mixed $elements
* @return [type] [description]
*/
function renderContent( $elements ) {
if ( ! empty( $elements[ 'has_multiple' ] ) ) {
unset( $elements[ 'has_multiple' ] );
foreach ( $elements as $key => $value ) {
$this->renderElements( $value );
}
} else {
$this->renderElements( $elements );
}
}
/**
* Renders an area without displaying the content edit bar
* @param array $elements The array containing elements that needs to be displayed
* @param bool|int $area_id Area ID or false in case no area ID is passed
* @return string HTML data for the requested area
*/
function renderUneditableContent( $elements, $area_id = false ) {
$pbstate = ZNB()->utility->isActiveEditor();
$html = '';
if ( $pbstate ) {
// Set editor to disabled
add_filter( 'znb:isActiveEditor', array( $this, 'disableActiveEditor' ) );
remove_action( 'znb:before_element_render', array( ZNB()->builder, 'beforeElement' ) );
remove_action( 'znb:after_element_render', array( ZNB()->builder, 'afterElement' ) );
// Show an ediy smart area link
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/framework
/zion-builder
/inc
/ZionPageBuilderFrontend.php
return $element_data;
}
/**
* @TODO: move to elements manager
* @param [type] $element [description]
* @param mixed $area
* @return [type] [description]
*/
function renderContentByArea( $area = 'main_area' ) {
// The area should have already been configured
if ( empty( $this->_registered_layout_areas[ $area ] ) ) {
return;
}
// Render the layout.
ob_start();
$this->renderContent( $this->_registered_layout_areas[ $area ][ 'layout_data' ] );
$html = ob_get_clean();
$html = apply_filters( 'znpb_area_content', $html, $area );
echo '<div class="zn_pb_wrapper clearfix zn_sortable_content" data-droplevel="0">';
echo do_shortcode( $html );
echo '</div>';
}
/**
* @TODO: move to elements manager
* @param [type] $element [description]
* @param mixed $elements
* @return [type] [description]
*/
function renderContent( $elements ) {
if ( ! empty( $elements[ 'has_multiple' ] ) ) {
unset( $elements[ 'has_multiple' ] );
foreach ( $elements as $key => $value ) {
$this->renderElements( $value );
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-content
/themes
/kallyas
/framework
/zion-builder
/inc
/index-page-builder.php
<?php
get_header();
// We don't need to perform the loop as it will be made by the archive elements
if( is_archive() || is_home() ){
ZNB()->frontend->renderContentByArea();
}
else{
while ( have_posts() ) :
the_post();
ZNB()->frontend->renderContentByArea();
endwhile;
}
get_footer();
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-includes
/template-loader.php
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
Arguments
"/home/usr-talent/web/techtalent.dev.thegecocompany.com/public_html/wp-content/themes/kallyas/framework/zion-builder/inc/index-page-builder.php"
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
Arguments
"/home/usr-talent/web/techtalent.dev.thegecocompany.com/public_html/wp-includes/template-loader.php"
/home
/usr-talent
/web
/techtalent.dev.thegecocompany.com
/public_html
/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
Arguments
"/home/usr-talent/web/techtalent.dev.thegecocompany.com/public_html/wp-blog-header.php"