Example #1
0
<?php

if (!isset($id)) {
    $id = 'ngg-image-' . $index;
}
?>
<div id="<?php 
echo_h($id);
?>
" class="<?php 
echo_h($class);
?>
" <?php 
if (isset($image->style)) {
    echo $image->style;
}
?>
>
Example #2
0
			<?php 
    foreach ($size_list as $size) {
        ?>
				<option
					<?php 
        selected($size, $size);
        ?>
					value="<?php 
        echo_h($size);
        ?>
"><?php 
        echo_h($size);
        ?>
</option>
			<?php 
    }
    ?>
			</select>
		<?php 
} else {
    echo "<i>No default sizes present.</i>";
}
?>
			<p class="description"><?php 
echo_h($size_list_help);
?>
</p>
		</td>
	</tr>
</table>
Example #3
0
				<?php 
echo_h($mediarss_activated_no);
?>
			</label>
			<input
                id='mediarss_activated_no'
				type="radio"
				name="misc_settings[useMediaRSS]"
				value="0"
				<?php 
checked(FALSE, $mediarss_activated ? TRUE : FALSE);
?>
			/>
			<p class="description">
				<?php 
echo_h($mediarss_activated_help);
?>
			</p>
		</td>
	</tr>
    <tr>
        <td class='column1'>
            <?php 
echo $cache_label;
?>
        </td>
        <td>
            <input type='submit'
                   name="action_proxy"
                   class="button delete button-secondary"
                   data-proxy-value="cache"
Example #4
0
?>
' class='<?php 
print !empty($hidden) ? 'hidden' : '';
?>
'>
    <td>
        <label for='<?php 
echo esc_attr($display_type_name);
?>
_alt_view_link_text' class='tooltip'>
            <?php 
echo_h($alt_view_link_text_label);
?>
			<span>
				<?php 
echo_h($tooltip);
?>
			</span>
        </label>
    </td>
    <td>
        <input type='text'
               id='<?php 
echo esc_attr($display_type_name);
?>
_alt_view_link_text'
               name='<?php 
echo esc_attr($display_type_name);
?>
[alternative_view_link_text]'
               class='alt_view_link_text'
<tr>
	<td class="column1">
		<label for="watermark_image_url"
               title="<?php 
echo esc_attr($watermark_image_text);
?>
"
               class="tooltip">
			<?php 
echo_h($image_url_label);
?>
		</label>
	</td>
	<td>
		<input
			type="text"
			name="watermark_options[wmPath]"
			id="watermark_image_url"
			value="<?php 
echo esc_attr($watermark_image_url);
?>
"
		/>
	</td>
</tr>
<tr>
    <td>
        <label for='<?php 
echo esc_attr($display_type_name);
?>
_gallery_width'
               class="tooltip"
               title="<?php 
echo $gallery_dimensions_tooltip;
?>
">
            <?php 
echo_h($gallery_dimensions_label);
?>
        </label>
    </td>
    <td>
        <label for='<?php 
echo esc_attr($display_type_name);
?>
_gallery_width'>w</label>
        <input type='number'
               id='<?php 
echo esc_attr($display_type_name);
?>
_gallery_width'
               name='<?php 
echo esc_attr($display_type_name);
?>
[gallery_width]'
               class='nextgen_settings_field_width_and_height'
Example #7
0
?>
</span> <span class="nextgen_logo_sub"><?php 
echo_h('Gallery');
?>
</span></div>
			<ul>
            <?php 
foreach ($tabs as $id => $tab_params) {
    ?>
				<li>
					<a href='#<?php 
    echo esc_attr($id);
    ?>
'>
						<?php 
    echo_h($tab_params['title']);
    ?>
					</a>
				</li>
			<?php 
}
?>
			</ul>
			<?php 
reset($tabs);
foreach ($tabs as $id => $tab_params) {
    ?>
			<div class="main_menu_tab" id="<?php 
    echo esc_attr($id);
    ?>
"><?php 
Example #8
0
        ?>
	<?php 
        echo $msg;
        ?>
	<?php 
    }
    ?>
	<?php 
}
?>
	<?php 
if ($success and empty($errors)) {
    ?>
	<div class='success updated'>
		<p><?php 
    echo_h($success);
    ?>
</p>
	</div>
	<?php 
}
?>
	<form method="POST" action="<?php 
