Example #1
0
 public function loop($name = "")
 {
     $view = new PeThemeViewBlog();
     $conf = (object) array("settings" => (object) array("layout" => $name));
     $conf->settings->pager = "yes";
     $conf->settings->media = "yes";
     $view->output($conf);
 }
Example #2
0
 public function mbox()
 {
     $mbox = parent::mbox();
     $custom = array("delay" => array("label" => __("Delay", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Time in seconds before the slider rotates to next slide.", 'Pixelentity Theme/Plugin'), "options" => PeGlobal::$const->data->delay, "default" => 0), "layout" => array("label" => __("Layout", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("Number of items to show simultaneously.", 'Pixelentity Theme/Plugin'), "options" => array(__("1", 'Pixelentity Theme/Plugin') => 1, __("2", 'Pixelentity Theme/Plugin') => 2, __("3", 'Pixelentity Theme/Plugin') => 3, __("4", 'Pixelentity Theme/Plugin') => 4, __("5", 'Pixelentity Theme/Plugin') => 5), "default" => 4), "style" => array("label" => __("Style", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("Carousel style.", 'Pixelentity Theme/Plugin'), "options" => array(__("Default", 'Pixelentity Theme/Plugin') => "", __("Testimonials", 'Pixelentity Theme/Plugin') => "testimonials", __("Logos", 'Pixelentity Theme/Plugin') => "logos", __("With More Button", 'Pixelentity Theme/Plugin') => "more"), "default" => ""), "height" => array("label" => __("Image Height", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Image height.", 'Pixelentity Theme/Plugin'), "default" => 195), "title" => array("label" => __("Title", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Carousel Title.", 'Pixelentity Theme/Plugin'), "default" => __("Carousel Title", 'Pixelentity Theme/Plugin')), "subtitle" => array("label" => __("Subtitle", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Carousel Subtitle.", 'Pixelentity Theme/Plugin'), "default" => '<a href="#">Go to portfolio</a>'), "description" => array("label" => __("Description", 'Pixelentity Theme/Plugin'), "type" => "Text", "description" => __("Carousel Description.", 'Pixelentity Theme/Plugin'), "default" => 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna.'), "chars" => array("label" => __("Excerpt", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Excerpt length, in chars.", 'Pixelentity Theme/Plugin'), "default" => 60));
     // insert custom fields after 1st one of the parent (delay)
     $mbox["content"] = $custom;
     return $mbox;
 }
Example #3
0
 public function mbox()
 {
     $mbox = parent::mbox();
     $mbox["content"] = array("layout" => array("label" => __("Layout", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Show filters based on the selected criteria.", 'Pixelentity Theme/Plugin'), "options" => apply_filters("pe_theme_portfolio_layouts", array(__("Single column (no grid)", 'Pixelentity Theme/Plugin') => 1, __("2 Columns", 'Pixelentity Theme/Plugin') => 2, __("3 Columns", 'Pixelentity Theme/Plugin') => 3, __("4 Columns", 'Pixelentity Theme/Plugin') => 4, __("6 Columns", 'Pixelentity Theme/Plugin') => 6)), "default" => apply_filters("pe_theme_portfolio_default_layout", 3)), "filterable" => array("label" => __("Filter by", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Specify if the filter keywords are shown in this page. ", 'Pixelentity Theme/Plugin'), "options" => peTheme()->view->taxonomiesOptions(), "datatype" => "taxonomies", "default" => ""), "pager" => array("label" => __("Paged Result", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("Display a pager when more posts are found than specified in the 'Maximum' field. ", 'Pixelentity Theme/Plugin'), "options" => PeGlobal::$const->data->yesno, "default" => "yes"));
     return $mbox;
 }
 public function mbox()
 {
     $mbox = parent::mbox();
     $mbox["content"] = array("filterable" => array("label" => __("Filter by", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Show filters based on the selected criteria.", 'Pixelentity Theme/Plugin'), "options" => peTheme()->view->taxonomiesOptions(), "datatype" => "taxonomies", "default" => ""), "lightbox" => array("label" => __("Use Lightbox", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("If set to 'yes', clicking on image thumbnail will open a lightbox window, 'no' will go directly to the item page.", 'Pixelentity Theme/Plugin'), "options" => PeGlobal::$const->data->yesno, "default" => "yes"), "layout" => array("label" => __("Layout", 'Pixelentity Theme/Plugin'), "description" => __("Grid container layout.", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "options" => array(__("Boxed", 'Pixelentity Theme/Plugin') => "boxed", __("Full Width", 'Pixelentity Theme/Plugin') => "fullwidth"), "default" => "boxed"), "width" => array("label" => __("Cell Width", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Grid cell width.", 'Pixelentity Theme/Plugin'), "default" => 320), "height" => array("label" => __("Cell Height", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Grid cell height.", 'Pixelentity Theme/Plugin'), "default" => 240), "clayout" => array("label" => __("Cell Layout", 'Pixelentity Theme/Plugin'), "description" => __("<b>Fixed</b>: all grid cell will have the same width/height.<br><b>Variable</b>: will use the cell layout defined in the project portfolio settings.", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "options" => array(__("Fixed", 'Pixelentity Theme/Plugin') => "fixed", __("Variable", 'Pixelentity Theme/Plugin') => "variable"), "default" => "variable"), "gx" => array("label" => __("Horizontal Margin", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Horizontal margin between grid cells.", 'Pixelentity Theme/Plugin'), "default" => 1), "gy" => array("label" => __("Vertical Margin", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Vertical margin between grid cells.", 'Pixelentity Theme/Plugin'), "default" => 1), "sort" => array("label" => __("Sorting", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("'none' will preserve items natural order which is what you want when all grid cell have the same width/height. 'optimize layout' should only be used when mixing cells with different layouts.", 'Pixelentity Theme/Plugin'), "options" => array(__("none", 'Pixelentity Theme/Plugin') => "none", __("auto", 'Pixelentity Theme/Plugin') => "auto"), "default" => "none"), "pager" => array("label" => __("Paged Result", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("Display a pager when more posts are found than specified in the 'Maximum' field. ", 'Pixelentity Theme/Plugin'), "options" => PeGlobal::$const->data->yesno, "default" => "no"), "loadMore" => array("label" => __("Load More", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("When 'Paged Result' is active (and a value is set in the 'Maximum' field), enabling this option will replace the pager element with a single 'Load More' button. Once clicked, it will load new items in the background and add them to the current page.", 'Pixelentity Theme/Plugin'), "options" => PeGlobal::$const->data->yesno, "default" => "no"));
     return $mbox;
 }
 public function mbox()
 {
     $mbox = parent::mbox();
     $mbox["content"] = array("filterable" => array("label" => __("Filter by", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Show filters based on the selected criteria.", 'Pixelentity Theme/Plugin'), "options" => peTheme()->view->taxonomiesOptions(), "datatype" => "taxonomies", "default" => ""), "layout" => array("label" => __("Layout", 'Pixelentity Theme/Plugin'), "description" => __("Grid container layout.", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "options" => array(__("Boxed", 'Pixelentity Theme/Plugin') => "boxed", __("Full Width", 'Pixelentity Theme/Plugin') => "fullwidth"), "default" => "boxed"), "video" => array("label" => __("Inline Videos", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("If enabled, display a video player for video format posts.", 'Pixelentity Theme/Plugin'), "options" => PeGlobal::$const->data->yesno, "default" => "no"), "slider" => array("label" => __("Inline Sliders", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("If enabled, display a slider for gallery format posts.", 'Pixelentity Theme/Plugin'), "options" => PeGlobal::$const->data->yesno, "default" => "no"), "width" => array("label" => __("Column Width", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Grid cell width.", 'Pixelentity Theme/Plugin'), "default" => 320), "height" => array("label" => __("Image Height", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Slider images height.", 'Pixelentity Theme/Plugin'), "default" => 180), "crop" => array("label" => __("Crop Featured Image", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("When 'Image Height' is set, only slider images are cropped, set this option to 'yes' to also crop featured images.", 'Pixelentity Theme/Plugin'), "options" => PeGlobal::$const->data->yesno, "default" => "no"), "gx" => array("label" => __("Horizontal Margin", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Horizontal margin between grid cells.", 'Pixelentity Theme/Plugin'), "default" => 10), "gy" => array("label" => __("Vertical Margin", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Vertical margin between grid cells.", 'Pixelentity Theme/Plugin'), "default" => 10), "pager" => array("label" => __("Paged Result", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("Display a pager when more posts are found than specified in the 'Maximum' field. ", 'Pixelentity Theme/Plugin'), "options" => PeGlobal::$const->data->yesno, "default" => "no"), "loadMore" => array("label" => __("Load More", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("When 'Paged Result' is active (and a value is set in the 'Maximum' field), enabling this option will replace the pager element with a single 'Load More' button. Once clicked, it will load new items in the background and add them to the current page.", 'Pixelentity Theme/Plugin'), "options" => PeGlobal::$const->data->yesno, "default" => "no"));
     return $mbox;
 }
 public function mbox()
 {
     $mbox = parent::mbox();
     $mbox["content"] = array("pager" => array("label" => __("Paged Result", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("Display a pager when more posts are found than specified in the 'Maximum' field. ", 'Pixelentity Theme/Plugin'), "options" => PeGlobal::$const->data->yesno, "default" => "no"));
     return $mbox;
 }