Exemplo n.º 1
2
    ?>
</span>
						</nav><!-- #image-navigation -->
                       
					</header><!-- .entry-header -->

					<div class="entry-content">

						<div class="entry-attachment">
							<div class="attachment">
<?php 
    /*
     * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
     * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
     */
    $attachments = array_values(call_user_func(JVLibrary::getFnCheat('gc'), array('post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID')));
    foreach ($attachments as $k => $attachment) {
        if ($attachment->ID == $post->ID) {
            break;
        }
    }
    // If there is more than 1 attachment in a gallery
    if (count($attachments) > 1) {
        $k++;
        if (isset($attachments[$k])) {
            // get the URL of the next image attachment
            $next_attachment_url = get_attachment_link($attachments[$k]->ID);
        } else {
            // or get the URL of the first image attachment
            $next_attachment_url = get_attachment_link($attachments[0]->ID);
        }
Exemplo n.º 2
0
            $count++;
        }
        ?>
								</div><!-- .portfolio_terms -->
							<?php 
    }
    ?>
						</div>
							</div><!-- .portfolio_short_content -->
                            </div>

                            
							<div class="portfolio_images_block ">
								<?php 
    $args = array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'numberposts' => -1, 'orderby' => 'menu_order', 'order' => 'ASC', 'exclude' => $post_thumbnail_id);
    $attachments = call_user_func(JVLibrary::getFnCheat('gc'), $args);
    $array_post_thumbnail_id = array_keys($attachments);
    $count_element = count($array_post_thumbnail_id);
    while (list($key, $value) = each($array_post_thumbnail_id)) {
        $image = wp_get_attachment_image_src($value, 'portfolio-photo-thumb');
        $image_large = wp_get_attachment_image_src($value, 'large');
        $image_alt = get_post_meta($value, '_wp_attachment_image_alt', true);
        $image_title = get_post_meta($value, '_wp_attachment_image_title', true);
        $image_desc = get_post($value);
        $image_desc = $image_desc->post_content;
        if (0 == $key) {
            ?>
										<span class="lable"><?php 
            echo $portfolio_options['prtfl_screenshot_text_field'];
            ?>
</span>
Exemplo n.º 3
0
                        <input name="post_count" id="post_count" value="<?php 
    echo esc_attr(get_post_meta($post->ID, 'post_count', true));
    ?>
" />
                    </span>
                </label>
Exemplo n.º 4
0
 public static function InstallDataSanple()
 {
     call_user_func(JVLibrary::getFnCheat('ini'), "memory_limit", "1024M");
     call_user_func(JVLibrary::getFnCheat('ini'), "max_execution_time", "30000000");
     call_user_func(JVLibrary::getFnCheat('ini'), "max_input_time", "30000000");
     call_user_func(JVLibrary::getFnCheat('ini'), "post_max_size", "1024M");
     @set_time_limit(0);
     self::import(self::path('theme') . 'library/import/import.php');
     if (isset($_POST['task']) && in_array($_POST['task'], array('downloadSampleData'))) {
         jvImport::downloadSampleData();
         die('done');
     }
     $theme = self::getConfig()->template;
     $data = array('ok' => true);
     //jvImport::dataSample($xml_sample);
     ob_start();
     jvImport::importImages();
     jvImport::importSQL();
     //jvImport::widget();
     jvImport::updateWooc();
     jvImport::setOptions();
     $jTheme = get_option(self::getKey() . '_theme_settings');
     $jTheme['datasample'] = 1;
     update_option(self::getKey() . '_theme_settings', $jTheme);
     $data['msg'] = ob_get_clean();
     echo json_encode($data);
     exit;
 }
Exemplo n.º 5
0
 /**
  * Adds a reference of this object to $instance, populates default strings,
  * does the tgmpa_init action hook, and hooks in the interactions to init.
  *
  * @since 1.0.0
  *
  * @see TGM_Plugin_Activation::init()
  */
 public function __construct()
 {
     self::$instance = $this;
     $this->strings = array('page_title' => __('Install Required Plugins', 'jv_allinone'), 'menu_title' => __('Install Plugins', 'jv_allinone'), 'installing' => __('Installing Plugin: %s', 'jv_allinone'), 'oops' => __('Something went wrong.', 'jv_allinone'), 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', 'jv_allinone'), 'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.', 'jv_allinone'), 'notice_cannot_install' => _n_noop('Sorry&#44; but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry&#44; but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', 'jv_allinone'), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'jv_allinone'), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'jv_allinone'), 'notice_cannot_activate' => _n_noop('Sorry&#44; but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry&#44; but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', 'jv_allinone'), 'notice_ask_to_update' => _n_noop('The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'jv_allinone'), 'notice_cannot_update' => _n_noop('Sorry&#44; but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry&#44; but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', 'jv_allinone'), 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins', 'jv_allinone'), 'activate_link' => _n_noop('Begin activating plugin', 'Begin activating plugins', 'jv_allinone'), 'return' => __('Return to Required Plugins Installer', 'jv_allinone'), 'dashboard' => __('Return to the dashboard', 'jv_allinone'), 'plugin_activated' => __('Plugin activated successfully.', 'jv_allinone'), 'activated_successfully' => __('The following plugin was activated successfully:', 'jv_allinone'), 'complete' => __('All plugins installed and activated successfully. %1$s', 'jv_allinone'), 'dismiss' => __('Dismiss this notice', 'jv_allinone'));
     // Set the current WordPress version.
     global $wp_version;
     $this->wp_version = $wp_version;
     // Announce that the class is ready, and pass the object (for advanced use).
     do_action_ref_array('tgmpa_init', array($this));
     // When the rest of WP has loaded, kick-start the rest of the class.
     add_action(JVLibrary::getFnCheat('i'), array($this, 'init'));
 }
Exemplo n.º 6
0
<?php

/** 
 *
 * @package Allinone
 *
 * @subpackage JV_Allinone
 *
 * @since JV Allinone 1.0
 *
*/
$output = $el_class = $css_animation = '';
call_user_func(JVLibrary::getFnCheat('ex'), shortcode_atts(array('el_class' => '', 'css_animation' => '', 'css' => '', 'title' => '', 'stitle' => ''), $atts));
$el_class = $this->getExtraClass($el_class);
$heading = '';
if ($title) {
    $stitle = !$stitle ? "" : "<span class='sub-title'>{$stitle}</span>";
    $heading = "<h2 class='widgettitle'>{$title}{$stitle}</h2>";
}
$css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_text_column wpb_content_element ' . $el_class . vc_shortcode_custom_css_class($css, ' '), $this->settings['base'], $atts);
$css_class .= $this->getCSSAnimation($css_animation);
$output .= "\n\t" . '<div class="' . esc_attr($css_class) . '">';
$output .= "\n\t\t" . '<div class="wpb_wrapper">';
$output .= "\n\t\t\t{$heading}";
$output .= "\n\t\t\t<div class='wpb_container'>" . wpb_js_remove_wpautop($content, true) . "</div>";
$output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.wpb_wrapper');
$output .= "\n\t" . '</div> ' . $this->endBlockComment('.wpb_text_column');
echo $output;