echo nextgen_esc_url($_SERVER['REQUEST_URI']);
?>
">
		<?php 
if (isset($form_header)) {
    ?>
		<?php 
    echo $form_header . "\n";
    $thumb_url = $storage->get_thumb_url($image);
    $thumb_size = $storage->get_thumb_dimensions($image);
    $width = $thumb_size['width'];
    $height = $thumb_size['height'];
    //$image_title = $image->description;
    $image_title = trim($image->description);
    if ($image_title == null) {
        $image_title = $image->alttext;
    }
    //if (strlen($image_title) >= 25)
    //$image_title = substr_replace($image_title, '...', 15, -10);
    if (strlen($image_title) >= 50) {
        $image_title = substr_replace($image_title, '...', 35, -10);
    }
    ?>
		<track>
			<title><![CDATA[<?php 
    echo_h($image_title);
    ?>
]]></title>
			<location><![CDATA[<?php 
    echo esc_url($image_url);
    ?>
]]></location>
		</track>
		<?php 
}
?>
	</trackList>
</playlist>
<tr>
    <td>
        <label for='<?php 
echo esc_attr($display_type_name);
?>
_image_dimensions'>
            <?php 
echo_h($dimensions_label);
?>
        </label>
    </td>
    <td>
        <label for='<?php 
echo esc_attr($display_type_name);
?>
_width'>w</label>
        <input type='number'
               id='<?php 
echo esc_attr($display_type_name);
?>
_width'
               name='<?php 
echo esc_attr($display_type_name);
?>
[width]'
               class='nextgen_settings_field_width_and_height'
               placeholder='<?php 
_e('Width');
?>
'
               min='1'
    <tr>
		<td colspan="2">
			<a href="#"
			   id="lightbox_library_advanced_toggle"
			   data-hidden_label="<?php 
echo esc_attr(_('(Show Advanced Settings)'));
?>
"
			   data-active_label="<?php 
echo esc_attr(_('(Hide Advanced Settings)'));
?>
"
               data-currently-hidden='true'>
                <?php 
echo_h(_("(Show Advanced Settings)"));
?>
			</a>
		</td>
	</tr>

    <?php 
foreach ($adv_fields as $name => $form) {
    ?>
        <tbody class="lightbox_library_advanced_settings hidden" id="lightbox_library_<?php 
    print $name;
    ?>
_advanced">
            <?php 
    echo $form;
    ?>
    ?>
			<media:thumbnail width="<?php 
    echo esc_attr($width);
    ?>
" height="<?php 
    echo esc_attr($height);
    ?>
" url="<?php 
    echo esc_url($thumb_url);
    ?>
"/>
			<?php 
    if (isset($tagnames)) {
        ?>
			<media:keywords><![CDATA[<?php 
        echo_h($tagnames);
        ?>
]]></media:keywords>
			<?php 
    }
    ?>
			<media:copyright><![CDATA[<?php 
    echo_h($copyright);
    ?>
]]></media:copyright>
		</item>
		<?php 
}
?>
	</channel>
</rss>
Example #13
0
		<td colspan="2">
			<a
				id="watermark_customization"
				href="#"
				class="nextgen_advanced_toggle_link"
				hidden_label="<?php 
echo esc_attr($hidden_label);
?>
"
				active_label="<?php 
echo esc_attr($active_label);
?>
"
			>
			<?php 
echo_h($hidden_label);
?>
			</a>
		</td>
	</tr>
	<?php 
