Пример #1
0
        echo $title;
        ?>
</label>
			 <?php 
        echo empty($help) ? '' : '<p class="op-micro-copy">' . $help . '</p>';
        ?>
			<div class="font-chooser cf">
			<?php 
        $opt_array = array('default_typography', 'font_elements', $element);
        $opts = op_get_option($opt_array);
        echo op_font_size_dropdown($tmp_field . '[size]', op_default_option($opt_array, 'size'), $tmp_id . 'size');
        echo op_font_dropdown($tmp_field . '[font]', op_default_option($opt_array, 'font'), $tmp_id . 'font');
        echo op_font_style_dropdown($tmp_field . '[style]', op_default_option($opt_array, 'style'), $tmp_id . 'style');
        // echo "<div class='clear'></div>";
        op_color_picker($tmp_field . '[color]', op_default_option($opt_array, 'color'), $tmp_id . 'color');
        op_text_decoration_drop($tmp_field . '[text_decoration]', op_default_option($opt_array, 'text_decoration'), $tmp_id . '_text_decoration');
        ?>
				<a href="#reset" class="reset-link"><?php 
        _e('Reset', 'optimizepress');
        ?>
</a>
			</div>

		</li>
	<?php 
    }
    ?>
    </ul>
    <?php 
}
if (isset($typography_elements['color_elements'])) {
Пример #2
0
        $page_opts = op_default_page_option($page_opt_array);
        if (is_array($page_opts)) {
            $color = $page_opts['color'];
            $decoration = $page_opts['text_decoration'];
        } else {
            $color = $page_opts;
            $decoration = '';
        }
        $color_test = str_replace('#', '', $color);
        if (empty($color_test)) {
            $color = op_default_option($opt_array, 'color');
        }
        if (!empty($decoration)) {
            $decoration = op_default_option($opt_array, 'decoration');
            op_color_picker($tmp_field . '[color]', $color, $tmp_id . '_color');
            op_text_decoration_drop($tmp_field . '[text_decoration]', $decoration, $tmp_id . '_text_decoration');
        } else {
            op_color_picker($tmp_field, $color, $tmp_id);
        }
        ?>
                        <a href="#reset" class="reset-link">Reset</a>
                    </div>
                    
                </li>
                <?php 
    }
    ?>
            </ul>
            <?php 
}
?>
Пример #3
0
                        echo $key;
                        ?>
"<?php 
                        echo op_default_page_option($opt_array, $el) == $key ? ' selected' : '';
                        ?>
><?php 
                        echo $value;
                        ?>
</option>
						<?php 
                    }
                    ?>
				</select>
				<?php 
                }
            }
        } else {
            echo '
	<div class="font-chooser cf">';
            if (isset($info['text_decoration'])) {
                op_color_picker($fieldname . '[' . $el . '][color]', op_default_page_option($opt_array, $el, 'color'), $fieldid . $el . '_color');
                op_text_decoration_drop($fieldname . '[' . $el . '][text_decoration]', op_default_page_option($opt_array, $el, 'text_decoration'), $fieldid . $el . '_text_decoration');
            } else {
                op_color_picker($fieldname . '[' . $el . ']', op_default_page_option($opt_array, $el), $fieldid . $el);
            }
            echo '
		<a href="#reset" class="reset-link">Reset</a>
	</div>';
        }
    }
}