foreach ($watermark_fields as $source_name => $fields) {
    ?>
	<tbody class="hidden" id="watermark_<?php 
    echo esc_attr($source_name);
    ?>
_source">
		<?php 
    echo $fields;
    ?>
	</tbody>
Example #14
0
				</label>
				<input
					id="max_related_images"
					type="text"
					name="image_options[maxImages]"
					value="<?php 
echo esc_attr($max_related_images);
?>
"
				/>
			</td>
		</tr>
		<tr>
			<td>
				<label for="related_images_heading">
					<?php 
echo_h($related_images_heading_label);
?>
				</label>
			</td>
			<td>
				<input id="related_images_heading" type="text" name="image_options[relatedHeading]"
							 value="<?php 
echo esc_attr($related_images_heading);
?>
"/>
			</td>
		</tr>
	</tbody>
</table>
            <select name='<?php 
echo esc_attr($display_type_name);
?>
[template]'
                    id='<?php 
echo esc_attr($display_type_name);
?>
_template>'
                    class='ngg_thumbnail_template ngg_settings_template'>
                <option value=''>&nbsp;</option>
                <?php 
foreach ($templates as $file => $label) {
    ?>
                    <option value="<?php 
    echo $file;
    ?>
" <?php 
    selected($chosen_file, $file, TRUE);
    ?>
><?php 
    echo_h($label);
    ?>
</option>
                <?php 
}
?>
            </select>
        </div>
    </td>
</tr>
Example #16
0
?>
	<!-- Thumbnails -->
	<?php 
for ($i = 0; $i < count($images); $i++) {
    $image = $images[$i];
    $thumb_size = $storage->get_image_dimensions($image, $thumbnail_size_name);
    $style = isset($image->style) ? $image->style : null;
    if (isset($image->hidden) && $image->hidden) {
        $style = 'style="display: none;"';
    } else {
        $style = null;
    }
    $this->start_element('nextgen_gallery.image_panel', 'item', $image);
    ?>
			<div id="<?php 
    echo_h('ngg-image-' . $i);
    ?>
" class="ngg-gallery-thumbnail-box" <?php 
    if ($style) {
        echo $style;
    }
    ?>
>
				<?php 
    $this->start_element('nextgen_gallery.image', 'item', $image);
    ?>
        <div class="ngg-gallery-thumbnail">
            <a href="<?php 
    echo esc_attr($storage->get_image_url($image, 'full', TRUE));
    ?>
"
Example #17
0
    </td>
    <td>
		<select class="ngg_alternative_view" name='<?php 
echo esc_attr($display_type_name);
?>
[alternative_view]'>
			<option value="0" <?php 
echo selected(0, $alternative_view);
?>
>None</option>
			<?php 
foreach ($altviews as $altview_name => $altview_properties) {
    ?>
			<option value="<?php 
    echo esc_attr($altview_name);
    ?>
" <?php 
    echo selected($altview_name, $alternative_view);
    ?>
>
				<?php 
    echo_h($altview_properties['title']);
    ?>
			</option>
			<?php 
}
?>
		</select>
    </td>
</tr>
Example #18
0
><?php 
    echo_h($i);
    ?>
</option>
            <?php 
}
?>
		</select>px
	</td>
</tr>

<tr>
	<td class="align-to-top">
		<label for="font_color">
			<?php 
echo_h($font_color_label);
?>
		</label>
	</td>
	<td>
        <input type='text'
               id='font_color'
               name='watermark_options[wmColor]'
               class='nextgen_settings_field_colorpicker'
               value='<?php 
print esc_attr($font_color);
?>
'
               data-default-color='<?php 
print esc_attr($font_color);
?>
Example #19
0
    <tr>
		<td>
			<a href="#"
			   id="lightbox_library_advanced_toggle"
			   data-hidden_label="<?php 
echo esc_attr(__('(Show Advanced Settings)', 'nggallery'));
?>
"
			   data-active_label="<?php 
echo esc_attr(__('(Hide Advanced Settings)', 'nggallery'));
?>
"
               data-currently-hidden='true'>
                <?php 
echo_h(__("(Show Advanced Settings)", 'nggallery'));
?>
			</a>
		</td>
        <td>&nbsp;</td>
	</tr>

    <?php 
foreach ($adv_fields as $name => $form) {
    ?>
        <tbody class="lightbox_library_advanced_settings hidden" id="lightbox_library_<?php 
    print $name;
    ?>
_advanced">
            <?php 
    echo $form;
Example #20
0
<h1>Default Gallery Type Template</h1>
<p>
	This is the default gallery type template, located in:<br/>
	<b><?php 
echo_h(__FILE__);
?>
</b>.
</p>
<p>
	If you're seeing this, it's because the gallery type you selected has not
	provided a template of it's own.
</p>
Example #21
0
echo_h($anchor);
?>
').nggShowSlideshow({
			id: '<?php 
echo_h($displayed_gallery_id);
?>
',
			fx: '<?php 
echo_h($cycle_effect);
?>
',
			width: <?php 
echo_h($gallery_width);
?>
,
			height: <?php 
echo_h($gallery_height);
?>
,
			domain: '<?php 
echo_h(trailingslashit(home_url()));
?>
',
			timeout: <?php 
echo_h(intval($cycle_interval) * 1000);
?>
		});
	});
</script>
<?php 
$this->end_element();
<tr>
    <td>
        <label for='<?php 
echo esc_attr($display_type_name);
?>
_quality'>
            <?php 
echo_h($quality_label);
?>
        </label>
    </td>
    <td>
        <input type='number'
               id='<?php 
echo esc_attr($display_type_name);
?>
_quality'
               name='<?php 
echo esc_attr($display_type_name);
?>
[quality]'
               class='ngg_singlepic_quality'
               placeholder='quality %'
               min='1'
               max='100'
               value='<?php 
echo esc_attr($quality);
?>
'>
    </td>
</tr>
Example #23
0
<h3 class="accordion_tab" id="<?php 
echo esc_attr($id);
?>
"><a href="#"><?php 
echo_h($title);
?>
</a></h3>
<div id="<?php 
echo esc_attr($id);
?>
_content">
	<?php 
echo $content;
?>
</div>
Example #24
0
<div class="entity_errors">
	<p>Please correct the following:</p>
	<ul>
		<?php 
foreach ($entity->get_errors() as $property => $errors) {
    ?>
			<?php 
    foreach ($errors as $error) {
        ?>
				<li><?php 
        echo_h($error);
        ?>
</li>
			<?php 
    }
    ?>
		<?php 
}
?>
	</ul>
</div>
<tr>
    <td>
        <label for='<?php 
echo esc_attr($display_type_name);
?>
_link'>
            <?php 
echo_h($link_label);
?>
        </label>
    </td>
    <td>
        <input type='text'
               id='<?php 
echo esc_attr($display_type_name);
?>
_link'
               name='<?php 
echo esc_attr($display_type_name);
?>
[link]'
               class='ngg_singlepic_link'
               placeholder='http://...'
               value='<?php 
echo esc_attr($link);
?>
'>
    </td>
</tr>
Example #26
0
<html>
    <head>
        <title>Error 404: <?php 
echo_h($message);
?>
</title>
    </head>
    <body>
        <h1>Error 404: <?php 
echo_h($message);
?>
</h1>
        <p>We're sorry, but the page you've requested cannot be found.</p>
    </body>
</html>
            style="width: 400px"
            id="<?php 
echo esc_attr($display_type_name);
?>
_gallery_display_type"
            name="<?php 
echo esc_attr($display_type_name);
?>
[gallery_display_type]">
            <?php 
foreach ($display_types as $display_type) {
    ?>
            <option
                value="<?php 
    echo esc_attr($display_type->name);
    ?>
"
                <?php 
    selected($display_type->name, $gallery_display_type);
    ?>
>
                <?php 
    echo_h($display_type->title);
    ?>
            </option>
            <?php 
}
?>
        </select>
    </td>
</tr>
<p class="<?php 
echo esc_attr($css_class);
?>
">
	<?php 
echo_h($no_display_type_selected);
?>
</p>
<tr>
    <td>
        <label class="tooltip"
               for="<?php 
echo esc_attr($display_type_name);
?>
_galleries_per_page"
               title="<?php 
echo_h($galleries_per_page_help);
?>
">
            <?php 
echo_h($galleries_per_page_label);
?>
        </label>
    </td>
    <td>
        <input
            id="<?php 
echo esc_attr($display_type_name);
?>
_galleries_per_page"
            name="<?php 
echo esc_attr($display_type_name);
?>
[galleries_per_page]"
            type="number"
            min="0"
            value="<?php 
echo esc_attr($galleries_per_page);
?>
Example #30
0
                <?php 
echo_h($galleries_in_feeds_no);
?>
            </label>
            <input
                id='galleries_in_feeds_no'
                type="radio"
                name="misc_settings[galleries_in_feeds]"
                value="0"
                <?php 
checked(FALSE, $galleries_in_feeds ? TRUE : FALSE);
?>
                />
            <p class="description">
                <?php 
echo_h($galleries_in_feeds_help);
?>
            </p>
        </td>
    </tr>
    <tr>
        <td class='column1'>
            <?php 
echo $cache_label;
?>
        </td>
        <td>
            <input type='submit'
                   name="action_proxy"
                   class="button delete button-secondary"
                   data-proxy-value="cache"